Class 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 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.
    • Constructor Detail

      • ScikitLearnPackageHeaderV1

        public ScikitLearnPackageHeaderV1()
    • 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:
        getFileFormatVersion in interface IScikitLearnPackageHeader
        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:
        getScikitLearnVersion in interface IScikitLearnPackageHeader
        Returns:
        scikit-learn library used to train/prepare the objects