本文整理匯總了Java中com.rapidminer.operator.ports.metadata.GenerateNewExampleSetMDRule類的典型用法代碼示例。如果您正苦於以下問題:Java GenerateNewExampleSetMDRule類的具體用法?Java GenerateNewExampleSetMDRule怎麽用?Java GenerateNewExampleSetMDRule使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
GenerateNewExampleSetMDRule類屬於com.rapidminer.operator.ports.metadata包,在下文中一共展示了GenerateNewExampleSetMDRule類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: AttributeWeights2ExampleSet
import com.rapidminer.operator.ports.metadata.GenerateNewExampleSetMDRule; //導入依賴的package包/類
public AttributeWeights2ExampleSet(OperatorDescription description) {
super(description);
getTransformer().addRule(new GenerateNewExampleSetMDRule(exampleSetOutput) {
@Override
public MetaData modifyMetaData(ExampleSetMetaData emd) {
AttributeMetaData attributeAMD = new AttributeMetaData("Attribute", Ontology.NOMINAL);
AttributeMetaData weightAMD = new AttributeMetaData("Weight", Ontology.REAL);
emd.addAttribute(attributeAMD);
emd.addAttribute(weightAMD);
emd.attributesAreKnown();
emd.numberOfExamplesIsUnkown();
return emd;
}
});
}
示例2: PerformanceVectorToExampleSet
import com.rapidminer.operator.ports.metadata.GenerateNewExampleSetMDRule; //導入依賴的package包/類
public PerformanceVectorToExampleSet(OperatorDescription description) {
super(description);
getTransformer().addPassThroughRule(performanceInput, performanceOutput);
getTransformer().addRule(new GenerateNewExampleSetMDRule(exampleSetOutput) {
@Override
public MetaData modifyMetaData(ExampleSetMetaData emd) {
AttributeMetaData attributeAMD = new AttributeMetaData(ATTRIBUTE_CRITERION, Ontology.NOMINAL);
AttributeMetaData valueAMD = new AttributeMetaData(ATTRIBUTE_VALUE, Ontology.REAL);
// AttributeMetaData exampleCountAMD = new
// AttributeMetaData(ATTRIBUTE_EXAMPLE_COUNT, Ontology.REAL);
AttributeMetaData stdevAMD = new AttributeMetaData(ATTRIBUTE_STANDARD_DEVIATION, Ontology.REAL);
AttributeMetaData varianceAMD = new AttributeMetaData(ATTRIBUTE_VARIANCE, Ontology.REAL);
emd.addAttribute(attributeAMD);
emd.addAttribute(valueAMD);
// emd.addAttribute(exampleCountAMD);
emd.addAttribute(stdevAMD);
emd.addAttribute(varianceAMD);
emd.attributesAreKnown();
emd.numberOfExamplesIsUnkown();
return emd;
}
});
}
示例3: FrequentItemSetsToData
import com.rapidminer.operator.ports.metadata.GenerateNewExampleSetMDRule; //導入依賴的package包/類
public FrequentItemSetsToData(OperatorDescription description) {
super(description);
getTransformer().addRule(new GenerateNewExampleSetMDRule(exampleSetOutput) {
@Override
public MetaData modifyMetaData(ExampleSetMetaData emd) {
emd.addAttribute(new AttributeMetaData("Items", Ontology.NOMINAL));
emd.addAttribute(new AttributeMetaData("Size", null, Ontology.INTEGER,
new Range(0, Double.POSITIVE_INFINITY)));
emd.addAttribute(new AttributeMetaData("Frequency", null, Ontology.INTEGER, new Range(0,
Double.POSITIVE_INFINITY)));
emd.addAttribute(new AttributeMetaData("Support", null, Ontology.REAL, new Range(0, 1)));
emd.addAttribute(new AttributeMetaData("Score", null, Ontology.REAL, new Range(Double.NEGATIVE_INFINITY,
Double.POSITIVE_INFINITY)));
if (getParameterAsBoolean(PARAMETER_GENERATE_ITEM_SET_INDICATORS)) {
emd.attributesAreSuperset();
} else {
emd.attributesAreKnown();
}
emd.numberOfExamplesIsUnkown();
return emd;
}
});
getTransformer().addPassThroughRule(frequentItemSetsInput, frequentItemSetsOutput);
}
示例4: AttributeWeights2ExampleSet
import com.rapidminer.operator.ports.metadata.GenerateNewExampleSetMDRule; //導入依賴的package包/類
public AttributeWeights2ExampleSet(OperatorDescription description) {
super(description);
getTransformer().addRule(new GenerateNewExampleSetMDRule(exampleSetOutput) {
@Override
public MetaData modifyMetaData(ExampleSetMetaData emd) {
AttributeMetaData attributeAMD = new AttributeMetaData("Attribute", Ontology.NOMINAL);
AttributeMetaData weightAMD = new AttributeMetaData("Weight", Ontology.REAL);
emd.addAttribute(attributeAMD);
emd.addAttribute(weightAMD);
emd.attributesAreKnown();
emd.numberOfExamplesIsUnkown();
return emd;
}
});
}
示例5: PerformanceVectorToExampleSet
import com.rapidminer.operator.ports.metadata.GenerateNewExampleSetMDRule; //導入依賴的package包/類
public PerformanceVectorToExampleSet(OperatorDescription description) {
super(description);
getTransformer().addPassThroughRule(performanceInput, performanceOutput);
getTransformer().addRule(new GenerateNewExampleSetMDRule(exampleSetOutput) {
@Override
public MetaData modifyMetaData(ExampleSetMetaData emd) {
AttributeMetaData attributeAMD = new AttributeMetaData(ATTRIBUTE_CRITERION, Ontology.NOMINAL);
AttributeMetaData valueAMD = new AttributeMetaData(ATTRIBUTE_VALUE, Ontology.REAL);
// AttributeMetaData exampleCountAMD = new AttributeMetaData(ATTRIBUTE_EXAMPLE_COUNT, Ontology.REAL);
AttributeMetaData stdevAMD = new AttributeMetaData(ATTRIBUTE_STANDARD_DEVIATION, Ontology.REAL);
AttributeMetaData varianceAMD = new AttributeMetaData(ATTRIBUTE_VARIANCE, Ontology.REAL);
emd.addAttribute(attributeAMD);
emd.addAttribute(valueAMD);
// emd.addAttribute(exampleCountAMD);
emd.addAttribute(stdevAMD);
emd.addAttribute(varianceAMD);
emd.attributesAreKnown();
emd.numberOfExamplesIsUnkown();
return emd;
}
});
}
示例6: FrequentItemSetsToData
import com.rapidminer.operator.ports.metadata.GenerateNewExampleSetMDRule; //導入依賴的package包/類
public FrequentItemSetsToData(OperatorDescription description) {
super(description);
getTransformer().addRule(new GenerateNewExampleSetMDRule(exampleSetOutput) {
@Override
public MetaData modifyMetaData(ExampleSetMetaData emd) {
emd.addAttribute(new AttributeMetaData("Items", Ontology.NOMINAL));
emd.addAttribute(new AttributeMetaData("Size", null, Ontology.INTEGER, new Range(0, Double.POSITIVE_INFINITY)));
emd.addAttribute(new AttributeMetaData("Frequency", null, Ontology.INTEGER, new Range(0, Double.POSITIVE_INFINITY)));
emd.addAttribute(new AttributeMetaData("Support", null, Ontology.REAL, new Range(0, 1)));
emd.addAttribute(new AttributeMetaData("Score", null, Ontology.REAL, new Range(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY)));
if (getParameterAsBoolean(PARAMETER_GENERATE_ITEM_SET_INDICATORS)) {
emd.attributesAreSuperset();
} else {
emd.attributesAreKnown();
}
emd.numberOfExamplesIsUnkown();
return emd;
}
});
getTransformer().addPassThroughRule(frequentItemSetsInput, frequentItemSetsOutput);
}