client.predictions.get
A method of the Predictions endpoint.
- get(id: int) Response
Show the specified prediction
API URL:
GET /predictions/{id}import civis client = civis.APIClient() response = client.predictions.get(...)
- Parameters:
- idint
The ID of the prediction.
- Returns:
civis.Response- idint
The ID of the prediction.
- model_idint
The ID of the model used for this prediction.
- scored_table_idint
The ID of the source table for this prediction.
- scored_table_namestr
The name of the source table for this prediction.
- output_table_namestr
The name of the output table for this prediction.
- statestr
The state of the last run of this prediction.
- errorstr
The error, if any, of the last run of this prediction.
- started_atstr (date-time)
The start time of the last run of this prediction.
- finished_atstr (date-time)
The end time of the last run of this prediction.
- last_run
civis.Response id : int
- statestr
The state of the run. One of queued, running, succeeded, failed or cancelled.
- created_atstr (time)
The time that the run was queued.
- started_atstr (time)
The time that the run started.
- finished_atstr (time)
The time that the run completed.
- errorstr
The error message for this run, if present.
- last_run
- scored_tablesList[
civis.Response] An array of created prediction tables.
- idint
The ID of the table with created predictions.
- schemastr
The schema of table with created predictions.
- namestr
The name of table with created predictions.
- created_atstr (date-time)
The time when the table with created predictions was created.
- score_statsList[
civis.Response] An array of metrics on the created predictions.
- score_namestr
The name of the score.
- histogramList[int]
The histogram of the distribution of scores.
- avg_scorefloat (float)
The average score.
- min_scorefloat (float)
The minimum score.
- max_scorefloat (float)
The maximum score.
- score_statsList[
- scored_tablesList[
- schedule
civis.Response - scheduledbool
If the item is scheduled.
- scheduled_daysList[int]
Days of the week, based on numeric value starting at 0 for Sunday. Mutually exclusive with scheduledDaysOfMonth
- scheduled_hoursList[int]
Hours of the day it is scheduled on.
- scheduled_minutesList[int]
Minutes of the day it is scheduled on.
- scheduled_runs_per_hourint
Deprecated in favor of scheduled minutes.
- scheduled_days_of_monthList[int]
Days of the month it is scheduled on, mutually exclusive with scheduledDays.
- schedule
- limiting_sqlstr
A SQL WHERE clause used to scope the rows to be predicted.
- primary_keyList[str]
The primary key or composite keys of the table being predicted.