本文整理汇总了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);
}