Giter VIP home page Giter VIP logo

Comments (7)

t-kalinowski avatar t-kalinowski commented on August 26, 2024

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.

from keras.

OusmaneS17 avatar OusmaneS17 commented on August 26, 2024

hello,

I built a model using keras but got a compilation error like this:
model <- keras_model(inputs = input_layer, outputs = list(output_revenue, output_data, output_voice))

summary (template)

model <- compile( + model, + optimizer = optimizer_adam(), + loss = "mean_squared_error", + metrics = list("mean_squared_error"), + loss_weights = list(output_revenue = 1, output_data = 1, output_voice = 1) + ) Error in UseMethod("compile"): no method for 'compile' applicable for an object of class "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')"

from keras.

t-kalinowski avatar t-kalinowski commented on August 26, 2024

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 {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?

from keras.

OusmaneS17 avatar OusmaneS17 commented on August 26, 2024

from keras.

t-kalinowski avatar t-kalinowski commented on August 26, 2024

Hello, I don't believe github supports email replies with attachments. Can you please paste the output from running reprex::reprex() into the issue thread using the github UI: #1436

from keras.

OusmaneS17 avatar OusmaneS17 commented on August 26, 2024

reprex::reprex()
#> ℹ Non-interactive session, setting html_preview = FALSE.
#> CLIPR_ALLOW has not been set, so clipr will not run interactively
#> Error in switch(where, expr = stringify_expression(x_expr), clipboard = ingest_clipboard(), : EXPR doit être un vecteur de longueur 1

Created on 2024-04-25 with reprex v2.0.2

from keras.

t-kalinowski avatar t-kalinowski commented on August 26, 2024

Closing for now since I can't reproduce the error.

from keras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.