Class ScikitLearnPackageHeaderV1
- java.lang.Object
-
- ai.sklearn4j.core.packaging.version_1.ScikitLearnPackageHeaderV1
-
- All Implemented Interfaces:
IScikitLearnPackageHeader
public class ScikitLearnPackageHeaderV1 extends Object implements IScikitLearnPackageHeader
A data class that contains the values stored in the header of the binary package files. This is the default implementation for version 1 of the binary file formats.
-
-
Field Summary
Fields Modifier and Type Field Description intfileFormatVersionThe version of the binary package file.StringnumpyVersionThe version of the numpy library used to train/prepare the objects contained in the current file.StringplatformInfoInformation about the platform that was used to create the binary package file.StringpythonInfoInformation about the python version installed that was used to create the binary package file.StringscikitLearnVersionThe version of the scikit-learn library used to train/prepare the objects contained in the current file.StringscipyVersionThe version of the scipy library used to train/prepare the objects contained in the current file.String[]serializerTypesList of the serializers used to serialize the primary contents of the binary package.Stringsklearn4xVersionThe sklearn4x version.
-
Constructor Summary
Constructors Constructor Description ScikitLearnPackageHeaderV1()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFileFormatVersion()Gets the version of the binary package file.StringgetScikitLearnVersion()Gets the version of the scikit-learn library used to train/prepare the objects contained in the current file.
-
-
-
Field Detail
-
fileFormatVersion
public int fileFormatVersion
The version of the binary package file. This value is the first 4 bytes stored in the file.
-
sklearn4xVersion
public String sklearn4xVersion
The sklearn4x version. This is the library used to serialize the models into file. For more information, please see:https://pypi.org/project/sklearn4x/
-
scikitLearnVersion
public String scikitLearnVersion
The version of the scikit-learn library used to train/prepare the objects contained in the current file.
-
numpyVersion
public String numpyVersion
The version of the numpy library used to train/prepare the objects contained in the current file.
-
scipyVersion
public String scipyVersion
The version of the scipy library used to train/prepare the objects contained in the current file.
-
pythonInfo
public String pythonInfo
Information about the python version installed that was used to create the binary package file.
-
platformInfo
public String platformInfo
Information about the platform that was used to create the binary package file.
-
serializerTypes
public String[] serializerTypes
List of the serializers used to serialize the primary contents of the binary package. These values are to be used for internal purposes only and should not be modified by the developers.
-
-
Method Detail
-
getFileFormatVersion
public int getFileFormatVersion()
Gets the version of the binary package file. This value is the first 4 bytes stored in the file.- Specified by:
getFileFormatVersionin interfaceIScikitLearnPackageHeader- Returns:
- Binary package file version.
-
getScikitLearnVersion
public String getScikitLearnVersion()
Gets the version of the scikit-learn library used to train/prepare the objects contained in the current file.- Specified by:
getScikitLearnVersionin interfaceIScikitLearnPackageHeader- Returns:
- scikit-learn library used to train/prepare the objects
-
-