-
Notifications
You must be signed in to change notification settings - Fork 334
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
How to match real label with predicted y after using model.predict() with disjointloader? #440
Comments
Hey, |
Actually i have no idea about this fault, it seems that model.predict() just can't work efficiently. I use the test_data to carry out model.evaluate() and also model.predict(), which give consistent results that meet expectations. But when using independent data which is preprocessed in the same way as training data, the result seems to be random. I get different and lower result every time run prediction. Like code below, predicted 'y' is different every time run y_pred = model.predict(loader_pr.load(), steps=loader_pr.steps_per_epoch). If you have relevant solutions or can provide some sample code, I would be very grateful. My dataset is defined: loader_pr = DisjointLoader(data, batch_size=BATCH_SIZE, shuffle=False) ; save weights: model.save_weights('./weights/') and loaded: model.load_weights('./weights/') |
When using disjointloader, there is a default shuffle=true. I want to use model.predict() to get ACC and other evaluate matrics, but the shuffle makes it hard to match predicted_y and true_label. Could you please help me resolve this issue? Thanks very much.
The text was updated successfully, but these errors were encountered: