aito.api.estimate
- aito.api.estimate(client: AitoClient, query: Dict, raise_for_status: bool | None = None, use_job: bool = False) EstimateResponse | RequestError
send a query to the Estimate API
The Estimate operation predicts numeric values using K-NN with transformation pipelines.
- Parameters:
client (AitoClient) – the AitoClient instance
query (Dict) – the estimate query
raise_for_status (Optional[bool]) – raise
RequestErrorif the request fails instead of returning the error If set to None, value from Client will be used. Defaults to Noneuse_job (bool) – use job fo request that takes longer than 30 seconds, defaults to False
- Returns:
EstimateResponseorRequestErrorif an error occurred and not raise_for_status- Return type:
Union[EstimateResponse, RequestError]