Comments (4)
I noticed on the example code on keras.posit.com uses the |>
pipe operator. I'm not sure if this is helpful, but when I switched to |>
I get the following regex output:
data_augmentation <- keras_model_sequential() |>
layer_random_flip("horizontal") |>
layer_random_rotation(0.1) |>
layer_random_zoom(0.2)
#> Error in layer_random_zoom(layer_random_rotation(layer_random_flip(keras_model_sequential(), : could not find function "layer_random_zoom"
Created on 2024-04-04 with reprex v2.1.0
The ValueError in console is the same.
As a side question: Is this the best repository to post these questions? I'm never sure where exactly to post issues that come up when working through the book. Should I be posting this in the keras repository?
from deep-learning-with-r-2nd-edition-code.
I think this is another manifestation of #10.
The example code works without issue if only keras3
is loaded, but breaks if both keras
and keras3
are loaded. I'll aim to get a CRAN release of keras
and keras3
out next week to fix this.
For now, I would recommend uninstalling 'keras'
remove.packages("keras")
and restarting the R session. If keras
does end up accidentally loaded and you don't want to restart the session, you can temporarily "fix" the issue with this snippet:
assign(
"class_filters",
reticulate:::.globals$class_filters[-length(reticulate:::.globals$class_filters)],
envir = reticulate:::.globals
)
from deep-learning-with-r-2nd-edition-code.
As a side question: Is this the best repository to post these questions?
Here or rstudio/keras
are both fine! Thanks for reporting issues!
from deep-learning-with-r-2nd-edition-code.
For now, I would recommend uninstalling 'keras'
remove.packages("keras")
Thank you so much for getting back to me so quickly! This solved the issue. I didn't realize keras
could cause issues without me loading it directly.
from deep-learning-with-r-2nd-edition-code.
Related Issues (16)
- package installing error! HOT 5
- Tensor Type error with keras3 package but not keras HOT 10
- Issue downloading Kaggle dogs-vs-cats file HOT 4
- image_dataset_from_directory() error: 'size' must be a 1-D int32 Tensor HOT 2
- imagenet_preprocess_input() missing in keras3? HOT 7
- Using layer_lambda() with application_preprocess_inputs() HOT 4
- Mini Xception model differences when keras and keras3 packages are installed HOT 20
- Chapter 2.5.1 HOT 1
- installation problem HOT 13
- Plot(model) does not see graphviz in R on Windows HOT 1
- Installation problems
- "object 'optimizer' not found" error when fit() custom model HOT 4
- The data preparation question
- Error in DeepDream code from Chapter 12 (Listing 12.15) HOT 6
- Chapter 3 Boston Housing Prices HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deep-learning-with-r-2nd-edition-code.