TSModelInference ================ .. autoclass:: ibm_watsonx_ai.foundation_models.inference.TSModelInference :members: :exclude-members: :undoc-members: :show-inheritance: Enums ----- .. class:: TimeSeriesModels Bases: ``StrEnum`` This represents a dynamically generated Enum for Time Series Foundation Models. **Example of getting TimeSeriesModels:** .. code-block:: python # GET TimeSeriesModels ENUM client.foundation_models.TimeSeriesModels # PRINT dict of Enums client.foundation_models.TimeSeriesModels.show() **Example Output:** .. code-block:: {'GRANITE_TTM_1024_96_R2': 'ibm/granite-ttm-1024-96-r2', 'GRANITE_TTM_1536_96_R2': 'ibm/granite-ttm-1536-96-r2', 'GRANITE_TTM_512_96_R2': 'ibm/granite-ttm-512-96-r2'} **Example of initialising ModelInference with TimeSeriesModels Enum:** .. code-block:: python from ibm_watsonx_ai.foundation_models import TSModelInference model = TSModelInference( model_id=client.foundation_models.TimeSeriesModels.GRANITE_TTM_1024_96_R2, credentials=Credentials(...), project_id=project_id, )