Source: factory.ai/package.time/ObjAITime.py
| Method | Signature | Description |
|---|---|---|
| read | read(ai_code: str, package: str) -> None |
Reads AI time-series query details from the database based on AI code and package. |
| get_date_range | get_date_range() -> tuple |
Retrieves the min and max dates from the predict table and calculates the difference. |
| get_training_dataframe | get_training_dataframe(end_date: datetime.date) -> pd.DataFrame |
Retrieves and prepares the training data as a Pandas DataFrame. |
| insert_prediction_rows | insert_prediction_rows(start_date: datetime.date, time_difference: datetime.timedelta) -> None |
Inserts prediction rows into the database for a given date range. |
| query | query() |
Executes an AI transformation query using Prophet model. |
Run the AI query.