本文整理了Java中weka.core.Utils.isMissingValue()
方法的一些代码示例,展示了Utils.isMissingValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.isMissingValue()
方法的具体详情如下:
包路径:weka.core.Utils
类名称:Utils
方法名:isMissingValue
[英]Tests if the given value codes "missing".
[中]测试给定值代码是否“缺失”。
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(false,
Utils.isMissingValue(input[fieldIndex]));
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
(input[fieldIndex] <= value));
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
(input[fieldIndex] >= value));
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
(input[fieldIndex] != value));
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
(input[fieldIndex] < value));
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
(input[fieldIndex] > value));
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(false,
!Utils.isMissingValue(input[fieldIndex]));
}
代码示例来源:origin: Waikato/weka-trunk
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
(input[fieldIndex] < value));
}
代码示例来源:origin: Waikato/weka-trunk
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
(input[fieldIndex] >= value));
}
代码示例来源:origin: Waikato/weka-trunk
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
(input[fieldIndex] != value));
}
代码示例来源:origin: Waikato/weka-trunk
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
(input[fieldIndex] <= value));
}
代码示例来源:origin: Waikato/weka-trunk
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
(input[fieldIndex] > value));
}
代码示例来源:origin: Waikato/weka-trunk
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(false,
!Utils.isMissingValue(input[fieldIndex]));
}
代码示例来源:origin: Waikato/weka-trunk
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(false,
Utils.isMissingValue(input[fieldIndex]));
}
代码示例来源:origin: nz.ac.waikato.cms.moa/moa
@Override
public void addValue(double attValue, int classValue, double weight) {
if (Utils.isMissingValue(attValue)) {
} else {
this.valueCount += weight;
this.classDist.addToValue(classValue, weight);
observeAttributeClass(attValue, classValue, weight);
}
}
代码示例来源:origin: nz.ac.waikato.cms.moa/moa
@Override
public void addValue(double attValue, int classValue, double weight) {
if (Utils.isMissingValue(attValue)) {
} else {
this.classDist.addToValue(classValue, weight);
observeAttributeClass(attValue, classValue, weight);
}
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
weka.core.Utils.eq(input[fieldIndex], value));
}
代码示例来源:origin: Waikato/weka-trunk
@Override
Predicate.Eval evaluate(double[] input, double value, int fieldIndex) {
return Predicate.booleanToEval(
Utils.isMissingValue(input[fieldIndex]),
weka.core.Utils.eq(input[fieldIndex], value));
}
代码示例来源:origin: nz.ac.waikato.cms.moa/moa
@Override
public Node learnFromInstance(Instance inst) {
double attValue = inst.value(attIndex);
if (Utils.isMissingValue(attValue)) {
} else {
updateCountersForChange(inst);
}
return super.learnFromInstance(inst);
}
代码示例来源:origin: nz.ac.waikato.cms.moa/moa
@Override
public void observeAttributeClass(double attVal, int classVal, double weight) {
if (Utils.isMissingValue(attVal)) {
} else {
IademGreenwaldKhannaQuantileSummary valDist = (IademGreenwaldKhannaQuantileSummary) this.attValDistPerClass.get(classVal);
if (valDist == null) {
valDist = new IademGreenwaldKhannaQuantileSummary(this.numTuplesOption.getValue());
this.attValDistPerClass.set(classVal, valDist);
}
// TODO: not taking weight into account
valDist.insert(attVal);
}
}
内容来源于网络,如有侵权,请联系作者删除!