當前位置: 首頁>>代碼示例>>Java>>正文


Java GeneratePredictionModelTransformationRule類代碼示例

本文整理匯總了Java中com.rapidminer.operator.ports.metadata.GeneratePredictionModelTransformationRule的典型用法代碼示例。如果您正苦於以下問題:Java GeneratePredictionModelTransformationRule類的具體用法?Java GeneratePredictionModelTransformationRule怎麽用?Java GeneratePredictionModelTransformationRule使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


GeneratePredictionModelTransformationRule類屬於com.rapidminer.operator.ports.metadata包,在下文中一共展示了GeneratePredictionModelTransformationRule類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: AbstractStacking

import com.rapidminer.operator.ports.metadata.GeneratePredictionModelTransformationRule; //導入依賴的package包/類
public AbstractStacking(OperatorDescription description, String... subprocessNames) {
	super(description, subprocessNames);
	baseInputExtender.start();
	baseModelExtender.start();
	getTransformer().addRule(baseInputExtender.makePassThroughRule(exampleSetInput));
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addRule(
			new GeneratePredictionModelTransformationRule(exampleSetInput, modelOutput, PredictionModel.class));
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:10,代碼來源:AbstractStacking.java

示例2: SDRulesetInduction

import com.rapidminer.operator.ports.metadata.GeneratePredictionModelTransformationRule; //導入依賴的package包/類
/** Constructor. */
public SDRulesetInduction(OperatorDescription description) {
	super(description, "Training");
	getTransformer().addRule(new ExampleSetPassThroughRule(exampleSetInput, trainingInnerSource, SetRelation.EQUAL) {

		@Override
		public ExampleSetMetaData modifyExampleSet(ExampleSetMetaData metaData) {
			AttributeMetaData weightAttribute = new AttributeMetaData("weight", Ontology.REAL, Attributes.WEIGHT_NAME);
			weightAttribute.setValueSetRelation(SetRelation.UNKNOWN);
			metaData.addAttribute(weightAttribute);

			AttributeMetaData specialAttribute = new AttributeMetaData(TIMES_COVERED, Ontology.REAL, TIMES_COVERED);
			specialAttribute.setValueSetRelation(SetRelation.UNKNOWN);
			metaData.addAttribute(specialAttribute);
			return metaData;
		}
	});
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addRule(
			new GeneratePredictionModelTransformationRule(exampleSetInput, modelOutput, PredictionModel.class));

	addValue(new ValueDouble("performance", "The performance.") {

		@Override
		public double getDoubleValue() {
			return performance;
		}
	});
	addValue(new ValueDouble("iteration", "The current iteration.") {

		@Override
		public double getDoubleValue() {
			return currentIteration;
		}
	});
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:37,代碼來源:SDRulesetInduction.java

示例3: SDRulesetInduction

import com.rapidminer.operator.ports.metadata.GeneratePredictionModelTransformationRule; //導入依賴的package包/類
/** Constructor. */
public SDRulesetInduction(OperatorDescription description) {
	super(description, "Training");
	getTransformer().addRule(new ExampleSetPassThroughRule(exampleSetInput, trainingInnerSource, SetRelation.EQUAL) {

		@Override
		public ExampleSetMetaData modifyExampleSet(ExampleSetMetaData metaData) {
			AttributeMetaData weightAttribute = new AttributeMetaData("weight", Ontology.REAL, Attributes.WEIGHT_NAME);
			weightAttribute.setValueSetRelation(SetRelation.UNKNOWN);
			metaData.addAttribute(weightAttribute);

			AttributeMetaData specialAttribute = new AttributeMetaData(TIMES_COVERED, Ontology.REAL, TIMES_COVERED);
			specialAttribute.setValueSetRelation(SetRelation.UNKNOWN);
			metaData.addAttribute(specialAttribute);
			return metaData;
		}
	});
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer()
			.addRule(new GeneratePredictionModelTransformationRule(exampleSetInput, modelOutput, PredictionModel.class));

	addValue(new ValueDouble("performance", "The performance.") {

		@Override
		public double getDoubleValue() {
			return performance;
		}
	});
	addValue(new ValueDouble("iteration", "The current iteration.") {

		@Override
		public double getDoubleValue() {
			return currentIteration;
		}
	});
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:37,代碼來源:SDRulesetInduction.java

示例4: AbstractStacking

import com.rapidminer.operator.ports.metadata.GeneratePredictionModelTransformationRule; //導入依賴的package包/類
public AbstractStacking(OperatorDescription description, String ... subprocessNames) {
	super(description, subprocessNames);
	baseInputExtender.start();
	baseModelExtender.start();
	getTransformer().addRule(baseInputExtender.makePassThroughRule(exampleSetInput));
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addRule(new GeneratePredictionModelTransformationRule(exampleSetInput, modelOutput, PredictionModel.class));
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:9,代碼來源:AbstractStacking.java

示例5: SDRulesetInduction

import com.rapidminer.operator.ports.metadata.GeneratePredictionModelTransformationRule; //導入依賴的package包/類
/** Constructor. */
public SDRulesetInduction(OperatorDescription description) {
	super(description, "Training");
	getTransformer().addRule(new ExampleSetPassThroughRule(exampleSetInput, trainingInnerSource, SetRelation.EQUAL) {
		@Override
		public ExampleSetMetaData modifyExampleSet(ExampleSetMetaData metaData) {
			AttributeMetaData weightAttribute = new AttributeMetaData("weight", Ontology.REAL, Attributes.WEIGHT_NAME);
			weightAttribute.setValueSetRelation(SetRelation.UNKNOWN);
			metaData.addAttribute(weightAttribute);

			AttributeMetaData specialAttribute = new AttributeMetaData(TIMES_COVERED, Ontology.REAL, TIMES_COVERED);
			specialAttribute.setValueSetRelation(SetRelation.UNKNOWN);
			metaData.addAttribute(specialAttribute);
			return metaData;
		}
	});
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addRule(new GeneratePredictionModelTransformationRule(exampleSetInput, modelOutput, PredictionModel.class));


	addValue(new ValueDouble("performance", "The performance.") {
		@Override
		public double getDoubleValue() {
			return performance;
		}
	});
	addValue(new ValueDouble("iteration", "The current iteration.") {
		@Override
		public double getDoubleValue() {
			return currentIteration;
		}
	});
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:34,代碼來源:SDRulesetInduction.java


注:本文中的com.rapidminer.operator.ports.metadata.GeneratePredictionModelTransformationRule類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。