:py:mod:`abacusai.api_class.deployment`
=======================================

.. py:module:: abacusai.api_class.deployment


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   abacusai.api_class.deployment.PredictionArguments
   abacusai.api_class.deployment.OptimizationPredictionArguments
   abacusai.api_class.deployment.TimeseriesAnomalyPredictionArguments
   abacusai.api_class.deployment.AnomalyOutliersPredictionArguments
   abacusai.api_class.deployment.ChatLLMPredictionArguments
   abacusai.api_class.deployment.RegressionPredictionArguments
   abacusai.api_class.deployment.ForecastingPredictionArguments
   abacusai.api_class.deployment.CumulativeForecastingPredictionArguments
   abacusai.api_class.deployment.NaturalLanguageSearchPredictionArguments
   abacusai.api_class.deployment.FeatureStorePredictionArguments
   abacusai.api_class.deployment._PredictionArgumentsFactory




.. py:class:: PredictionArguments


   Bases: :py:obj:`abacusai.api_class.abstract.ApiClass`

   Helper class that provides a standard way to create an ABC using
   inheritance.

   .. py:attribute:: _support_kwargs
      :type: bool

      

   .. py:attribute:: kwargs
      :type: dict

      

   .. py:attribute:: problem_type
      :type: abacusai.api_class.enums.ProblemType

      

   .. py:method:: _get_builder()
      :classmethod:



.. py:class:: OptimizationPredictionArguments


   Bases: :py:obj:`PredictionArguments`

   Prediction arguments for the OPTIMIZATION problem type

   :param forced_assignments: Set of assignments to force and resolve before returning query results.
   :type forced_assignments: dict
   :param solve_time_limit_seconds: Maximum time in seconds to spend solving the query.
   :type solve_time_limit_seconds: float
   :param include_all_assignmnets: If True, will return all assignments, including assignments with value 0. Default is False.
   :type include_all_assignmnets: bool

   .. py:attribute:: forced_assignments
      :type: dict

      

   .. py:attribute:: solve_time_limit_seconds
      :type: float

      

   .. py:attribute:: include_all_assignments
      :type: bool

      

   .. py:method:: __post_init__()



.. py:class:: TimeseriesAnomalyPredictionArguments


   Bases: :py:obj:`PredictionArguments`

   Prediction arguments for the TS_ANOMALY problem type

   :param start_timestamp: Timestamp from which anomalies have to be detected in the training data
   :type start_timestamp: str
   :param end_timestsamp: Timestamp to which anomalies have to be detected in the training data
   :type end_timestsamp: str
   :param get_all_item_data: If True, anomaly detection has to be performed on all the data related to input ids
   :type get_all_item_data: bool

   .. py:attribute:: start_timestamp
      :type: str

      

   .. py:attribute:: end_timestamp
      :type: str

      

   .. py:attribute:: get_all_item_data
      :type: bool

      

   .. py:method:: __post_init__()



.. py:class:: AnomalyOutliersPredictionArguments


   Bases: :py:obj:`PredictionArguments`

   Prediction arguments for the ANOMALY_OUTLIERS problem type

   :param threshold: The threshold score of what is an anomaly. Valid values are between 0.8 and 0.99
   :type threshold: float
   :param histogram: If True, will return a histogram of the distribution of all points
   :type histogram: bool

   .. py:attribute:: threshold
      :type: float

      

   .. py:attribute:: histogram
      :type: str

      

   .. py:method:: __post_init__()



.. py:class:: ChatLLMPredictionArguments


   Bases: :py:obj:`PredictionArguments`

   Prediction arguments for the CHAT_LLM problem type

   :param llm_name: Name of the specific LLM backend to use to power the chat experience.
   :type llm_name: str
   :param num_completion_tokens: Default for maximum number of tokens for chat answers.
   :type num_completion_tokens: int
   :param system_message: The generative LLM system message.
   :type system_message: str
   :param temperature: The generative LLM temperature.
   :type temperature: float
   :param search_score_cutoff: Cutoff for the document retriever score. Matching search results below this score will be ignored.
   :type search_score_cutoff: float
   :param ignore_documents: If True, will ignore any documents and search results, and only use the messages to generate a response.
   :type ignore_documents: bool

   .. py:attribute:: llm_name
      :type: str

      

   .. py:attribute:: num_completion_tokens
      :type: int

      

   .. py:attribute:: system_message
      :type: str

      

   .. py:attribute:: temperature
      :type: float

      

   .. py:attribute:: search_score_cutoff
      :type: float

      

   .. py:attribute:: ignore_documents
      :type: bool

      

   .. py:method:: __post_init__()



.. py:class:: RegressionPredictionArguments


   Bases: :py:obj:`PredictionArguments`

   Prediction arguments for the PREDICTIVE_MODELING problem type

   :param explain_predictions: If true, will explain predictions.
   :type explain_predictions: bool
   :param explainer_type: Type of explainer to use for explanations.
   :type explainer_type: str

   .. py:attribute:: explain_predictions
      :type: bool

      

   .. py:attribute:: explainer_type
      :type: str

      

   .. py:method:: __post_init__()



.. py:class:: ForecastingPredictionArguments


   Bases: :py:obj:`PredictionArguments`

   Prediction arguments for the FORECASTING problem type

   :param num_predictions: The number of timestamps to predict in the future.
   :type num_predictions: int
   :param prediction_start: The start date for predictions (e.g., "2015-08-01T00:00:00" as input for mid-night of 2015-08-01).
   :type prediction_start: str
   :param explain_predictions: If True, explain predictions for forecasting.
   :type explain_predictions: bool
   :param explainer_type: Type of explainer to use for explanations.
   :type explainer_type: str
   :param get_item_data: If True, will return the data corresponding to items as well.
   :type get_item_data: bool

   .. py:attribute:: num_predictions
      :type: int

      

   .. py:attribute:: prediction_start
      :type: str

      

   .. py:attribute:: explain_predictions
      :type: bool

      

   .. py:attribute:: explainer_type
      :type: str

      

   .. py:attribute:: get_item_data
      :type: bool

      

   .. py:method:: __post_init__()



.. py:class:: CumulativeForecastingPredictionArguments


   Bases: :py:obj:`PredictionArguments`

   Prediction arguments for the CUMULATIVE_FORECASTING problem type

   :param num_predictions: The number of timestamps to predict in the future.
   :type num_predictions: int
   :param prediction_start: The start date for predictions (e.g., "2015-08-01T00:00:00" as input for mid-night of 2015-08-01).
   :type prediction_start: str
   :param explain_predictions: If True, explain predictions for forecasting.
   :type explain_predictions: bool
   :param explainer_type: Type of explainer to use for explanations.
   :type explainer_type: str
   :param get_item_data: If True, will return the data corresponding to items as well.
   :type get_item_data: bool

   .. py:attribute:: num_predictions
      :type: int

      

   .. py:attribute:: prediction_start
      :type: str

      

   .. py:attribute:: explain_predictions
      :type: bool

      

   .. py:attribute:: explainer_type
      :type: str

      

   .. py:attribute:: get_item_data
      :type: bool

      

   .. py:method:: __post_init__()



.. py:class:: NaturalLanguageSearchPredictionArguments


   Bases: :py:obj:`PredictionArguments`

   Prediction arguments for the NATURAL_LANGUAGE_SEARCH problem type

   :param llm_name: Name of the specific LLM backend to use to power the chat experience.
   :type llm_name: str
   :param num_completion_tokens: Default for maximum number of tokens for chat answers.
   :type num_completion_tokens: int
   :param system_message: The generative LLM system message.
   :type system_message: str
   :param temperature: The generative LLM temperature.
   :type temperature: float
   :param search_score_cutoff: Cutoff for the document retriever score. Matching search results below this score will be ignored.
   :type search_score_cutoff: float
   :param ignore_documents: If True, will ignore any documents and search results, and only use the messages to generate a response.
   :type ignore_documents: bool

   .. py:attribute:: llm_name
      :type: str

      

   .. py:attribute:: num_completion_tokens
      :type: int

      

   .. py:attribute:: system_message
      :type: str

      

   .. py:attribute:: temperature
      :type: float

      

   .. py:attribute:: search_score_cutoff
      :type: float

      

   .. py:attribute:: ignore_documents
      :type: bool

      

   .. py:method:: __post_init__()



.. py:class:: FeatureStorePredictionArguments


   Bases: :py:obj:`PredictionArguments`

   Prediction arguments for the FEATURE_STORE problem type

   :param limit_results: If provided, will limit the number of results to the value specified.
   :type limit_results: int

   .. py:attribute:: limit_results
      :type: int

      

   .. py:method:: __post_init__()



.. py:class:: _PredictionArgumentsFactory


   Bases: :py:obj:`abacusai.api_class.abstract._ApiClassFactory`

   Helper class that provides a standard way to create an ABC using
   inheritance.

   .. py:attribute:: config_abstract_class

      

   .. py:attribute:: config_class_key
      :value: 'problem_type'

      

   .. py:attribute:: config_class_map

      


