com.aiyc.server.standalone.svm
类 MapSVMSupport

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

public class MapSVMSupport
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
           
 
构造方法摘要
MapSVMSupport()
           
 
方法摘要
static String getModelFile(String mapId)
          �õ�ģ���ļ�
static void initParams(String mapId)
           
static boolean isTrained(String mapId)
           
static void main(String[] dfsfpp)
           
static String predict(String mapId, Measurement m)
          Predict
static void train(String mapId)
          Train SVM
static void transformToSVMFormat(List<Measurement> data, String fileName, boolean isNew, String mapId)
          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 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 measurements
fileName - - destination file name


Copyright © 2017. All Rights Reserved.