Skip to content

Commit df078a2

Browse files
authored
Merge branch 'main' into dependabot/pip/protobuf-6.33.5
2 parents 7a22f6d + ec6ee32 commit df078a2

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
# Copyright (c) 2023, 2025 Oracle and/or its affiliates.
3+
# Copyright (c) 2023, 2026 Oracle and/or its affiliates.
44
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
55

66
import logging
@@ -94,7 +94,7 @@ def _train_model(self, i, s_id, df, model_kwargs):
9494
# Build and fit model
9595
model = pm.auto_arima(y=y, X=X_in, **model_kwargs)
9696

97-
fitted_values = model.predict_in_sample(X=X_in).values
97+
fitted_values = model.predict_in_sample(X=X_in).values[model.order[1]:]
9898

9999
# Predict and format forecast
100100
yhat, conf_int = model.predict(

ads/opctl/operator/lowcode/forecast/whatifserve/deployment_manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
# Copyright (c) 2023, 2024 Oracle and/or its affiliates.
2+
# Copyright (c) 2023, 2026 Oracle and/or its affiliates.
33
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
44

55
import os
@@ -125,12 +125,12 @@ def _copy_score_file(self):
125125

126126
def save_to_catalog(self):
127127
"""Save the model to a model catalog"""
128+
is_oci = ObjectStorageDetails.is_oci_path(self.pickle_file_path)
129+
storage_signer = default_signer() if is_oci else {}
128130
with fsspec.open(
129131
self.pickle_file_path,
130132
"rb",
131-
**(
132-
default_signer() if ObjectStorageDetails.is_oci_path(self.pickle_file_path) else {}
133-
),
133+
**storage_signer,
134134
) as f:
135135
self.model_obj = pickle.load(f)
136136

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ On a Notebook Session (OCI Data Science)
1212

1313
.. code-block:: bash
1414
15-
odsc conda install -s forecast_p311_cpu_x86_64_v6
16-
conda activate /home/datascience/conda/forecast_p311_cpu_x86_64_v6
15+
odsc conda install -s forecast_p311_cpu_x86_64_v13
16+
conda activate /home/datascience/conda/forecast_p311_cpu_x86_64_v13
1717
1818
.. image:: ./images/forecast_conda.png
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ To install:
4444

4545
.. code-block:: bash
4646
47-
conda activate /home/datascience/conda/forecast_p311_cpu_x86_64_v6
47+
conda activate /home/datascience/conda/forecast_p311_cpu_x86_64_v13
4848
4949
That's it. Your environment is ready to run Operators!

0 commit comments

Comments
 (0)