-
Notifications
You must be signed in to change notification settings - Fork 282
Description
This is my first time putting up an issue in GitHub, so I apologize in advance in case I may be doing something improperly in this submission.
I've been reading the 2nd edition of Chollet's book for a while now and REALLY hope to start using keras + tensorflow.
I have done following the installation instructions in Chap 3 for my PC:
- First installed Python, Git, and Rtools.
- Then I ran the following codes provided kindly to me by one of the book's authors (Tomasz K)
install.packages("keras3")
reticulate::install_python("3.11")
keras3::install_keras()
When I paste (in order) all of the RCode snippets from Chap 2 to build the first network, all seems to work fine till I run the snippet:
model <- keras_model_sequential(list(
layer_dense(units = 512, activation = "relu"),
layer_dense(units = 10, activation = "softmax")
))
I get this error message:
'''Error in keras_model_sequential(list(layer_dense(units = 512, activation = "relu"), :
layers must be passed in as a named argument.'''
I'd very much appreciate anyone's help or advice on this.
My background: I am a professor in math and statistics and have been teaching machine learning every year for 8 years and have been using R for 13 years. I've never used Python nor needed to install it till I installed keras3. I am planning a new course in deep learning, but I need to work out such bugs and issues so as to avoid my students running into them. I need a powerful software but also a stable working environment.
My email address is [email protected] in case you need or would prefer to contact me directly on this issue.