com.aiyc.server.standalone.svm
类 SVMSupport

java.lang.Object
  继承者 com.aiyc.server.standalone.svm.SVMSupport

public class SVMSupport
extends Object

作者:
felly

字段摘要
static String MODEL_EXT
           
static String OUT
           
static String RANGE
           
static String TEMP
           
static String TEST
           
static String TEST_SCALE
           
static String TRAIN
           
static String TRAIN_SCALE
           
static String TRAIN_SCRIPT
           
 
构造方法摘要
SVMSupport()
           
 
方法摘要
static boolean isTrained()
           
static String predict(Measurement m)
          Predict
static void train()
          Train SVM
static void transformToSVMFormat(List<Measurement> data, String fileName, boolean isNew)
          Function transforms data (measurements) to the format of an SVM package.
 
从类 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 measurements
fileName - - destination file name


Copyright © 2017. All Rights Reserved.