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

CH 5 code #1

Open
calmeidavieira opened this issue Sep 29, 2022 · 0 comments
Open

CH 5 code #1

calmeidavieira opened this issue Sep 29, 2022 · 0 comments

Comments

@calmeidavieira
Copy link

Hello,

I am running tensorflow 2.9 on R 4.2.1 and I got the following error when running this CH5 code

pred <- model %>% predict_classes(train_images) table(Predicted=pred, Actual=test_labels) prob <- model %>% predict_proba(train_images) prob <- round(prob, 3) cbind(prob, Predicted_class = pred, Actual = test_labels)[1:5,]

Error in py_get_attr_impl(x, name, silent) :
AttributeError: 'Sequential' object has no attribute 'predict_proba'

Are you able to reproduce it? Or do you know what might be my issue?

Regards. Cicero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant