Skip to content

Commit 8b35ae0

Browse files
authored
Merge branch 'main' into jobs_api_update
2 parents 41a4e37 + 7f8b70d commit 8b35ae0

File tree

2 files changed

+4
-2
lines changed
  • ads/opctl/operator/lowcode/forecast/model
  • docs/source/user_guide/operators/common

2 files changed

+4
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ def _train_model(self, i, s_id, df, model_kwargs):
6767
self.forecast_output.init_series_output(series_id=s_id, data_at_series=df)
6868
# If trend is constant, remove constant columns
6969
if "trend" not in model_kwargs or model_kwargs["trend"] == "c":
70-
self.constant_cols[s_id] = df.columns[df.nunique() == 1]
70+
self.constant_cols[s_id] = list(df.columns[df.nunique() == 1])
71+
if target in self.constant_cols[s_id]:
72+
self.constant_cols[s_id].remove(target)
7173
df = df.drop(columns=self.constant_cols[s_id])
7274

7375
# format the dataframe for this target. Dropping NA on target[df] will remove all future data

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ This creates a new ``<operator-type>_<operator-version>`` conda environment and
236236

237237
.. code-block:: bash
238238
239-
ads operator publish --type <operator-type>
239+
ads opctl conda publish --slug <operator-type>_<operator-version>
240240
241241
For more details on configuring the CLI, refer to the :doc:`Explore & Configure Operators<./explore>` documentation.
242242

0 commit comments

Comments
 (0)