Back to Mindsdb

Get Batch Predictions

docs/sdks/javascript/batchQuery.mdx

26.1.0600 B
Original Source

Description

The batchQuery() function fetches batch predictions from the model by joining it with the data table.

Syntax

Here is the syntax:

await model_name.batchQuery(batchQueryOptions);
<Tip> Here are some useful links: - [training options](https://mindsdb.github.io/mindsdb-js-sdk/interfaces/models_trainingOptions.TrainingOptions.html), - [query options](https://mindsdb.github.io/mindsdb-js-sdk/interfaces/models_queryOptions.QueryOptions.html), - [batch query options](https://mindsdb.github.io/mindsdb-js-sdk/interfaces/models_queryOptions.BatchQueryOptions.html). </Tip>