Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report a bug. #9

Open
driftee opened this issue Apr 1, 2021 · 0 comments
Open

Report a bug. #9

driftee opened this issue Apr 1, 2021 · 0 comments

Comments

@driftee
Copy link

driftee commented Apr 1, 2021

In dataset.py, line 29 and 33, you usepd.read_csv to read from your data that generated from original data. However, you forget to add param header = -1, because the new test.csv and train.csv actully don't have a header. And pandas will use the first line of data as the header, which will cause an index error later.
The follows are what the code should be like.

data = pd.read_csv(os.path.join(root, 'train.txt'), header = -1)
data = pd.read_csv(os.path.join(root, 'test.txt'), header = -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant