Class ModelInfo

java.lang.Object
org.gridgain.ml.model.ModelInfo
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MlJobParameters

public class ModelInfo extends Object implements Serializable
Class representing metadata and configuration information about a machine learning model.
See Also:
  • Constructor Details

    • ModelInfo

      protected ModelInfo(ModelInfo.Builder builder)
      Creates a new ModelInfo object with builder pattern.
      Parameters:
      builder - Builder instance
  • Method Details

    • id

      public String id()
      Gets the model ID.
      Returns:
      Model ID
    • name

      public String name()
      Gets the model name.
      Returns:
      Model name
    • version

      public String version()
      Gets the model version.
      Returns:
      Model version
    • type

      public ModelType type()
      Gets the model type.
      Returns:
      Model type
    • url

      public String url()
      Gets the model URL.
      Returns:
      Model URL
    • config

      public ModelConfig config()
      Gets the model configuration.
      Returns:
      Model configuration
    • properties

      public Map<String,String> properties()
      Gets the model properties.
      Returns:
      Model properties
    • isLoaded

      public boolean isLoaded()
      Checks if the model is loaded.
      Returns:
      True if loaded
    • loadTimestamp

      public long loadTimestamp()
      Gets the load timestamp.
      Returns:
      Load timestamp
    • status

      public ModelInfo.ModelStatus status()
      Gets the model status.
      Returns:
      Model status
    • inputClass

      public String inputClass()
      Gets the input class name.
      Returns:
      Input class name, or null if not set
    • outputClass

      public String outputClass()
      Gets the output class name.
      Returns:
      Output class name, or null if not set
    • translator

      public String translator()
      Gets the translator class name.
      Returns:
      Translator class name, or null if not set
    • translatorFactory

      public String translatorFactory()
      Gets the translator factory class name.
      Returns:
      Translator factory class name, or null if not set
    • setLoaded

      public void setLoaded(boolean loaded)
      Sets the loaded status.
      Parameters:
      loaded - Whether the model is loaded
    • setVersion

      public void setVersion(String version)
      Sets the model version.
      Parameters:
      version - Model version
    • setStatus

      public void setStatus(ModelInfo.ModelStatus status)
      Sets the model status.
      Parameters:
      status - Model status
    • setUrl

      public void setUrl(String url)
      Sets the model URL.
      Parameters:
      url - Model URL
    • setInputClass

      public void setInputClass(String inputClass)
      Sets the input class name.
      Parameters:
      inputClass - Input class name
    • setOutputClass

      public void setOutputClass(String outputClass)
      Sets the output class name.
      Parameters:
      outputClass - Output class name
    • setTranslator

      public void setTranslator(String translator)
      Sets the translator class name.
      Parameters:
      translator - Translator class name
    • setTranslatorFactory

      public void setTranslatorFactory(String translatorFactory)
      Sets the translator factory class name.
      Parameters:
      translatorFactory - Translator factory class name
    • property

      public String property(String key)
      Gets a property value.
      Parameters:
      key - The property key
      Returns:
      The property value, or null if not found
    • property

      public String property(String key, String defaultValue)
      Gets a property value with a default.
      Parameters:
      key - The property key
      defaultValue - The default value if property is not found
      Returns:
      The property value, or the default if not found
    • setProperty

      public void setProperty(String key, String value)
      Sets a property value.
      Parameters:
      key - The property key
      value - The property value