Deprecated use of keras causes error in example code.

Open
#486 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
keras, r, tensorflow

Research direction

Start at the R-keras guide at https://tensorflow.rstudio.com/guide/keras/ and locate the example using predict_classes. Update that example according to the working predict(x_test) %>% k_argmax() sequence described in the issue, then verify the guide's example no longer uses the deprecated command.

Written by the indexing model from the issue text.

Description

docs

I went to here to work through the R-keras example:
https://tensorflow.rstudio.com/guide/keras/

There is a command 'predict_classes' that is now deprecated in keras.

--> if I knew how to insert images, I would put the screenshot of the error here <--

You should keep your help documentation reasonably current.

The way to get it to work is:
model %>% predict(x_test) %>% k_argmax()

Dominant language
R
Stars
1.3k
Forks
316
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rstudio/tensorflow

All issues in rstudio/tensorflow

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.