Back to Mindsdb

Get a Single Prediction

docs/sdks/python/get-single-prediction.mdx

26.1.0251 B
Original Source

Description

The predict() function fetches predictions from the model table.

Syntax

Use the predict() method to make a single prediction by passing the specific values as its argument:

python
my_model.predict({"text": 'any text'})