Skip to content

Commit 8ee6005

Browse files
authored
Merge branch 'main' into fix_aqua_vision_model
2 parents f1b7e82 + 0d9ad9d commit 8ee6005

File tree

28 files changed

+970
-702
lines changed

28 files changed

+970
-702
lines changed

ads/opctl/operator/lowcode/forecast/MLoperator

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ type: forecast
22
version: v1
33
name: Forecasting Operator
44
conda_type: service
5-
conda: forecast_p38_cpu_v1
5+
conda: forecast_p310_cpu_x86_64_v4
66
gpu: no
77
jobs_default_params:
88
shape_name: VM.Standard.E4.Flex
9-
ocpus: 32
10-
memory_in_gbs: 512
9+
ocpus: 16
10+
memory_in_gbs: 256
1111
block_storage_size_in_GBs: 512
1212
keywords:
1313
- Prophet

ads/opctl/operator/lowcode/forecast/model/automlx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def set_kwargs(self):
4949
time_budget = model_kwargs_cleaned.pop("time_budget", -1)
5050
model_kwargs_cleaned[
5151
"preprocessing"
52-
] = self.spec.preprocessing or model_kwargs_cleaned.get("preprocessing", True)
52+
] = self.spec.preprocessing.enabled or model_kwargs_cleaned.get("preprocessing", True)
5353
return model_kwargs_cleaned, time_budget
5454

5555
def preprocess(self, data, series_id=None): # TODO: re-use self.le for explanations

ads/opctl/operator/lowcode/forecast/model/forecast_datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, spec, historical_data):
6868
add_dates.sort()
6969
if historical_data.get_max_time() > add_dates[-spec.horizon]:
7070
raise DataMismatchError(
71-
f"The Historical Data ends on {historical_data.get_max_time()}. The additional data horizon starts on {add_dates[-spec.horizon]}. The horizon should have exactly {spec.horizon} dates after the Hisotrical at a frequency of {historical_data.freq}"
71+
f"The Historical Data ends on {historical_data.get_max_time()}. The additional data horizon starts on {add_dates[-spec.horizon]}. The horizon should have exactly {spec.horizon} dates after the Historical at a frequency of {historical_data.freq}"
7272
)
7373
elif historical_data.get_max_time() != add_dates[-(spec.horizon + 1)]:
7474
raise DataMismatchError(

docs/source/index.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Oracle Accelerated Data Science (ADS)
2020
.. toctree::
2121
:hidden:
2222
:maxdepth: 5
23-
:caption: Getting Started:
23+
:caption: Getting Started
2424

2525
release_notes
2626
user_guide/quick_start/quick_start
2727

2828
.. toctree::
2929
:hidden:
3030
:maxdepth: 5
31-
:caption: Installation and Configuration:
31+
:caption: Installation and Configuration
3232

3333
user_guide/cli/quickstart
3434
user_guide/cli/authentication
@@ -38,19 +38,19 @@ Oracle Accelerated Data Science (ADS)
3838
.. toctree::
3939
:hidden:
4040
:maxdepth: 5
41-
:caption: Low-Code AI Operators:
41+
:caption: Low-Code AI Operators
4242

4343
user_guide/operators/index
44-
user_guide/operators/common/index
45-
user_guide/operators/forecasting_operator/index
44+
user_guide/operators/forecast_operator/index
4645
user_guide/operators/anomaly_detection_operator/index
4746
user_guide/operators/pii_operator/index
4847
user_guide/operators/recommender_operator/index
48+
user_guide/operators/common/index
4949

5050
.. toctree::
5151
:hidden:
5252
:maxdepth: 5
53-
:caption: Tasks:
53+
:caption: Tasks
5454

5555
user_guide/loading_data/connect
5656
user_guide/data_labeling/index
@@ -62,7 +62,7 @@ Oracle Accelerated Data Science (ADS)
6262
.. toctree::
6363
:hidden:
6464
:maxdepth: 5
65-
:caption: Integrations:
65+
:caption: Integrations
6666

6767
user_guide/apachespark/spark
6868
user_guide/big_data_service/index
@@ -76,7 +76,7 @@ Oracle Accelerated Data Science (ADS)
7676
.. toctree::
7777
:hidden:
7878
:maxdepth: 5
79-
:caption: Classes:
79+
:caption: Classes
8080

8181
modules
8282

docs/source/release_notes.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Release Notes
33
=============
44

5+
2.12.0
6+
-------
7+
Release date: October 1, 2024
8+
9+
* Update LangChain Integration to add support for chat model, streaming and async calls.
10+
511
2.11.19
612
-------
713
Release date: September 24, 2024
@@ -140,7 +146,7 @@ Release date: March 20, 2024
140146
Release date: February 7, 2024
141147

142148
* Releasing v1 of the Anomaly Detection Operator! The Anomaly Detection Operator is a no-code Anomaly or Outlier Detection solution through the OCI Data Science Platform. It uses dozens of models from Oracle’s own proprietary research and the best of open source. See the ``Anomaly Detection`` Section of the ``AI Operators`` tab for full details (:doc:`link <./user_guide/operators/anomaly_detection_operator/index>`).
143-
* Releasing a new version of the Forecast Operator. This release has faster explainability, improved support for reading from databases, upgrades to the automatic reporting, improved parallelization across all models, and an ability to save models for deferred inference. See the ``Forecast`` Section of the ``AI Operators`` tab for full details (:doc:`link <./user_guide/operators/forecasting_operator/index>`).
149+
* Releasing a new version of the Forecast Operator. This release has faster explainability, improved support for reading from databases, upgrades to the automatic reporting, improved parallelization across all models, and an ability to save models for deferred inference. See the ``Forecast`` Section of the ``AI Operators`` tab for full details (:doc:`link <./user_guide/operators/forecast_operator/index>`).
144150
* Change to the default signer such that it now defaults to ``resource_prinicpal`` on any OCI Data Science resource (for example, jobs, notebooks, model deployments, dataflow).
145151

146152
2.10.0

docs/source/user_guide/large_language_model/langchain_models.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ LangChain Integration
66
.. admonition:: LangChain Community
77
:class: note
88

9-
While the stable integrations (such as ``OCIModelDeploymentVLLM`` and ``OCIModelDeploymentTGI``) are also available from `LangChain Community <https://python.langchain.com/docs/integrations/llms/oci_model_deployment_endpoint>`_, integrations from ADS may provide additional or experimental features in the latest updates, .
9+
While the stable integrations (such as ``ChatOCIModelDeploymentVLLM`` and ``OCIModelDeploymentVLLM``) are also available from `LangChain Community <https://python.langchain.com/docs/integrations/llms/oci_model_deployment_endpoint>`_, integrations from ADS may provide additional or experimental features in the latest updates.
1010

1111
.. admonition:: Requirements
1212
:class: note
1313

14-
The LangChain integration requires ``python>=3.9`` and ``langchain>=0.3``
14+
The LangChain integration requires ``python>=3.9`` and ``langchain>=0.3``. Chat model also requires ``langchain-openai``.
1515

1616

1717
LangChain compatible models/interfaces are needed for LangChain applications to invoke LLMs deployed on OCI data science model deployment service.

docs/source/user_guide/operators/anomaly_detection_operator/faq.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,3 @@ More details in the documentation here: https://docs.oracle.com/en-us/iaas/tools
99
**How do I learn More about AutoTS?**
1010

1111
More details in the documentation here: https://winedarksea.github.io/AutoTS/build/html/source/tutorial.html
12-
13-
**Pip Install Failing with "ERROR: No matching distribution found for oracle-automlx==23.4.1; extra == "forecast""**
14-
15-
Automlx only supports Python<=3.8, != 3.9, <= 3.10.7 . If you are builing in Python 3.9 or 3.10.8+, no automlx distribution will be available. It's recommended to use the conda pack available through Notebook Sessions, or to use Python 3.8

docs/source/user_guide/operators/anomaly_detection_operator/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Installing Through PyPi
1212

1313
If you are running the operator from outside of a Notebook Session, you may download ``oracle_ads[anomaly]`` from pypi.
1414

15-
*Note: Due to our dependence on Automlx, ``oracle_ads[anomaly]`` only supports Python<=3.8, != 3.9, <= 3.10.7 . Python 3.8 is the recommended version.*
15+
*Note: Python 3.10 is recommended.*
1616

1717
.. code-block:: bash
1818

docs/source/user_guide/operators/common/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
===============
2-
Getting Started
3-
===============
1+
====================
2+
More About Operators
3+
====================
44

55
Welcome to the world of operators! Getting started with operators is a breeze, and this section will guide you through the process step by step. Whether you're a seasoned data scientist or a newcomer, you'll find that harnessing the power of operators is both accessible and rewarding.
66

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
=================
2+
Data Integration
3+
=================
4+
5+
Supported Data Sources
6+
----------------------
7+
8+
The Operator can read data from the following sources:
9+
10+
- Oracle RDBMS
11+
- OCI Object Storage
12+
- OCI Data Lake
13+
- HTTPS
14+
- S3
15+
- Azure Blob Storage
16+
- Google Cloud Storage
17+
- Local file systems
18+
19+
Additionally, the operator supports any data source supported by `fsspec <https://filesystem-spec.readthedocs.io/en/latest/_modules/fsspec/registry.html>`_.
20+
21+
Examples
22+
--------
23+
24+
Reading from OCI Object Storage
25+
===============================
26+
27+
Below is an example of reading data from OCI Object Storage using the operator:
28+
29+
.. code-block:: yaml
30+
31+
kind: operator
32+
type: forecast
33+
version: v1
34+
spec:
35+
datetime_column:
36+
name: ds
37+
historical_data:
38+
url: oci://<bucket_name>@<namespace_name>/example_yosemite_temps.csv
39+
horizon: 3
40+
target_column: y
41+
42+
Reading from Oracle Database
43+
============================
44+
45+
Below is an example of reading data from an Oracle Database:
46+
47+
.. code-block:: yaml
48+
49+
kind: operator
50+
type: forecast
51+
version: v1
52+
spec:
53+
historical_data:
54+
connect_args:
55+
user: XXX
56+
password: YYY
57+
dsn: "localhost/orclpdb"
58+
sql: 'SELECT Store_ID, Sales, Date FROM live_data'
59+
datetime_column:
60+
name: ds
61+
horizon: 1
62+
target_column: y
63+
64+
65+
Data Preprocessing
66+
------------------
67+
68+
The forecasting operator simplifies powerful data preprocessing. By default, it includes several preprocessing steps to ensure dataset compliance with each framework. However, users can disable one or more of these steps if needed, though doing so may cause the model to fail. Proceed with caution.
69+
70+
Default preprocessing steps:
71+
- Missing value imputation
72+
- Outlier treatment
73+
74+
To disable ``outlier_treatment``, modify the YAML file as shown below:
75+
76+
.. code-block:: yaml
77+
78+
kind: operator
79+
type: forecast
80+
version: v1
81+
spec:
82+
datetime_column:
83+
name: ds
84+
historical_data:
85+
url: https://raw.githubusercontent.com/facebook/prophet/main/examples/example_yosemite_temps.csv
86+
horizon: 3
87+
target_column: y
88+
preprocessing:
89+
enabled: true
90+
steps:
91+
missing_value_imputation: True
92+
outlier_treatment: False
93+
94+
95+
Real-Time Trigger
96+
-----------------
97+
98+
The Operator can be run locally or on an OCI Data Science Job. The resultant model can be saved and deployed for future use if needed. For questions regarding this integration, please reach out to the OCI Data Science team.

0 commit comments

Comments
 (0)