Save trained model predictions on colored images as csv
Raphintosh opened this issue · 2 comments
Raphintosh commented
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 commented
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 commented
This issue has been automatically closed because it has not had recent activity.