Skip to content

Commit

Permalink
Update UDF to function in model-forecasting.rst (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
xzdandy authored Sep 7, 2023
1 parent 00fe7a9 commit b08a27a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/source/overview/getting-started/installation-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ EvaDB provides the following additional installation options for extending its f

* ``pip install evadb[ludwig]`` for installing the Ludwig model training framework. It enables use-cases related to training and fine-tuning AI models.

* ``pip install evadb[forecasting]`` for installing the statsforecast forecasting framework. It enables use-cases related to time series forecasting.

* ``pip install evadb[ray]`` for installing the Ray compute engine. It enables EvaDB to do more efficient query execution on CPUs and GPUs.

4 changes: 2 additions & 2 deletions docs/source/reference/ai/model-forecasting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ First, we create a table to insert required data.
LOAD CSV 'data/forecasting/air-passengers.csv' INTO AirData;
Next, we create a UDF of `TYPE Forecasting`. We must enter the column name on which we wish to forecast using `predict`. Other options include `id` and `time` (they represent the unique id of the items and the time data if available).
Next, we create a function of `TYPE Forecasting`. We must enter the column name on which we wish to forecast using `predict`. Other options include `id` and `time` (they represent the unique id of the items and the time data if available).

.. code-block:: sql
CREATE UDF IF NOT EXISTS Forecast FROM
CREATE FUNCTION IF NOT EXISTS Forecast FROM
(SELECT y FROM AirData)
TYPE Forecasting
PREDICT 'y';
Expand Down

0 comments on commit b08a27a

Please sign in to comment.