本文整理了Java中libsvm.svm.svm_get_nr_class()
方法的一些代码示例,展示了svm.svm_get_nr_class()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。svm.svm_get_nr_class()
方法的具体详情如下:
包路径:libsvm.svm
类名称:svm
方法名:svm_get_nr_class
暂无
代码示例来源:origin: jzy3d/jzy3d-api
int nr_class=svm.svm_get_nr_class(model);
double[] prob_estimates=null;
代码示例来源:origin: dkpro/dkpro-tc
int nr_class = svm.svm_get_nr_class(model);
double[] prob_estimates = null;
代码示例来源:origin: ch.epfl.bbp.nlp/bluima_jsre
int nr_class=svm.svm_get_nr_class(model);
int[] labels=new int[nr_class];
double[] prob_estimates=null;
代码示例来源:origin: org.dkpro.tc/dkpro-tc-ml-libsvm
int nr_class = svm.svm_get_nr_class(model);
double[] prob_estimates = null;
代码示例来源:origin: com.facebook.thirdparty/libsvm
param.svm_type == svm_parameter.NU_SVC))
double[] prob_estimates= new double[svm_get_nr_class(submodel)];
for(j=begin;j<end;j++)
target[perm[j]] = svm_predict_probability(submodel,prob.x[perm[j]],prob_estimates);
代码示例来源:origin: tw.edu.ntu.csie/libsvm
param.svm_type == svm_parameter.NU_SVC))
double[] prob_estimates= new double[svm_get_nr_class(submodel)];
for(j=begin;j<end;j++)
target[perm[j]] = svm_predict_probability(submodel,prob.x[perm[j]],prob_estimates);
代码示例来源:origin: jzy3d/jzy3d-api
param.svm_type == svm_parameter.NU_SVC))
double[] prob_estimates= new double[svm_get_nr_class(submodel)];
for(j=begin;j<end;j++)
target[perm[j]] = svm_predict_probability(submodel,prob.x[perm[j]],prob_estimates);
代码示例来源:origin: jdmp/java-data-mining-package
int nr_class = svm.svm_get_nr_class(model);
double[] prediction = new double[nr_class];
return output;
} else {
int nr_class = svm.svm_get_nr_class(model);
double[] prediction = new double[nr_class];
int[] label = new int[svm.svm_get_nr_class(model)];
svm.svm_get_labels(model, label);
Matrix output = Matrix.Factory.zeros(1, MathUtil.max(label) + 1);
代码示例来源:origin: org.clulab/processors
public void svm_predict_with_kbestlist(svm_model model, svm_node[] x, KBestList kBestList) throws MaltChainedException {
int i;
final int nr_class = svm.svm_get_nr_class(model);
final double[] dec_values = new double[nr_class*(nr_class-1)/2];
svm.svm_predict_values(model, x, dec_values);
代码示例来源:origin: org.maltparser/maltparser
public void svm_predict_with_kbestlist(svm_model model, svm_node[] x, KBestList kBestList) throws MaltChainedException {
int i;
final int nr_class = svm.svm_get_nr_class(model);
final double[] dec_values = new double[nr_class*(nr_class-1)/2];
svm.svm_predict_values(model, x, dec_values);
代码示例来源:origin: DigitalPebble/TextClassification
public final double[] classify(Document document) throws Exception {
int svm_type = svm.svm_get_svm_type(model);
int nr_class = svm.svm_get_nr_class(model);
int[] labels = new int[nr_class];
svm.svm_get_labels(model, labels);
代码示例来源:origin: elki-project/elki
double[] buf = new double[svm.svm_get_nr_class(model)];
for(int i = 0; i < prob.l && iter.valid(); iter.advance(), i++) {
V vec = relation.get(iter);
内容来源于网络,如有侵权,请联系作者删除!