-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erreur dans UseMethod("compile") #1436
Comments
Hello, we are only able to provide support in English. Can you please update your post to English? Using something like https://translate.google.com might be helpful. |
hello, I built a model using keras but got a compilation error like this: summary (template)
|
Is this with keras or keras3? Can you please provide a reprex? The error message looks very similar to an issue that occurred if both R packages |
"It's with Keras. Attached you will find the code and the database.
The version of my CRAN is:"
version$version.string
[1] "R version 4.4.0 (2024-04-24 ucrt)"
Ousmane SOW
Élève Analyste Statisticien à l’ENSAE de Dakar
*Tel :* +221 70-571-83-03
<https://www.linkedin.com/in/ousmane-sow-847b56226/>
Le jeu. 25 avr. 2024 à 12:19, Tomasz Kalinowski ***@***.***>
a écrit :
… Is this with keras or keras3?
Can you please provide a reprex <https://reprex.tidyverse.org>?
The error message looks very similar to an issue that occurred if both R
packages {keras} and {keras3} were loaded in the same R session. That
issue is now fixed with the latest CRAN release of both packages. Can you
confirm you're using the latest CRAN release?
—
Reply to this email directly, view it on GitHub
<#1436 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6HCO7IIHKFRVMVYFOHBNX3Y7DYEBAVCNFSM6AAAAABGUXKUUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXGA2DQNBWG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hello, I don't believe github supports email replies with attachments. Can you please paste the output from running |
reprex::reprex() Created on 2024-04-25 with reprex v2.0.2 |
Closing for now since I can't reproduce the error. |
Bonjour, j'ai construit un modèle en utilisant keras mais j'ai eu une erreur de compilation comme celle-ci:
> model <- compile( + model, + optimizer = optimizer_adam(), + loss = "mean_squared_error", + metrics = list("mean_squared_error"), + loss_weights = list(output_revenu = 1, output_data = 1, output_voix = 1) + ) Erreur dans UseMethod("compile") : pas de méthode pour 'compile' applicable pour un objet de classe "c('keras.src.models.functional.Functional', 'keras.models.functional.Functional', 'keras.src.ops.function.Function', 'keras.ops.function.Function', 'keras.src.models.model.Model', 'keras.models.model.Model', 'keras.src.backend.tensorflow.trainer.TensorFlowTrainer', 'keras.backend.tensorflow.trainer.TensorFlowTrainer', 'keras.src.trainers.trainer.Trainer', 'keras.trainers.trainer.Trainer', 'keras.src.layers.layer.Layer', 'keras.layers.layer.Layer', 'keras.src.backend.tensorflow.layer.TFLayer', 'keras.backend.tensorflow.layer.TFLayer', 'keras.src.backend.tensorflow.trackable.KerasAutoTrackable', 'keras.backend.tensorflow.trackable.KerasAutoTrackable', 'tensorflow.python.trackable.autotrackable.AutoTrackable', 'tensorflow.python.trackable.base.Trackable', 'keras.src.ops.operation.Operation', 'keras.ops.operation.Operation', 'python.builtin.object')"model <- keras_model(inputs = input_layer, outputs = list(output_revenu, output_data, output_voix))
The text was updated successfully, but these errors were encountered: