com.aiyc.server.standalone.svm
类 SVMSupport
java.lang.Object
com.aiyc.server.standalone.svm.SVMSupport
public class SVMSupport
- extends Object
- 作者:
- felly
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRAIN
public static final String TRAIN
- 另请参见:
- 常量字段值
TEST
public static final String TEST
- 另请参见:
- 常量字段值
TEMP
public static final String TEMP
- 另请参见:
- 常量字段值
TRAIN_SCALE
public static final String TRAIN_SCALE
- 另请参见:
- 常量字段值
TEST_SCALE
public static final String TEST_SCALE
- 另请参见:
- 常量字段值
RANGE
public static final String RANGE
- 另请参见:
- 常量字段值
OUT
public static final String OUT
- 另请参见:
- 常量字段值
MODEL_EXT
public static final String MODEL_EXT
- 另请参见:
- 常量字段值
TRAIN_SCRIPT
public static final String TRAIN_SCRIPT
- 另请参见:
- 常量字段值
SVMSupport
public SVMSupport()
train
public static void train()
- Train SVM
predict
public static String predict(Measurement m)
- Predict
- 参数:
m - Measurement
- 返回:
- path to result file
isTrained
public static boolean isTrained()
transformToSVMFormat
public static void transformToSVMFormat(List<Measurement> data,
String fileName,
boolean isNew)
- Function transforms data (measurements) to the format of an SVM package.
Each measurement is represented as a vector of real numbers.
- 参数:
data - - list of measurementsfileName - - destination file name
Copyright © 2017. All Rights Reserved.