How to set parameter of class NominalToBinominal
mercyforever
MemberPosts:8Contributor I
Hi,
I have created a 'NominalToBinominal' operator using n2bOprt = OperatorService.createOperator(NominalToBinominal.class);
I wonder how I can set the attribute filter(all, single, subset, ...) of that operator.
Thanks.
I have created a 'NominalToBinominal' operator using n2bOprt = OperatorService.createOperator(NominalToBinominal.class);
I wonder how I can set the attribute filter(all, single, subset, ...) of that operator.
Thanks.
Tagged:
0
Answers
Hello, I'm just new here and I think I might know the answer to your question:
If you check the API, there are many methods provided that can be used to set the parameters:
To understand these methods, you should have an overall understanding on both the parameters in an operator, and the various types of parameter. This means you might need to check the API or the source code under the package: com.rapidminer.parameter, where you can find all the parameter types used in RM core, ( and btw you can build your own by extending the classes ParameterType and CombinedParameterType).
Moreover, you should know what parameters are used in the operator NominalToBinominal and what their types are.
You can find the parameters on the GUI, but a better suggestion is to check the method
in this class, as well asin all of its super classesandother components(such as AttributeSubsetSlector and RandomGenerator).
Here is a small example on AttributeSubsetSelector: