Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xeon27 committed Mar 22, 2024
1 parent 16bb1d4 commit 0d49d68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/uci/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import List, Tuple

import numpy as np
import pandas as pd
import torch
from sklearn.preprocessing import StandardScaler
from torch import nn
Expand Down Expand Up @@ -43,7 +44,8 @@ def get_regression_dataset(
assert split in ["train", "eval_train", "valid"]

# Load the dataset from the `.data` file.
data = np.loadtxt(os.path.join(dataset_dir, data_name + ".data"), delimiter=None)
# data = np.loadtxt(os.path.join(dataset_dir, data_name + ".data"), delimiter=None)
data = pd.read_excel(os.path.join(dataset_dir, data_name + ".xls")).to_numpy()
data = data.astype(np.float32)

# Shuffle the dataset.
Expand Down

0 comments on commit 0d49d68

Please sign in to comment.