Package de.bwaldvogel.liblinear
Class Train
java.lang.Object
de.bwaldvogel.liblinear.Train
public class Train
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Train() -
Method Summary
Modifier and Type Method Description doublegetBias()ParametergetParameter()ProblemgetProblem()static voidmain(java.lang.String[] args)voidparse_command_line(java.lang.String[] argv)static ProblemreadProblem(java.io.File file, double bias)Deprecated.usereadProblem(Path, double)insteadstatic ProblemreadProblem(java.io.File file, java.nio.charset.Charset charset, double bias)Deprecated.usereadProblem(Path, Charset, double)insteadstatic ProblemreadProblem(java.io.InputStream inputStream, double bias)static ProblemreadProblem(java.io.InputStream inputStream, java.nio.charset.Charset charset, double bias)voidreadProblem(java.lang.String filename)voidreadProblem(java.lang.String filename, double bias)voidreadProblem(java.nio.file.Path path)static ProblemreadProblem(java.nio.file.Path path, double bias)reads a problem from LibSVM formatstatic ProblemreadProblem(java.nio.file.Path path, java.nio.charset.Charset charset, double bias)
-
Constructor Details
-
Train
public Train()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) throws java.io.IOException, InvalidInputDataException- Throws:
java.io.IOExceptionInvalidInputDataException
-
getProblem
-
getBias
public double getBias() -
getParameter
-
parse_command_line
public void parse_command_line(java.lang.String[] argv) -
readProblem
public static Problem readProblem(java.io.File file, double bias) throws java.io.IOException, InvalidInputDataExceptionDeprecated.usereadProblem(Path, double)insteadreads a problem from LibSVM format- Parameters:
file- the SVM file- Throws:
java.io.IOException- obviously in case of any I/O exception ;)InvalidInputDataException- if the input file is not correctly formatted
-
readProblem
public static Problem readProblem(java.nio.file.Path path, double bias) throws java.io.IOException, InvalidInputDataExceptionreads a problem from LibSVM format- Throws:
java.io.IOException- obviously in case of any I/O exception ;)InvalidInputDataException- if the input file is not correctly formatted
-
readProblem
public static Problem readProblem(java.io.File file, java.nio.charset.Charset charset, double bias) throws java.io.IOException, InvalidInputDataExceptionDeprecated.usereadProblem(Path, Charset, double)instead- Throws:
java.io.IOExceptionInvalidInputDataException
-
readProblem
public static Problem readProblem(java.nio.file.Path path, java.nio.charset.Charset charset, double bias) throws java.io.IOException, InvalidInputDataException- Throws:
java.io.IOExceptionInvalidInputDataException
-
readProblem
public static Problem readProblem(java.io.InputStream inputStream, double bias) throws java.io.IOException, InvalidInputDataException- Throws:
java.io.IOExceptionInvalidInputDataException
-
readProblem
public static Problem readProblem(java.io.InputStream inputStream, java.nio.charset.Charset charset, double bias) throws java.io.IOException, InvalidInputDataException- Throws:
java.io.IOExceptionInvalidInputDataException
-
readProblem
public void readProblem(java.nio.file.Path path) throws java.io.IOException, InvalidInputDataException- Throws:
java.io.IOExceptionInvalidInputDataException
-
readProblem
public void readProblem(java.lang.String filename) throws java.io.IOException, InvalidInputDataException- Throws:
java.io.IOExceptionInvalidInputDataException
-
readProblem
public void readProblem(java.lang.String filename, double bias) throws java.io.IOException, InvalidInputDataException- Throws:
java.io.IOExceptionInvalidInputDataException
-