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

Save trained model predictions on colored images as csv #75

Closed
Raphintosh opened this issue Jan 24, 2021 · 2 comments
Closed

Save trained model predictions on colored images as csv #75

Raphintosh opened this issue Jan 24, 2021 · 2 comments
Labels
stale Issue has been inactive for 7 days

Comments

@Raphintosh
Copy link

I trained a StackedDenseNet model with colored images of mouse but i am unable to save model predictions to csv.

I used the below codes whiles following step4_b but i get the error "ValueError: Expected 1D or 2D array, got 3D array instead:

np.savetxt("D:\\mousedata\\predictions_np.csv", predictions, delimiter=",")

import pandas as pd 
pd.DataFrame(predictions).to_csv("D:\\mousedata\\predictions_pd.csv")
@stale
Copy link

stale bot commented Feb 2, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Issue has been inactive for 7 days label Feb 2, 2021
@stale
Copy link

stale bot commented Feb 13, 2021

This issue has been automatically closed because it has not had recent activity.

@stale stale bot closed this as completed Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue has been inactive for 7 days
Projects
None yet
Development

No branches or pull requests

1 participant