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


Java ValueString類代碼示例

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


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

示例1: ValueIteration

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public ValueIteration(OperatorDescription description) {
	super(description, "Iteration");

	outExtender.start();
	exampleSetInput.addPrecondition(new AttributeParameterPrecondition(exampleSetInput, this, PARAMETER_ATTRIBUTE,
			Ontology.NOMINAL));

	getTransformer().addPassThroughRule(exampleSetInput, exampleInnerSource);
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addRule(outExtender.makePassThroughRule());

	addValue(new ValueString("current_value", "The nominal value of the current loop.") {

		@Override
		public String getStringValue() {
			return currentValue;
		}
	});
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:20,代碼來源:ValueIteration.java

示例2: ValueIteration

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public ValueIteration(OperatorDescription description) {
	super(description, "Iteration");

	outExtender.start();
	exampleSetInput.addPrecondition(new AttributeParameterPrecondition(exampleSetInput, this, PARAMETER_ATTRIBUTE, Ontology.NOMINAL));

	getTransformer().addPassThroughRule(exampleSetInput, exampleInnerSource);
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addRule(outExtender.makePassThroughRule());

	addValue(new ValueString("current_value", "The nominal value of the current loop.") {
		@Override
		public String getStringValue() {
			return currentValue;
		}
	});
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:18,代碼來源:ValueIteration.java

示例3: FeatureIterator

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public FeatureIterator(OperatorDescription description) {
	super(description, "Subprocess");

	exampleSetInnerSink.addPrecondition(new SimplePrecondition(exampleSetInnerSink, new ExampleSetMetaData(), false));
	innerSinkExtender = new CollectingPortPairExtender("result", getSubprocess(0).getInnerSinks(), getOutputPorts());
	innerSinkExtender.start();

	getTransformer().addRule(new PassThroughRule(exampleSetInput, exampleSetInnerSource, false));
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addRule(innerSinkExtender.makePassThroughRule());
	getTransformer().addRule(new PassThroughRule(exampleSetInput, exampleSetOutput, false) {

		@Override
		public MetaData modifyMetaData(MetaData unmodifiedMetaData) {
			if (exampleSetInnerSink.isConnected()) {
				return exampleSetInnerSink.getMetaData();
			} else {
				// due to side effects, we cannot make any guarantee about the output.
				return new ExampleSetMetaData();
			}
		}
	});

	addValue(new ValueDouble("iteration", "The number of the current iteration / loop.") {

		@Override
		public double getDoubleValue() {
			return iteration;
		}
	});

	addValue(new ValueString("feature_name", "The number of the current feature.") {

		@Override
		public String getStringValue() {
			return currentName;
		}
	});
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:40,代碼來源:FeatureIterator.java

示例4: FeatureSubsetIteration

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public FeatureSubsetIteration(OperatorDescription description) {
	super(description, "Subprocess");

	getTransformer().addRule(new ExampleSetPassThroughRule(exampleSetInput, exampleSetInnerSource, SetRelation.SUBSET));
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addRule(new ExampleSetPassThroughRule(exampleSetInput, exampleSetOutput, SetRelation.SUBSET));

	addValue(new ValueDouble("iteration", "The current iteration.") {

		@Override
		public double getDoubleValue() {
			return iteration;
		}
	});

	addValue(new ValueDouble("feature_number", "The number of used features in the current iteration.") {

		@Override
		public double getDoubleValue() {
			return featureNumber;
		}
	});

	addValue(new ValueString("feature_names", "The names of the used features in the current iteration.") {

		@Override
		public String getStringValue() {
			return featureNames;
		}
	});
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:32,代碼來源:FeatureSubsetIteration.java

示例5: ForwardAttributeSelectionOperator

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public ForwardAttributeSelectionOperator(OperatorDescription description) {
	super(description, "Learning Process");

	getTransformer().addPassThroughRule(exampleSetInput, innerExampleSetSource);
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addPassThroughRule(exampleSetInput, exampleSetOutput);
	getTransformer().addGenerationRule(performanceOutput, PerformanceVector.class);
	getTransformer().addGenerationRule(weightsOutput, AttributeWeights.class);

	addValue(new ValueDouble("number of attributes", "The current number of attributes.") {

		@Override
		public double getDoubleValue() {
			return currentNumberOfFeatures;
		}
	});

	addValue(new ValueString("feature_names", "A comma separated list of all features of this round.") {

		@Override
		public String getStringValue() {
			if (currentAttributes == null) {
				return "This logging value is only available during execution of this operator's inner subprocess.";
			}
			StringBuffer buffer = new StringBuffer();
			for (Attribute attribute : currentAttributes) {
				if (buffer.length() > 0) {
					buffer.append(", ");
				}
				buffer.append(attribute.getName());
			}
			return buffer.toString();
		}
	});
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:36,代碼來源:ForwardAttributeSelectionOperator.java

示例6: BackwardAttributeEliminationOperator

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public BackwardAttributeEliminationOperator(OperatorDescription description) {
	super(description, "Learning Process");

	getTransformer().addPassThroughRule(exampleSetInput, innerExampleSetSource);
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addPassThroughRule(exampleSetInput, exampleSetOutput);
	getTransformer().addGenerationRule(performanceOutput, PerformanceVector.class);
	getTransformer().addGenerationRule(weightsOutput, AttributeWeights.class);

	addValue(new ValueDouble("number of attributes", "The current number of attributes.") {

		@Override
		public double getDoubleValue() {
			return currentNumberOfFeatures;
		}
	});

	addValue(new ValueString("feature_names", "A comma separated list of all features of this round.") {

		@Override
		public String getStringValue() {
			if (currentAttributes == null) {
				return "This logging value is only available during execution of this operator's inner subprocess.";
			}

			StringBuffer buffer = new StringBuffer();
			for (Attribute attribute : currentAttributes) {
				if (buffer.length() > 0) {
					buffer.append(", ");
				}
				buffer.append(attribute.getName());
			}
			return buffer.toString();
		}
	});

}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:38,代碼來源:BackwardAttributeEliminationOperator.java

示例7: Macro2Log

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public Macro2Log(OperatorDescription description) {
	super(description);

	dummyPorts.start();

	getTransformer().addRule(dummyPorts.makePassThroughRule());

	addValue(new ValueString("macro_value", "The value from the macro which should be logged.") {

		@Override
		public String getStringValue() {
			return currentValue;
		}
	});
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:16,代碼來源:Macro2Log.java

示例8: LoopOp

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public LoopOp(OperatorDescription description) {
    super(description, "Subprocess");
    remote = true;

    exampleSetInnerSink.addPrecondition(new SimplePrecondition(exampleSetInnerSink, new ExampleSetMetaData(), false));
    innerSinkExtender = new CollectingPortPairExtender("result", getSubprocess(0).getInnerSinks(), getOutputPorts());
    innerSinkExtender.start();

    getTransformer().addRule(new PassThroughRule(exampleSetInput, exampleSetInnerSource, false));
    getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
    getTransformer().addRule(innerSinkExtender.makePassThroughRule());
    getTransformer().addRule(new PassThroughRule(exampleSetInput, exampleSetOutput, false) {

        @Override
        public MetaData modifyMetaData(MetaData unmodifiedMetaData) {
            if (exampleSetInnerSink.isConnected()) {
                return exampleSetInnerSink.getMetaData();
            } else {
                // due to side effects, we cannot make any guarantee about the output.
                return new ExampleSetMetaData();
            }
        }
    });

    addValue(new ValueDouble("iteration", "The number of the current iteration / loop.") {

        @Override
        public double getDoubleValue() {
            return iteration;
        }
    });

    addValue(new ValueString("feature_name", "The number of the current feature.") {

        @Override
        public String getStringValue() {
            return currentName;
        }
    });
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:41,代碼來源:LoopOp.java

示例9: LoopByColumnsOp

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public LoopByColumnsOp(OperatorDescription description) {
    super(description, "Subprocess");
    remote = true;

    exampleSetInnerSink.addPrecondition(new SimplePrecondition(exampleSetInnerSink, new ExampleSetMetaData(), false));
    innerSinkExtender = new CollectingPortPairExtender("result", getSubprocess(0).getInnerSinks(), getOutputPorts());
    innerSinkExtender.start();

    getTransformer().addRule(new PassThroughRule(exampleSetInput, exampleSetInnerSource, false));
    getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
    getTransformer().addRule(innerSinkExtender.makePassThroughRule());
    getTransformer().addRule(new PassThroughRule(exampleSetInput, exampleSetOutput, false) {

        @Override
        public MetaData modifyMetaData(MetaData unmodifiedMetaData) {
            if (exampleSetInnerSink.isConnected()) {
                return exampleSetInnerSink.getMetaData();
            } else {
                // due to side effects, we cannot make any guarantee about the output.
                return new ExampleSetMetaData();
            }
        }
    });

    addValue(new ValueDouble("iteration", "The number of the current iteration / loop.") {

        @Override
        public double getDoubleValue() {
            return iteration;
        }
    });

    addValue(new ValueString("feature_name", "The number of the current feature.") {

        @Override
        public String getStringValue() {
            return currentName;
        }
    });
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:41,代碼來源:LoopByColumnsOp.java

示例10: FeatureIterator

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public FeatureIterator(OperatorDescription description) {
	super(description, "Subprocess");

	exampleSetInnerSink.addPrecondition(new SimplePrecondition(exampleSetInnerSink, new ExampleSetMetaData(), false));
	innerSinkExtender = new CollectingPortPairExtender("result", getSubprocess(0).getInnerSinks(), getOutputPorts());
	innerSinkExtender.start();

	getTransformer().addRule(new PassThroughRule(exampleSetInput, exampleSetInnerSource, false));
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addRule(innerSinkExtender.makePassThroughRule());
	getTransformer().addRule(new PassThroughRule(exampleSetInput, exampleSetOutput, false) {
		@Override
		public MetaData modifyMetaData(MetaData unmodifiedMetaData) {
			if (exampleSetInnerSink.isConnected()) {
				return exampleSetInnerSink.getMetaData();
			} else {
				// due to side effects, we cannot make any guarantee about the output.
				return new ExampleSetMetaData();
			}
		}
	});

	addValue(new ValueDouble("iteration", "The number of the current iteration / loop.") {
		@Override
		public double getDoubleValue() {
			return iteration;
		}
	});

	addValue(new ValueString("feature_name", "The number of the current feature.") {
		@Override
		public String getStringValue() {
			return currentName;
		}
	});
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:37,代碼來源:FeatureIterator.java

示例11: FeatureSubsetIteration

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public FeatureSubsetIteration(OperatorDescription description) {
	super(description, "Subprocess");

	getTransformer().addRule(new ExampleSetPassThroughRule(exampleSetInput, exampleSetInnerSource, SetRelation.SUBSET));
	getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
	getTransformer().addRule(new ExampleSetPassThroughRule(exampleSetInput, exampleSetOutput, SetRelation.SUBSET));

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

	addValue(new ValueDouble("feature_number", "The number of used features in the current iteration.") {
		@Override
		public double getDoubleValue() {
			return featureNumber;
		}
	});

	addValue(new ValueString("feature_names", "The names of the used features in the current iteration.") {
		@Override
		public String getStringValue() {
			return featureNames;
		}
	});
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:29,代碼來源:FeatureSubsetIteration.java

示例12: ForwardAttributeSelectionOperator

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public ForwardAttributeSelectionOperator(OperatorDescription description) {
    super(description, "Learning Process");

    getTransformer().addPassThroughRule(exampleSetInput, innerExampleSetSource);
    getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
    getTransformer().addPassThroughRule(exampleSetInput, exampleSetOutput);
    getTransformer().addGenerationRule(performanceOutput, PerformanceVector.class);
    getTransformer().addGenerationRule(weightsOutput, AttributeWeights.class);

    addValue(new ValueDouble("number of attributes", "The current number of attributes.") {
        @Override
        public double getDoubleValue() {
            return currentNumberOfFeatures;
        }
    });

    addValue(new ValueString("feature_names", "A comma separated list of all features of this round.") {

        @Override
        public String getStringValue() {
            if (currentAttributes == null)
                return "This logging value is only available during execution of this operator's inner subprocess.";
            StringBuffer buffer = new StringBuffer();
            for (Attribute attribute: currentAttributes) {
                if (buffer.length() > 0)
                    buffer.append(", ");
                buffer.append(attribute.getName());
            }
            return buffer.toString();
        }
    });
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:33,代碼來源:ForwardAttributeSelectionOperator.java

示例13: BackwardAttributeEliminationOperator

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public BackwardAttributeEliminationOperator(OperatorDescription description) {
    super(description, "Learning Process");

    getTransformer().addPassThroughRule(exampleSetInput, innerExampleSetSource);
    getTransformer().addRule(new SubprocessTransformRule(getSubprocess(0)));
    getTransformer().addPassThroughRule(exampleSetInput, exampleSetOutput);
    getTransformer().addGenerationRule(performanceOutput, PerformanceVector.class);
    getTransformer().addGenerationRule(weightsOutput, AttributeWeights.class);

    addValue(new ValueDouble("number of attributes", "The current number of attributes.") {
        @Override
        public double getDoubleValue() {
            return currentNumberOfFeatures;
        }
    });

    addValue(new ValueString("feature_names", "A comma separated list of all features of this round.") {

        @Override
        public String getStringValue() {
            if (currentAttributes == null)
                return "This logging value is only available during execution of this operator's inner subprocess.";

            StringBuffer buffer = new StringBuffer();
            for (Attribute attribute: currentAttributes) {
                if (buffer.length() > 0)
                    buffer.append(", ");
                buffer.append(attribute.getName());
            }
            return buffer.toString();
        }
    });

}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:35,代碼來源:BackwardAttributeEliminationOperator.java

示例14: Macro2Log

import com.rapidminer.operator.ValueString; //導入依賴的package包/類
public Macro2Log(OperatorDescription description) {
	super(description);

	dummyPorts.start();

	getTransformer().addRule(dummyPorts.makePassThroughRule());

	addValue(new ValueString("macro_value", "The value from the macro which should be logged.") {
		@Override
		public String getStringValue() {
			return currentValue;
		}
	});
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:15,代碼來源:Macro2Log.java


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