本文整理汇总了Java中com.rapidminer.operator.learner.functions.neuralnet.InputNode类的典型用法代码示例。如果您正苦于以下问题:Java InputNode类的具体用法?Java InputNode怎么用?Java InputNode使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InputNode类属于com.rapidminer.operator.learner.functions.neuralnet包,在下文中一共展示了InputNode类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initInputLayer
import com.rapidminer.operator.learner.functions.neuralnet.InputNode; //导入依赖的package包/类
public void initInputLayer(ExampleSet exampleSet, boolean normalize) {
inputNodes = new InputNode[exampleSet.getAttributes().size()];
int a = 0;
for (Attribute attribute : exampleSet.getAttributes()) {
inputNodes[a] = new InputNode(attribute.getName());
double range = 1;
double offset = 0;
if (normalize) {
double min = exampleSet.getStatistics(attribute, Statistics.MINIMUM);
double max = exampleSet.getStatistics(attribute, Statistics.MAXIMUM);
range = (max - min) / 2;
offset = (max + min) / 2;
}
inputNodes[a].setAttribute(attribute, range, offset, normalize);
a++;
}
}
示例2: initInputLayer
import com.rapidminer.operator.learner.functions.neuralnet.InputNode; //导入依赖的package包/类
public void initInputLayer(ExampleSet exampleSet, boolean normalize) {
inputNodes = new InputNode[exampleSet.getAttributes().size()];
int a = 0;
for (Attribute attribute : exampleSet.getAttributes()) {
inputNodes[a] = new InputNode(attribute.getName());
double range = 1;
double offset = 0;
if (normalize) {
double min = exampleSet.getStatistics(attribute, Statistics.MINIMUM);
double max = exampleSet.getStatistics(attribute, Statistics.MAXIMUM);
range = (max - min) / 2;
offset = (max + min) / 2;
}
inputNodes[a].setAttribute(attribute, range, offset, normalize);
a++;
}
}
示例3: getInputNodes
import com.rapidminer.operator.learner.functions.neuralnet.InputNode; //导入依赖的package包/类
public InputNode[] getInputNodes() {
return this.inputNodes;
}