本文整理汇总了Java中weka.core.AdditionalMeasureProducer类的典型用法代码示例。如果您正苦于以下问题:Java AdditionalMeasureProducer类的具体用法?Java AdditionalMeasureProducer怎么用?Java AdditionalMeasureProducer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AdditionalMeasureProducer类属于weka.core包,在下文中一共展示了AdditionalMeasureProducer类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getMeasure
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns the value of the named measure
* @param additionalMeasureName the name of the measure to query for its value
* @return the value of the named measure
* @throws IllegalArgumentException if the named measure is not supported
*/
public double getMeasure(String additionalMeasureName) {
if (additionalMeasureName.compareToIgnoreCase("measureNumAttributesSelected") == 0) {
return measureNumAttributesSelected();
} else if (additionalMeasureName.compareToIgnoreCase("measureSelectionTime") == 0) {
return measureSelectionTime();
} else if (additionalMeasureName.compareToIgnoreCase("measureTime") == 0) {
return measureTime();
} else if (m_Classifier instanceof AdditionalMeasureProducer) {
return ((AdditionalMeasureProducer)m_Classifier).
getMeasure(additionalMeasureName);
} else {
throw new IllegalArgumentException(additionalMeasureName
+ " not supported (AttributeSelectedClassifier)");
}
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:22,代码来源:AttributeSelectedClassifier.java
示例2: getMeasure
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns the value of the named measure
*
* @param additionalMeasureName the name of the measure to query for its value
* @return the value of the named measure
* @throws IllegalArgumentException if the named measure is not supported
*/
@Override
public double getMeasure(String additionalMeasureName) {
if (m_Template instanceof AdditionalMeasureProducer) {
if (m_Classifier == null) {
throw new IllegalArgumentException("ClassifierSplitEvaluator: "
+ "Can't return result for measure, "
+ "classifier has not been built yet.");
}
return ((AdditionalMeasureProducer) m_Classifier)
.getMeasure(additionalMeasureName);
} else {
throw new IllegalArgumentException("ClassifierSplitEvaluator: "
+ "Can't return value for : " + additionalMeasureName + ". "
+ m_Template.getClass().getName() + " "
+ "is not an AdditionalMeasureProducer");
}
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:25,代码来源:ClassifierSplitEvaluator.java
示例3: setAdditionalMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Set a list of method names for additional measures to look for in
* Classifiers. This could contain many measures (of which only a subset may
* be produceable by the current Classifier) if an experiment is the type that
* iterates over a set of properties.
*
* @param additionalMeasures an array of method names.
*/
@Override
public void setAdditionalMeasures(String[] additionalMeasures) {
m_AdditionalMeasures = additionalMeasures;
// determine which (if any) of the additional measures this classifier
// can produce
if (m_AdditionalMeasures != null && m_AdditionalMeasures.length > 0) {
m_doesProduce = new boolean[m_AdditionalMeasures.length];
if (m_Template instanceof AdditionalMeasureProducer) {
Enumeration<String> en = ((AdditionalMeasureProducer) m_Template)
.enumerateMeasures();
while (en.hasMoreElements()) {
String mname = en.nextElement();
for (int j = 0; j < m_AdditionalMeasures.length; j++) {
if (mname.compareToIgnoreCase(m_AdditionalMeasures[j]) == 0) {
m_doesProduce[j] = true;
}
}
}
}
} else {
m_doesProduce = null;
}
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:34,代码来源:RegressionSplitEvaluator.java
示例4: enumerateMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns an enumeration of the additional measure names
* @return an enumeration of the measure names
*/
public Enumeration enumerateMeasures() {
Vector newVector = new Vector(3);
newVector.addElement("measureNumAttributesSelected");
newVector.addElement("measureSelectionTime");
newVector.addElement("measureTime");
if (m_Classifier instanceof AdditionalMeasureProducer) {
Enumeration en = ((AdditionalMeasureProducer)m_Classifier).
enumerateMeasures();
while (en.hasMoreElements()) {
String mname = (String)en.nextElement();
newVector.addElement(mname);
}
}
return newVector.elements();
}
开发者ID:dsibournemouth,项目名称:autoweka,代码行数:20,代码来源:AttributeSelectedClassifier.java
示例5: getMeasure
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns the value of the named measure
*
* @param additionalMeasureName the name of the measure to query for its value
* @return the value of the named measure
* @throws IllegalArgumentException if the named measure is not supported
*/
@Override
public double getMeasure(String additionalMeasureName) {
if (m_Template instanceof AdditionalMeasureProducer) {
if (m_Classifier == null) {
throw new IllegalArgumentException("ClassifierSplitEvaluator: "
+ "Can't return result for measure, "
+ "classifier has not been built yet.");
}
return ((AdditionalMeasureProducer) m_Classifier)
.getMeasure(additionalMeasureName);
} else {
throw new IllegalArgumentException("ClassifierSplitEvaluator: "
+ "Can't return value for : " + additionalMeasureName + ". "
+ m_Template.getClass().getName() + " "
+ "is not an AdditionalMeasureProducer");
}
}
开发者ID:dsibournemouth,项目名称:autoweka,代码行数:25,代码来源:ClassifierSplitEvaluator.java
示例6: setAdditionalMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Set a list of method names for additional measures to look for
* in Classifiers. This could contain many measures (of which only a
* subset may be produceable by the current Classifier) if an experiment
* is the type that iterates over a set of properties.
* @param additionalMeasures a list of method names
*/
public void setAdditionalMeasures(String [] additionalMeasures) {
// System.err.println("ClassifierSplitEvaluator: setting additional measures");
m_additionalMeasures = additionalMeasures;
// determine which (if any) of the additional measures this clusterer
// can produce
if (m_additionalMeasures != null && m_additionalMeasures.length > 0) {
m_doesProduce = new boolean [m_additionalMeasures.length];
if (m_clusterer instanceof AdditionalMeasureProducer) {
Enumeration en = ((AdditionalMeasureProducer)m_clusterer).
enumerateMeasures();
while (en.hasMoreElements()) {
String mname = (String)en.nextElement();
for (int j=0;j<m_additionalMeasures.length;j++) {
if (mname.compareToIgnoreCase(m_additionalMeasures[j]) == 0) {
m_doesProduce[j] = true;
}
}
}
}
} else {
m_doesProduce = null;
}
}
开发者ID:dsibournemouth,项目名称:autoweka,代码行数:33,代码来源:DensityBasedClustererSplitEvaluator.java
示例7: setAdditionalMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Set a list of method names for additional measures to look for
* in Classifiers. This could contain many measures (of which only a
* subset may be produceable by the current Classifier) if an experiment
* is the type that iterates over a set of properties.
* @param additionalMeasures an array of method names.
*/
public void setAdditionalMeasures(String [] additionalMeasures) {
m_AdditionalMeasures = additionalMeasures;
// determine which (if any) of the additional measures this classifier
// can produce
if (m_AdditionalMeasures != null && m_AdditionalMeasures.length > 0) {
m_doesProduce = new boolean [m_AdditionalMeasures.length];
if (m_Template instanceof AdditionalMeasureProducer) {
Enumeration en = ((AdditionalMeasureProducer)m_Template).
enumerateMeasures();
while (en.hasMoreElements()) {
String mname = (String)en.nextElement();
for (int j=0;j<m_AdditionalMeasures.length;j++) {
if (mname.compareToIgnoreCase(m_AdditionalMeasures[j]) == 0) {
m_doesProduce[j] = true;
}
}
}
}
} else {
m_doesProduce = null;
}
}
开发者ID:dsibournemouth,项目名称:autoweka,代码行数:32,代码来源:RegressionSplitEvaluator.java
示例8: getMeasure
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns the value of the named measure
* @param additionalMeasureName the name of the measure to query for its value
* @return the value of the named measure
* @throws IllegalArgumentException if the named measure is not supported
*/
public double getMeasure(String additionalMeasureName) {
if (m_Template instanceof AdditionalMeasureProducer) {
if (m_Classifier == null) {
throw new IllegalArgumentException("ClassifierSplitEvaluator: " +
"Can't return result for measure, " +
"classifier has not been built yet.");
}
return ((AdditionalMeasureProducer)m_Classifier).
getMeasure(additionalMeasureName);
} else {
throw new IllegalArgumentException("ClassifierSplitEvaluator: "
+"Can't return value for : "+additionalMeasureName
+". "+m_Template.getClass().getName()+" "
+"is not an AdditionalMeasureProducer");
}
}
开发者ID:dsibournemouth,项目名称:autoweka,代码行数:23,代码来源:RegressionSplitEvaluator.java
示例9: getMeasure
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns the value of the named measure
*
* @param additionalMeasureName the name of the measure to query for its value
* @return the value of the named measure
* @throws IllegalArgumentException if the named measure is not supported
*/
@Override
public double getMeasure(String additionalMeasureName) {
if (m_Template instanceof AdditionalMeasureProducer) {
if (m_Classifier == null) {
throw new IllegalArgumentException("ClassifierSplitEvaluator: "
+ "Can't return result for measure, "
+ "classifier has not been built yet.");
}
return ((AdditionalMeasureProducer) m_Classifier)
.getMeasure(additionalMeasureName);
} else {
throw new IllegalArgumentException("ClassifierSplitEvaluator: "
+ "Can't return value for : " + additionalMeasureName + ". "
+ m_Template.getClass().getName() + " "
+ "is not an AdditionalMeasureProducer");
}
}
开发者ID:umple,项目名称:umple,代码行数:25,代码来源:ClassifierSplitEvaluator.java
示例10: setAdditionalMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Set a list of method names for additional measures to look for in
* Classifiers. This could contain many measures (of which only a subset may
* be produceable by the current Classifier) if an experiment is the type that
* iterates over a set of properties.
*
* @param additionalMeasures an array of method names.
*/
@Override
public void setAdditionalMeasures(String[] additionalMeasures) {
m_AdditionalMeasures = additionalMeasures;
// determine which (if any) of the additional measures this classifier
// can produce
if (m_AdditionalMeasures != null && m_AdditionalMeasures.length > 0) {
m_doesProduce = new boolean[m_AdditionalMeasures.length];
if (m_Template instanceof AdditionalMeasureProducer) {
Enumeration<String> en = ((AdditionalMeasureProducer) m_Template)
.enumerateMeasures();
while (en.hasMoreElements()) {
String mname = en.nextElement();
for (int j = 0; j < m_AdditionalMeasures.length; j++) {
if (mname.compareToIgnoreCase(m_AdditionalMeasures[j]) == 0) {
m_doesProduce[j] = true;
}
}
}
}
} else {
m_doesProduce = null;
}
}
开发者ID:umple,项目名称:umple,代码行数:34,代码来源:RegressionSplitEvaluator.java
示例11: setAdditionalMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Set a list of method names for additional measures to look for
* in Classifiers. This could contain many measures (of which only a
* subset may be produceable by the current Classifier) if an experiment
* is the type that iterates over a set of properties.
* @param additionalMeasures a list of method names
*/
public void setAdditionalMeasures(String [] additionalMeasures) {
// System.err.println("ClassifierSplitEvaluator: setting additional measures");
m_AdditionalMeasures = additionalMeasures;
// determine which (if any) of the additional measures this classifier
// can produce
if (m_AdditionalMeasures != null && m_AdditionalMeasures.length > 0) {
m_doesProduce = new boolean [m_AdditionalMeasures.length];
if (m_Template instanceof AdditionalMeasureProducer) {
Enumeration en = ((AdditionalMeasureProducer)m_Template).
enumerateMeasures();
while (en.hasMoreElements()) {
String mname = (String)en.nextElement();
for (int j=0;j<m_AdditionalMeasures.length;j++) {
if (mname.compareToIgnoreCase(m_AdditionalMeasures[j]) == 0) {
m_doesProduce[j] = true;
}
}
}
}
} else {
m_doesProduce = null;
}
}
开发者ID:williamClanton,项目名称:jbossBA,代码行数:33,代码来源:ClassifierSplitEvaluator.java
示例12: setAdditionalMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Set a list of method names for additional measures to look for in
* Classifiers. This could contain many measures (of which only a subset may
* be produceable by the current Classifier) if an experiment is the type that
* iterates over a set of properties.
*
* @param additionalMeasures an array of method names.
*/
@Override
public void setAdditionalMeasures(String[] additionalMeasures) {
m_AdditionalMeasures = additionalMeasures;
// determine which (if any) of the additional measures this classifier
// can produce
if (m_AdditionalMeasures != null && m_AdditionalMeasures.length > 0) {
m_doesProduce = new boolean[m_AdditionalMeasures.length];
if (m_Template instanceof AdditionalMeasureProducer) {
Enumeration en = ((AdditionalMeasureProducer) m_Template)
.enumerateMeasures();
while (en.hasMoreElements()) {
String mname = (String) en.nextElement();
for (int j = 0; j < m_AdditionalMeasures.length; j++) {
if (mname.compareToIgnoreCase(m_AdditionalMeasures[j]) == 0) {
m_doesProduce[j] = true;
}
}
}
}
} else {
m_doesProduce = null;
}
}
开发者ID:williamClanton,项目名称:jbossBA,代码行数:34,代码来源:RegressionSplitEvaluator.java
示例13: enumerateMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns an enumeration of the additional measure names
* @return an enumeration of the measure names
*/
public Enumeration<String> enumerateMeasures() {
Vector<String> newVector = new Vector<String>(3);
newVector.addElement("measureNumAttributesSelected");
newVector.addElement("measureSelectionTime");
newVector.addElement("measureTime");
if (m_Classifier instanceof AdditionalMeasureProducer) {
newVector.addAll(Collections.list(((AdditionalMeasureProducer)m_Classifier).
enumerateMeasures()));
}
return newVector.elements();
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:16,代码来源:AttributeSelectedClassifier.java
示例14: enumerateMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns an enumeration of the additional measure names
*
* @return an enumeration of the measure names
*/
@Override
public Enumeration<String> enumerateMeasures() {
Vector<String> newVector = new Vector<String>();
if (m_Classifier instanceof AdditionalMeasureProducer) {
Enumeration<String> en = ((AdditionalMeasureProducer) m_Classifier)
.enumerateMeasures();
while (en.hasMoreElements()) {
String mname = en.nextElement();
newVector.addElement(mname);
}
}
return newVector.elements();
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:20,代码来源:InputMappedClassifier.java
示例15: getMeasure
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns the value of the named measure
*
* @param additionalMeasureName the name of the measure to query for its value
* @return the value of the named measure
* @throws IllegalArgumentException if the named measure is not supported
*/
@Override
public double getMeasure(String additionalMeasureName) {
if (m_Classifier instanceof AdditionalMeasureProducer) {
return ((AdditionalMeasureProducer) m_Classifier)
.getMeasure(additionalMeasureName);
} else {
throw new IllegalArgumentException(additionalMeasureName
+ " not supported (InputMappedClassifier)");
}
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:18,代码来源:InputMappedClassifier.java
示例16: enumerateMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns an enumeration of any additional measure names that might be in the
* result producer
*
* @return an enumeration of the measure names
*/
@Override
public Enumeration<String> enumerateMeasures() {
Vector<String> newVector = new Vector<String>();
if (m_ResultProducer instanceof AdditionalMeasureProducer) {
Enumeration<String> en = ((AdditionalMeasureProducer) m_ResultProducer)
.enumerateMeasures();
while (en.hasMoreElements()) {
String mname = en.nextElement();
newVector.add(mname);
}
}
return newVector.elements();
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:20,代码来源:LearningRateResultProducer.java
示例17: getMeasure
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns the value of the named measure
*
* @param additionalMeasureName the name of the measure to query for its value
* @return the value of the named measure
* @throws IllegalArgumentException if the named measure is not supported
*/
@Override
public double getMeasure(String additionalMeasureName) {
if (m_ResultProducer instanceof AdditionalMeasureProducer) {
return ((AdditionalMeasureProducer) m_ResultProducer)
.getMeasure(additionalMeasureName);
} else {
throw new IllegalArgumentException("LearningRateResultProducer: "
+ "Can't return value for : " + additionalMeasureName + ". "
+ m_ResultProducer.getClass().getName() + " "
+ "is not an AdditionalMeasureProducer");
}
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:20,代码来源:LearningRateResultProducer.java
示例18: enumerateMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns an enumeration of any additional measure names that might be in the
* result producer
*
* @return an enumeration of the measure names
*/
@Override
public Enumeration<String> enumerateMeasures() {
Vector<String> newVector = new Vector<String>();
if (m_ResultProducer instanceof AdditionalMeasureProducer) {
Enumeration<String> en = ((AdditionalMeasureProducer) m_ResultProducer)
.enumerateMeasures();
while (en.hasMoreElements()) {
String mname = en.nextElement();
newVector.addElement(mname);
}
}
return newVector.elements();
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:20,代码来源:DatabaseResultProducer.java
示例19: getMeasure
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Returns the value of the named measure
*
* @param additionalMeasureName the name of the measure to query for its value
* @return the value of the named measure
* @throws IllegalArgumentException if the named measure is not supported
*/
@Override
public double getMeasure(String additionalMeasureName) {
if (m_ResultProducer instanceof AdditionalMeasureProducer) {
return ((AdditionalMeasureProducer) m_ResultProducer)
.getMeasure(additionalMeasureName);
} else {
throw new IllegalArgumentException("DatabaseResultProducer: "
+ "Can't return value for : " + additionalMeasureName + ". "
+ m_ResultProducer.getClass().getName() + " "
+ "is not an AdditionalMeasureProducer");
}
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:20,代码来源:DatabaseResultProducer.java
示例20: setAdditionalMeasures
import weka.core.AdditionalMeasureProducer; //导入依赖的package包/类
/**
* Set a list of method names for additional measures to look for in
* Classifiers. This could contain many measures (of which only a subset may
* be produceable by the current Classifier) if an experiment is the type that
* iterates over a set of properties.
*
* @param additionalMeasures a list of method names
*/
@Override
public void setAdditionalMeasures(String[] additionalMeasures) {
// System.err.println("ClassifierSplitEvaluator: setting additional measures");
m_AdditionalMeasures = additionalMeasures;
// determine which (if any) of the additional measures this classifier
// can produce
if (m_AdditionalMeasures != null && m_AdditionalMeasures.length > 0) {
m_doesProduce = new boolean[m_AdditionalMeasures.length];
if (m_Template instanceof AdditionalMeasureProducer) {
Enumeration<String> en = ((AdditionalMeasureProducer) m_Template)
.enumerateMeasures();
while (en.hasMoreElements()) {
String mname = en.nextElement();
for (int j = 0; j < m_AdditionalMeasures.length; j++) {
if (mname.compareToIgnoreCase(m_AdditionalMeasures[j]) == 0) {
m_doesProduce[j] = true;
}
}
}
}
} else {
m_doesProduce = null;
}
}
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:35,代码来源:ClassifierSplitEvaluator.java
注:本文中的weka.core.AdditionalMeasureProducer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论