Skip to content

Commit bb7a554

Browse files
committed
fixes associated with AIT tutorial
1 parent 1d7f426 commit bb7a554

File tree

2 files changed

+37
-55
lines changed

2 files changed

+37
-55
lines changed

pvops/timeseries/models/AIT.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,11 @@ def _load_params(self):
126126
(0.06624491753542901, [0, 0])]
127127

128128
def predict_subset(self, prod_df, scaler, model_terms, prod_col_dict):
129-
prod_df = prod_df.copy()
130129
self.check_data(prod_df, prod_col_dict)
131130

132131
"""1. Standardize the data using same scales"""
133132
for k, d in scaler.items():
134-
data = prod_df[prod_col_dict[k]]
133+
data = prod_df[prod_col_dict[k]].copy()
135134
scaled_data = self._apply_transform(data, d)
136135
prod_df[self._col_scaled_prefix + prod_col_dict[k]] = scaled_data
137136

0 commit comments

Comments
 (0)