com.aiyc.server.standalone.svm
类 MapSVMSupport
java.lang.Object
com.aiyc.server.standalone.svm.MapSVMSupport
public class MapSVMSupport
- extends Object
- 作者:
- felly
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRAIN
public static String TRAIN
TEST
public static String TEST
TEMP
public static String TEMP
TRAIN_SCALE
public static String TRAIN_SCALE
TEST_SCALE
public static String TEST_SCALE
RANGE
public static String RANGE
OUT
public static String OUT
MODEL_EXT
public static String MODEL_EXT
TRAIN_SCRIPT
public static String TRAIN_SCRIPT
MapSVMSupport
public MapSVMSupport()
main
public static void main(String[] dfsfpp)
throws Exception
- 抛出:
Exception
initParams
public static void initParams(String mapId)
train
public static void train(String mapId)
- Train SVM
getModelFile
public static String getModelFile(String mapId)
throws SQLException
- �õ�ģ���ļ�
- 抛出:
SQLException
predict
public static String predict(String mapId,
Measurement m)
throws Exception
- Predict
- 参数:
m - Measurement
- 返回:
- path to result file
- 抛出:
Exception
isTrained
public static boolean isTrained(String mapId)
transformToSVMFormat
public static void transformToSVMFormat(List<Measurement> data,
String fileName,
boolean isNew,
String mapId)
- 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.