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