deep-learning-with-R-2nd-edition-code icon indicating copy to clipboard operation
deep-learning-with-R-2nd-edition-code copied to clipboard

Code from the book "Deep Learning with R, 2nd Edition"

Results 8 deep-learning-with-R-2nd-edition-code issues
Sort by recently updated
recently updated
newest added

As stated in the book's Chapter 10 _"...The exact formulation of the problem will be as follows: given data covering the previous five days and sampled once per hour, can...

Hi! It looks like `compile()` ignores an _optimizer_ argument when compiling/training a custom model. When i try this code: `model %>% compile(optimizer = optimizer_rmsprop())` (766th row in the book`s code)...

I've been trying to install Keras and Tensorflow from R following the instructions in the book, but I'm encountering an issue that I can't solve even following the[ discussion here](https://github.com/t-kalinowski/deep-learning-with-R-2nd-edition-code/issues/3)....

https://github.com/t-kalinowski/deep-learning-with-R-2nd-edition-code/blob/5d666f93d52446511a8a8e4eb739eba1c0ffd199/ch03.R#L266C1-L270C5 Can it be that the order of arguments in the function is wrong? ```r loss

https://github.com/t-kalinowski/deep-learning-with-R-2nd-edition-code/blob/5d666f93d52446511a8a8e4eb739eba1c0ffd199/ch03.R#L314 Error message: > Error in py_call_impl(callable, call_args$unnamed, call_args$named) : ValueError: For a `build()` method with more than one argument, all arguments should have a `_shape` suffix and match an...

https://github.com/t-kalinowski/deep-learning-with-R-2nd-edition-code/blame/5d666f93d52446511a8a8e4eb739eba1c0ffd199/ch07.R#L188 Running this with the current version of the code hitting the error with `plot(model)` as plot requires two dependencies: 1) pydot: pydot comes as an extra package with [keras3](https://keras3.posit.co/reference/install_keras.html)...

https://github.com/t-kalinowski/deep-learning-with-R-2nd-edition-code/blob/5d666f93d52446511a8a8e4eb739eba1c0ffd199/ch07.R#L146C1-L150C2 Executed code: `install.packages("remotes") remotes::install_github("rstudio/tensorflow") reticulate::install_python() install.packages("keras3") keras3::install_keras(envname = "r-reticulate") library(keras3) model % layer_dense(units = 64, activation = "relu") %>% layer_dense(units = 10, activation = "softmax") # Not build yet,...

Fitting the model: https://github.com/t-kalinowski/deep-learning-with-R-2nd-edition-code/blob/5d666f93d52446511a8a8e4eb739eba1c0ffd199/ch08.R#L295C1-L296C17 `history % fit( train_dataset, epochs = 100, validation_data = validation_dataset, callbacks = callbacks )` generates this exception: `Error in py_call_impl(callable, call_args$unnamed, call_args$named) : KeyError: 'Exception encountered...