本文整理了Java中weka.filters.unsupervised.attribute.Add.getWeight()
方法的一些代码示例,展示了Add.getWeight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Add.getWeight()
方法的具体详情如下:
包路径:weka.filters.unsupervised.attribute.Add
类名称:Add
方法名:getWeight
[英]Get the weight of the attribute used.
[中]获取所用属性的权重。
代码示例来源:origin: Waikato/weka-trunk
/**
* Gets the current settings of the filter.
*
* @return an array of strings suitable for passing to setOptions
*/
@Override
public String[] getOptions() {
Vector<String> result;
result = new Vector<String>();
if (m_AttributeType != Attribute.NUMERIC) {
result.add("-T");
result.add("" + getAttributeType());
}
result.add("-N");
result.add(Utils.backQuoteChars(getAttributeName()));
if (m_AttributeType == Attribute.NOMINAL) {
result.add("-L");
result.add(getNominalLabels());
} else if (m_AttributeType == Attribute.NOMINAL) {
result.add("-F");
result.add(getDateFormat());
}
result.add("-C");
result.add("" + getAttributeIndex());
result.add("-W");
result.add("" + getWeight());
return result.toArray(new String[result.size()]);
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
/**
* Gets the current settings of the filter.
*
* @return an array of strings suitable for passing to setOptions
*/
@Override
public String[] getOptions() {
Vector<String> result;
result = new Vector<String>();
if (m_AttributeType != Attribute.NUMERIC) {
result.add("-T");
result.add("" + getAttributeType());
}
result.add("-N");
result.add(Utils.backQuoteChars(getAttributeName()));
if (m_AttributeType == Attribute.NOMINAL) {
result.add("-L");
result.add(getNominalLabels());
} else if (m_AttributeType == Attribute.NOMINAL) {
result.add("-F");
result.add(getDateFormat());
}
result.add("-C");
result.add("" + getAttributeIndex());
result.add("-W");
result.add("" + getWeight());
return result.toArray(new String[result.size()]);
}
代码示例来源:origin: Waikato/weka-trunk
throw new IllegalArgumentException("Unknown attribute type in Add");
newAttribute.setWeight(getWeight());
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
throw new IllegalArgumentException("Unknown attribute type in Add");
newAttribute.setWeight(getWeight());
内容来源于网络,如有侵权,请联系作者删除!