本文整理匯總了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;
}
});
}
示例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;
}
});
}
示例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;
}
});
}
示例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;
}
});
}
示例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();
}
});
}
示例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();
}
});
}
示例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;
}
});
}
示例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;
}
});
}
示例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;
}
});
}
示例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;
}
});
}
示例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;
}
});
}
示例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();
}
});
}
示例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();
}
});
}
示例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;
}
});
}