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

KMNIST kNN #10

Closed
dzisandy opened this issue Mar 25, 2019 · 4 comments
Closed

KMNIST kNN #10

dzisandy opened this issue Mar 25, 2019 · 4 comments
Assignees

Comments

@dzisandy
Copy link

dzisandy commented Mar 25, 2019

Adding PCA dimension reduction produces better Test Accuracy
x_train = x_train.reshape(-1, 784)
x_test = x_test.reshape(-1, 784)
After this code rows:
pca = PCA(n_components= 60, random_state= 0 )
x_train = pca.fit_transform(x_train)
x_test = pca.transform(x_test)
The resulting is Test accuracy: 0.9398

@hardmaru
Copy link
Collaborator

hardmaru commented Mar 26, 2019 via email

@dzisandy dzisandy reopened this Mar 26, 2019
mxbi added a commit that referenced this issue Dec 24, 2019
@mxbi
Copy link
Member

mxbi commented Dec 24, 2019

Added, it would be good to also have data points for MNIST and K-49

@dzisandy
Copy link
Author

@mxbi Thanks for credit!

@mxbi mxbi self-assigned this Dec 24, 2019
@mxbi mxbi closed this as completed Dec 24, 2019
@dzisandy dzisandy mentioned this issue Jan 12, 2020
mxbi added a commit that referenced this issue Jan 13, 2020
@mxbi
Copy link
Member

mxbi commented Jan 13, 2020

See also #13 for K-49 and MNIST code/details

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

3 participants