Skip to content

Commit

Permalink
🔧 Fix index error (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
TakuyaShintate authored Apr 20, 2022
1 parent 9efddd2 commit 65b3c01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tsts/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ def load_sample(
df = df.fillna(0.0)
# Take only the values of input & output variables
if len(in_feats) > 0:
df = df[in_feats]
df_in = df[in_feats]
if len(out_feats) > 0:
df = df[out_feats]
X = torch.tensor(df.values, dtype=torch.float32)
y = torch.tensor(df.values, dtype=torch.float32)
df_out = df[out_feats]
X = torch.tensor(df_in.values, dtype=torch.float32)
y = torch.tensor(df_out.values, dtype=torch.float32)
return (X, y)


Expand Down

0 comments on commit 65b3c01

Please sign in to comment.