Interface IScikitLearnContentLoader

  • All Known Implementing Classes:
    BaseScikitLearnContentLoader, GaussianNaiveBayesContentLoader

    public interface IScikitLearnContentLoader
    IScikitLearnContentLoader abstracts the format of individual objects from the file formatting. A class should be derived from this interface for each classifier in scikit-learn.
    • Method Detail

      • getTypeName

        String getTypeName()
        Name of the loader. The name is stored in the header of the binary package file to be used during deserialization.
        Returns:
        The name/id of the loader type.
      • loadContent

        Object loadContent​(BinaryModelPackage buffer)
        Loads a scikit-learn object from an input stream.
        Parameters:
        buffer - The buffer to load the object from.
        Returns:
        A deserialized ready to use object.
      • duplicate

        IScikitLearnContentLoader duplicate()
        Creates a clone of the instance.
        Returns:
        An empty clean instance of the loader.