Represents a MindsDB model and all supported operations.

Hierarchy

  • Model

Constructors

  • Constructor.

    Parameters

    • modelsApiClient: default
    • name: string

      Name of the model.

    • project: string

      Name of the project the model belongs to.

    • targetColumn: string

      Target column the model predicts.

    • status: string

      Training status of the model.

    • updateStatus: UpdateStatus

      Status of the model being up to date or not.

    • version: number

      Model version.

    • Optional accuracy: number

      Accuracy of model predictions between 0 and 1.

    • Optional tag: string

      User assigned model tag.

    • Optional active: boolean

    Returns Model

Properties

accuracy?: number

Accuracy of model predictions between 0 and 1.

active?: boolean

Whether the model is active or not.

modelsApiClient: default

API client to use for executing model operations.

name: string

Name of the model.

project: string

Name of the project the model belongs to.

status: string

Training status of the model (e.g. training, error, complete).

tag?: string

User assigned model tag.

targetColumn: string

Target column the model predicts.

updateStatus: UpdateStatus

Status of the model being up to date or not. Set to 'available' when a new version of MindsDB is available that makes the model obsolete, or when new data is available in the table that was used to train the model.

version: number

Model version.

Methods

  • Partially adjusts this model with the given options.

    Throws

    • Something went wrong adjusting this model.

    Parameters

    • integration: string

      Integration name for the training data (e.g. mindsdb).

    • options: AdjustOptions

      Options to use when adjusting the model.

    Returns Promise<void>

  • Deletes this model.

    Throws

    • Something went wrong deleting this model.

    Returns Promise<void>

  • Retrains this model with the given options.

    Throws

    • Something went wrong retraining this model.

    Parameters

    • Optional options: TrainingOptions

      Options to use when retraining the model.

    Returns Promise<void>

  • Creates a Model instance from a row returned from the MindsDB database.

    Returns

    • New Model instance created from the given data.

    Parameters

    • obj: ModelRow

      Data row from the MindsDB database.

    • modelsApiClient: default

      Models API client to use for executing model operations.

    Returns Model

Generated using TypeDoc