From 2173e8883201fc164101677f9027b81716dd7234 Mon Sep 17 00:00:00 2001 From: Rutkar B Date: Mon, 10 Aug 2026 19:37:35 +0530 Subject: [PATCH] Replace as_matrix() with to_numpy() for compatibility --- 7-TimeSeries/1-Introduction/working/common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/7-TimeSeries/1-Introduction/working/common/utils.py b/7-TimeSeries/1-Introduction/working/common/utils.py index 62684f96a..151f687a9 100644 --- a/7-TimeSeries/1-Introduction/working/common/utils.py +++ b/7-TimeSeries/1-Introduction/working/common/utils.py @@ -120,13 +120,13 @@ class TimeSeriesTensor(UserDict): inputs = {} y = dataframe['target'] - y = y.as_matrix() + y = y.to_numpy() inputs['target'] = y for name, structure in self.tensor_structure.items(): rng = structure[0] cols = structure[1] - tensor = dataframe[name][cols].as_matrix() + tensor = dataframe[name][cols].to_numpy() if rng is None: tensor = tensor.reshape(tensor.shape[0], len(cols)) else: