|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.Operator
com.rapidminer.operator.OperatorChain
com.rapidminer.operator.learner.meta.AbstractMetaLearner
com.rapidminer.operator.learner.meta.MetaCost
public class MetaCost
This operator uses a given cost matrix to compute label predictions according to classification costs. The method used by this operator is similar to MetaCost as described by Pedro Domingos.
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_COST_MATRIX
The parameter name for "The cost matrix in Matlab single line format" |
static java.lang.String |
PARAMETER_COST_MATRIX_FILE_LOCATION
The parameter name for "File" |
static java.lang.String |
PARAMETER_ITERATIONS
The parameter name for "The number of iterations (base models). |
static java.lang.String |
PARAMETER_LOCAL_RANDOM_SEED
The parameter name for "Use the given random seed instead of global random numbers (-1: use global)" |
static java.lang.String |
PARAMETER_SAMPLING_WITH_REPLACEMENT
The parameter name for "Use sampling with replacement (true) or without (false)" |
static java.lang.String |
PARAMETER_USE_SUBSET_FOR_TRAINING
The parameter name for "Fraction of examples used for training. |
| Constructor Summary | |
|---|---|
MetaCost(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
Model |
learn(ExampleSet inputSet)
Trains a model. |
boolean |
supportsCapability(LearnerCapability capability)
Support polynominal labels. |
| Methods inherited from class com.rapidminer.operator.learner.meta.AbstractMetaLearner |
|---|
apply, applyInnerLearner, getEstimatedPerformance, getInnerOperatorCondition, getInputClasses, getInputDescription, getMaxNumberOfInnerOperators, getMinNumberOfInnerOperators, getOutputClasses, getWeights, shouldCalculateWeights, shouldEstimatePerformance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rapidminer.operator.learner.Learner |
|---|
getName |
| Field Detail |
|---|
public static final java.lang.String PARAMETER_COST_MATRIX
public static final java.lang.String PARAMETER_COST_MATRIX_FILE_LOCATION
public static final java.lang.String PARAMETER_USE_SUBSET_FOR_TRAINING
public static final java.lang.String PARAMETER_ITERATIONS
public static final java.lang.String PARAMETER_SAMPLING_WITH_REPLACEMENT
public static final java.lang.String PARAMETER_LOCAL_RANDOM_SEED
| Constructor Detail |
|---|
public MetaCost(OperatorDescription description)
| Method Detail |
|---|
public Model learn(ExampleSet inputSet)
throws OperatorException
Learner
OperatorExceptionpublic boolean supportsCapability(LearnerCapability capability)
supportsCapability in interface LearnersupportsCapability in class AbstractMetaLearnerpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||