koalaverse / homlr

Supplementary material for Hands-On Machine Learning with R, an applied book covering the fundamentals of machine learning with R.
https://koalaverse.github.io/homlr
Creative Commons Attribution Share Alike 4.0 International
229 stars 88 forks source link

Question RE: Chapter 13.4.2.2 Implementation #30

Open mccurcio opened 4 years ago

mccurcio commented 4 years ago

Running:

IN Chapter 13.4.2.2 Implementation

  1. After loading the libraries in section 13.1 Prerequisites and
  2. Importing MNIST training data
  3. Ran 13.4.1.3 Implementation: ...keras_model_sequential() %>% {128, 64, 10}...
  4. After running code block in 13.4.2.2 Implementation
model <- keras_model_sequential() %>%
layer_dense(units = 128, activation = "relu", input_shape = p) %>%
layer_dense(units = 64, activation = "relu") %>%
layer_dense(units = 10, activation = "softmax")

I get the error:

Error in py_call_impl(callable, dots$args, dots$keywords) : ValueError: Error converting shape to a TensorShape: invalid literal for int() with base 10: 'tfestimators'.

I'm currently seeking info on keras and tensorflow github sites...

Is this a new issue?