aito.api.quick_predict_and_evaluate¶
-
aito.api.
quick_predict_and_evaluate
(client: aito.client.aito_client.AitoClient, from_table: str, predicting_field: str) → Tuple[Dict, Dict]¶ generate an example predict query to predict a field and the corresponding evaluate query
The example query will use all fields of the table as the hypothesis and the first entry of the table as the input data
- Parameters
client (AitoClient) – the AitoClient instance
from_table (str) – the name of the table the will be use as context for prediction.
predicting_field (str) – the name of the predicting field. If the field belongs to a linked table, it should be in the format of <column_with_link>.<field_name>
- Returns
a tuple contains the predict query and the prediction result
- Return type
Tuple[Dict, Dict]