當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。