Skip to content

airt ds

A set of commands for managing the datasources and training ML models on them.

Usage:

$ airt ds [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion [bash|zsh|fish|powershell|pwsh]: Install completion for the specified shell.
  • --show-completion [bash|zsh|fish|powershell|pwsh]: Show completion for the specified shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • details: Return details of a datasource.
  • dtypes: Return the dtypes of the datasource.
  • head: Return the first few rows of the datasource.
  • ls: Return the list of datasources.
  • rm: Delete a datasource from the server.
  • tag: Tag an existing datasource in server.
  • train: Train a model against the datasource.

airt ds details

Return details of a datasource.

Usage:

$ airt ds details [OPTIONS] ID

Arguments:

  • ID: Datasource id in the server. [required]

Options:

  • -d, --debug: Set logger level to DEBUG and output everything.
  • --help: Show this message and exit.

airt ds dtypes

Return the dtypes of the datasource.

Usage:

$ airt ds dtypes [OPTIONS] ID

Arguments:

  • ID: Datasource id in the server. [required]

Options:

  • -d, --debug: Set logger level to DEBUG and output everything.
  • --help: Show this message and exit.

airt ds head

Return the first few rows of the datasource.

Usage:

$ airt ds head [OPTIONS] ID

Arguments:

  • ID: Datasource id in the server. [required]

Options:

  • -d, --debug: Set logger level to DEBUG and output everything.
  • --help: Show this message and exit.

airt ds ls

Return the list of datasources.

Usage:

$ airt ds ls [OPTIONS]

Options:

  • -o, --offset INTEGER: The number of datasources to offset at the beginning. If None, then the default value 0 will be used. [default: 0]
  • -l, --limit INTEGER: The maximum number of datasources to return from the server. If None, then the default value 100 will be used. [default: 100]
  • --disabled: If set to True, then only the deleted datasources will be returned.Else, the default value False will be used to return only the listof active datasources.
  • --completed: If set to True, then only the datasources that are successfully downloadedto the server will be returned. Else, the default value False will be used toreturn all the datasources.
  • -q, --quiet: Output only ids of datasource separated by space
  • -d, --debug: Set logger level to DEBUG and output everything.
  • --help: Show this message and exit.

airt ds rm

Delete a datasource from the server.

Usage:

$ airt ds rm [OPTIONS] ID

Arguments:

  • ID: Datasource id in the server. [required]

Options:

  • -q, --quiet: Output the deleted data id only.
  • -d, --debug: Set logger level to DEBUG and output everything.
  • --help: Show this message and exit.

airt ds tag

Tag an existing datasource in server.

Usage:

$ airt ds tag [OPTIONS]

Options:

  • -id, --datasource_id INTEGER: Datasource id in the server. [required]
  • -n, --name TEXT: A string to tag the datasource. [required]
  • -d, --debug: Set logger level to DEBUG and output everything.
  • --help: Show this message and exit.

airt ds train

Train a model against the datasource.

Usage:

$ airt ds train [OPTIONS]

Options:

  • -id, --datasource_id TEXT: Datasource id in the server. [required]
  • --client_column TEXT: The column name that uniquely identifies the users/clients. [required]
  • --timestamp_column TEXT: The timestamp column indicating the time of an event. If not passed, then the default value None will be used.
  • --target_column TEXT: Target column name that indicates the type of the event. [required]
  • --target TEXT: Target event name to train and make predictions. You can pass the target event as a string or as a regular expression for predicting more than one event. For example, passing *checkout will train a model to predict any checkout event. [required]
  • --predict_after TEXT: Time delta in hours of the expected target event. [required]
  • -q, --quiet: Output model id only.
  • -d, --debug: Set logger level to DEBUG and output everything.
  • --help: Show this message and exit.
Back to top