Package ai.sklearn4j.core.packaging
Class ScikitLearnPackageFactory
- java.lang.Object
-
- ai.sklearn4j.core.packaging.ScikitLearnPackageFactory
-
public class ScikitLearnPackageFactory extends Object
ScikitLearnPackageFactory is a factory that takes in the physical file (or stream) of a binary package and parse it into a ready to use object. It also supports handling different versions of the binary files.
-
-
Constructor Summary
Constructors Constructor Description ScikitLearnPackageFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IScikitLearnPackageloadFromFile(String path)Load a binary package file into a ready to use object.
-
-
-
Method Detail
-
loadFromFile
public static IScikitLearnPackage loadFromFile(String path)
Load a binary package file into a ready to use object. It reads the version of the file and load the appropriate loader to deserialize the file.- Parameters:
path- Path of the file to be loaded.- Returns:
- An IScikitLearnPackage object that represent the models stored in the binary package file.
-
-