当前位置: 首页>>代码示例>>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;未经允许,请勿转载。