Comments (7)
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.
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.
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.
from keras.
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.
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.
Closing for now since I can't reproduce the error.
from keras.
Related Issues (20)
- After update, MWE does not produce same/similar output anymore (fit() or predict() problem) HOT 2
- Installation Issue HOT 7
- metric_binary_iou is not available HOT 2
- layer_dense() error : ValueError HOT 2
- Trouble with compiling my keras_model_sequential() HOT 7
- RuntimeError: invalid 'type' (environment) of argument HOT 8
- Conflict Arguments Between R and Python: Error in py_call_impl(callable, call_args$unnamed, call_args$named) HOT 20
- ValueError: Only input tensors may be passed as positional arguments HOT 5
- Release keras3 0.2.0
- Release keras 2.15.0
- Can't load the LSTM model pre-trained in Python to R HOT 1
- Difference between R and Python output HOT 7
- Segmentation models HOT 2
- Lack of methods text_tokenizer(), fit_text_tokenizer() and texts_to_sequences() HOT 5
- compile function does not work HOT 3
- keras layer dense problem HOT 2
- Whe I have tried to fit model I got a problem that I could not understand. Can you look at it?
- Release keras3 0.3.0
- Release keras3 1.0.0
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 keras.