Abstract class outlining Model API operations supported by the SDK.

Hierarchy

Constructors

Methods

  • Partially adjusts this model with the given options.

    Throws

    • Something went wrong adjusting the model.

    Parameters

    • name: string

      Name of the model.

    • project: string

      Project the model belongs to.

    • Optional options: AdjustOptions

      Options to use when adjusting the model.

    Returns Promise<void>

  • Queries this model for a batch prediction by joining with another data source.

    Returns

    • All prediction results from the batch query.

    Throws

    • Something went wrong batch querying the model.

    Parameters

    • name: string

      Name of the model.

    • version: number
    • targetColumn: string

      Column that the model predicts.

    • project: string

      Project the model belongs to.

    • options: BatchQueryOptions

      Options to use when querying the model.

    Returns Promise<ModelPrediction[]>

  • Deletes this model.

    Throws

    • Something went wrong deleting the model.

    Parameters

    • name: string

      Name of the model.

    • project: string

      Project the model belongs to.

    Returns Promise<void>

  • Describes the features of this model.

    Returns

    • All feature descriptions of the model. Empty if the model doesn't exist.

    Parameters

    • name: string

      Name of the model.

    • project: string

      Project the model belongs to.

    • Optional unique_id: string

      Optional unique id to filter the accuracy by.

    Returns Promise<ModelDescribeAccuracy[]>

  • Gets all models associated with a project.

    Returns

    • All models for the given project.

    Parameters

    • project: string

      Project the models belong to.

    Returns Promise<Model[]>

  • Gets a model by name and project.

    Returns

    • The matching model, or undefined if none exists.

    Parameters

    • name: string

      Name of the model.

    • project: string

      Project the model belongs to.

    Returns Promise<undefined | Model>

  • Queries this model for a single prediction. For batch predictions, use batchQuery.

    Returns

    • The prediction result.

    Throws

    • Something went wrong querying the model.

    Parameters

    • name: string

      Name of the model.

    • version: number
    • targetColumn: string

      Column that the model predicts.

    • project: string

      Project the model belongs to.

    • options: QueryOptions

      Options to use when querying the model.

    Returns Promise<ModelPrediction>

  • Rerains this model with the given options.

    Throws

    • Something went wrong retraining the model.

    Parameters

    • name: string

      Name of the model.

    • targetColumn: string

      Column for the model to predict.

    • project: string

      Project the model belongs to.

    • Optional options: TrainingOptions

      Options to use when retraining the model.

    Returns Promise<void>

  • Trains this model with the given options.

    Throws

    • Something went wrong training the model.

    Parameters

    • name: string

      Name of the model.

    • targetColumn: string

      Column for the model to predict.

    • project: string

      Project the model belongs to.

    • options: TrainingOptions

      Options to use when training the model.

    Returns Promise<Model>

Generated using TypeDoc