Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ads/opctl/operator/lowcode/forecast/model/arima.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

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

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

fitted_values = model.predict_in_sample(X=X_in).values
fitted_values = model.predict_in_sample(X=X_in).values[model.order[1]:]

# Predict and format forecast
yhat, conf_int = model.predict(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# Copyright (c) 2023, 2024 Oracle and/or its affiliates.
# Copyright (c) 2023, 2026 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/

import os
Expand Down Expand Up @@ -125,12 +125,12 @@ def _copy_score_file(self):

def save_to_catalog(self):
"""Save the model to a model catalog"""
is_oci = ObjectStorageDetails.is_oci_path(self.pickle_file_path)
storage_signer = default_signer() if is_oci else {}
with fsspec.open(
self.pickle_file_path,
"rb",
**(
default_signer() if ObjectStorageDetails.is_oci_path(self.pickle_file_path) else {}
),
**storage_signer,
) as f:
self.model_obj = pickle.load(f)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ On a Notebook Session (OCI Data Science)

.. code-block:: bash

odsc conda install -s forecast_p311_cpu_x86_64_v6
conda activate /home/datascience/conda/forecast_p311_cpu_x86_64_v6
odsc conda install -s forecast_p311_cpu_x86_64_v13
conda activate /home/datascience/conda/forecast_p311_cpu_x86_64_v13

.. image:: ./images/forecast_conda.png

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ To install:

.. code-block:: bash

conda activate /home/datascience/conda/forecast_p311_cpu_x86_64_v6
conda activate /home/datascience/conda/forecast_p311_cpu_x86_64_v13

That's it. Your environment is ready to run Operators!
Loading