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

Is the dataset shuffling enough? #15

Open
YoungYeeee opened this issue Dec 21, 2023 · 0 comments
Open

Is the dataset shuffling enough? #15

YoungYeeee opened this issue Dec 21, 2023 · 0 comments

Comments

@YoungYeeee
Copy link

YoungYeeee commented Dec 21, 2023

When i get all the data together, and reshuffle the dataset. I get the better accuracy in LSTM.
this is the code:

from sklearn.model_selection import train_test_split
X = torch.concatenate((train_X,test_X,dev_X),axis=0)
y = torch.concatenate((train_Y,test_Y,dev_Y),axis=0)
train_X, test_X, train_Y, test_Y = train_test_split(X, y, test_size=0.2, random_state=42)
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