本文整理汇总了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;
}
});
}