Skip to content

Commit 4284885

Browse files
authored
Merge branch 'main' into ODSC-74228/GPU-Shape-Recommendation
2 parents 389d050 + 38992ff commit 4284885

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ads/opctl/operator/lowcode/forecast/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33

44
# Copyright (c) 2023 Oracle and/or its affiliates.
55
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
6+
7+
import numpy as np
8+
np.random.seed(42)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _build_model(self) -> pd.DataFrame:
158158
summary_frame = model.forecast(
159159
X=X_pred,
160160
periods=horizon,
161-
alpha=1 - (self.spec.confidence_interval_width / 100),
161+
alpha=1 - self.spec.confidence_interval_width,
162162
)
163163

164164
fitted_values = model.predict(data_i.drop(target, axis=1))[

0 commit comments

Comments
 (0)