We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b1859 commit 8e8bdd9Copy full SHA for 8e8bdd9
src/lstnet.py
@@ -79,7 +79,7 @@ def build_iters(data_dir, max_records, q, horizon, splits, batch_size):
79
# Read in data as numpy array
80
df = pd.read_csv(os.path.join(data_dir, "electricity.txt"), sep=",", header=None)
81
feature_df = df.iloc[:, :].astype(float)
82
- x = feature_df.as_matrix()
+ x = feature_df.values
83
x = x[:max_records] if max_records else x
84
85
# Construct training examples based on horizon and window
0 commit comments