Package org.instantsvm.utils
Class LibSvmIO
java.lang.Object
org.instantsvm.utils.LibSvmIO
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static double
protected static int
static String
defaultInputDirectory
(String name) static String
defaultInputPath
(String name) static String
defaultInputPath
(String name, boolean isCsv) static String
defaultModelDirectory
(String name) static String
defaultModelPath
(String name) static svm_model
static RegressionInputs
loadRegression
(String filename) Load CSV format if file ends with ".csv", or LIBSVM data format otherwise.static RegressionInputs
loadRegressionCsv
(String filename) static RegressionInputs
loadRegressionOriginalFormat
(String filename) protected static int
readNLines
(String filename)
-
Field Details
-
DIR_DATASETS
- See Also:
-
DIR_MODELS
- See Also:
-
DEF_INPUT_NAME
- See Also:
-
DEF_CSV_INPUT_NAME
- See Also:
-
DEF_MODEL_NAME
- See Also:
-
-
Constructor Details
-
LibSvmIO
public LibSvmIO()
-
-
Method Details
-
defaultInputPath
-
defaultInputPath
-
defaultModelPath
-
defaultModelDirectory
-
defaultInputDirectory
-
loadRegression
Load CSV format if file ends with ".csv", or LIBSVM data format otherwise.- Throws:
IOException
-
loadRegressionOriginalFormat
- Throws:
IOException
-
loadModel
- Throws:
IOException
-
atof
-
atoi
-
loadRegressionCsv
- Throws:
IOException
-
readNLines
- Throws:
IOException
-