IOMultiplier and IOSelector and other basic questions
Legacy User
New Altair Community Member
hi all,
I am new to RapidMiner and have some basic questions now:
1) IOMultiplier and IOSelector
can somebody give me a full working example of how to use IOMultiplier? what I want to do is to duplicate a dataset to create two separate operator chains for preprocessing the data.
the following micky mouse example is working, but validating the process structure throws an error ([Error] Mapping_1: Mapping_1: Mapping_1: Missing input: ExampleSet).
2) change attribute type
how can I change the attribute type from integer to nominal without defining a mapping? what I would like to have is something like String.valueOf(int i) applied to each value of a column in my dataset. again, could someone give me a complete working example please?
thanks!
I am new to RapidMiner and have some basic questions now:
1) IOMultiplier and IOSelector
can somebody give me a full working example of how to use IOMultiplier? what I want to do is to duplicate a dataset to create two separate operator chains for preprocessing the data.
the following micky mouse example is working, but validating the process structure throws an error ([Error] Mapping_1: Mapping_1: Mapping_1: Missing input: ExampleSet).
is there a way to get a graphic representation of separate operator chains in the tree structure of the operator tree view? (with n child nodes for an IOMultiplier)
<operator name="Root" class="Process" expanded="yes">
<operator name="DatabaseExampleSource" class="DatabaseExampleSource">
<parameter key="database_system" value="PostgreSQL"/>
<!-- connection settings -->
</operator>
<operator name="IOMultiplier" class="IOMultiplier">
<parameter key="io_object" value="ExampleSet"/>
<parameter key="number_of_copies" value="2"/>
</operator>
<operator name="IOSelector_1" class="IOSelector">
<parameter key="io_object" value="ExampleSet"/>
<parameter key="select_which" value="1"/>
</operator>
<operator name="Mapping_1" class="Mapping">
<parameter key="add_default_mapping" value="true"/>
<parameter key="attributes" value="attribute_name"/>
<parameter key="default_value" value="17"/>
</operator>
<operator name="IOSelector_2" class="IOSelector">
<parameter key="io_object" value="ExampleSet"/>
<parameter key="select_which" value="2"/>
</operator>
<operator name="Mapping_2" class="Mapping">
<parameter key="add_default_mapping" value="true"/>
<parameter key="attributes" value="attribute_name"/>
<parameter key="default_value" value="4"/>
</operator>
</operator>
2) change attribute type
how can I change the attribute type from integer to nominal without defining a mapping? what I would like to have is something like String.valueOf(int i) applied to each value of a column in my dataset. again, could someone give me a complete working example please?
thanks!
Tagged:
0
Answers
-
Hello
As far as I know, the validation procedure has problems with the count of IOObjects. If your process is working, feel free to ignore the messages. Beside I see no problem with your setup.
the following micky mouse example is working, but validating the process structure throws an error ([Error] Mapping_1: Mapping_1: Mapping_1: Missing input: ExampleSet).
Sorry, I dont understand.
is there a way to get a graphic representation of separate operator chains in the tree structure of the operator tree view? (with n child nodes for an IOMultiplier)
Try the operator "Numerical2Polynominal"
how can I change the attribute type from integer to nominal without defining a mapping? what I would like to have is something like String.valueOf(int i) applied to each value of a column in my dataset. again, could someone give me a complete working example please?
regards,
Steffen0 -
hello steffen,
thanks for your reply!
i would like to have a graphical representation like this (kind of what it is like in SPSS Clementine):steffen wrote:
Sorry, I dont understand.
----------------
| IOMultiplier |
----------------
|--- stream 0 ---| Operator |----> result 0
|
|----stream 1 ---| Operator |----> result 1
is this possible with RapidMiner?
as far as i understand it Numerical2Polynominal is applied to every attribute, right?
Try the operator "Numerical2Polynominal"
i want the conversion to be applied to the values of only one attribute (one columnn in my dataset), how can i do this?
thanks!0 -
Hello
I am still not sure if I got you right, but: If you click the check button you get a text-based representation in the log-output below. Another option is View->BoxView.
i would like to have a graphical representation like this (kind of what it is like in SPSS Clementine):
Yes, you are correct. Use the Operator "AttributeSubsetPreprocessing"
as far as i understand it Numerical2Polynominal is applied to every attribute, right?
i want the conversion to be applied to the values of only one attribute (one columnn in my dataset), how can i do this?
regards,
Steffen
0