当前位置: 首页>>代码示例>>Java>>正文


Java GenerateNewExampleSetMDRule类代码示例

本文整理汇总了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;
		}
	});
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:18,代码来源:AttributeWeights2ExampleSet.java

示例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;
		}
	});
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:26,代码来源:PerformanceVectorToExampleSet.java

示例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);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:26,代码来源:FrequentItemSetsToData.java

示例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;
		}
	});
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:17,代码来源:AttributeWeights2ExampleSet.java

示例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;
			}
		});
	}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:25,代码来源:PerformanceVectorToExampleSet.java

示例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);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:22,代码来源:FrequentItemSetsToData.java


注:本文中的com.rapidminer.operator.ports.metadata.GenerateNewExampleSetMDRule类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。