Package org.instantsvm.utils
Class LibSvmIO
java.lang.Object
org.instantsvm.utils.LibSvmIO
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static doubleprotected static intstatic StringdefaultInputDirectory(String name) static StringdefaultInputPath(String name) static StringdefaultInputPath(String name, boolean isCsv) static StringdefaultModelDirectory(String name) static StringdefaultModelPath(String name) static svm_modelstatic RegressionInputsloadRegression(String filename) Load CSV format if file ends with ".csv", or LIBSVM data format otherwise.static RegressionInputsloadRegressionCsv(String filename) static RegressionInputsloadRegressionOriginalFormat(String filename) protected static intreadNLines(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
-