有没有工具可以转储旧代 JVM 堆?
换句话说,我如何判断一个对象是来自年轻代还是老年代?
在最新版本的libsvm(v3.17 2013.04.01)中,类'svm_model'中的'predict'方法已被删除.
替代方法似乎是模块'svmutil'中的方法'svm_predict'.但我无法理解这种方法的参数数据(y,x).
def svm_predict(y, x, m, options=""):
"""
svm_predict(y, x, m [, options]) -> (p_labels, p_acc, p_vals)
Predict data (y, x) with the SVM model m.
options:
-b probability_estimates: whether to predict probability estimates,
0 or 1 (default 0); for one-class SVM only 0 is supported.
-q : quiet mode (no outputs).
The return tuple contains
p_labels: a list of predicted labels
p_acc: a tuple including accuracy (for classification), mean-squared
error, and squared correlation coefficient (for regression).
p_vals: a …Run Code Online (Sandbox Code Playgroud)