You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
do you need a single loss function to handle all outputs, or do you have a separate loss function for each output?Aemyl– Aemyl2026-02-04 07:18:58 +00:00Commented Feb 4 at 7:18
-
I need a loss function to handle multiple (two of three outputs).Siemen Aulich– Siemen Aulich2026-02-04 12:27:16 +00:00Commented Feb 4 at 12:27
-
This question is similar to: Multi-input Multi-output Model with Keras Functional API. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem.Innat– Innat2026-02-07 11:57:50 +00:00Commented Feb 7 at 11:57
-
@Innat while the linked question is also about a non-sequential model with multiple output layers, its answer doesn't explain how to define a single loss function for multiple output layers. Therefore, I think that this question is distinct enough to leave it open.Aemyl– Aemyl2026-02-08 15:52:04 +00:00Commented Feb 8 at 15:52
-
@Aemyl Not really. The linked answer explains well how multi-output should work in keras training. While your answer is solely based on assumption. The OP didn't add minimum code to make his point. Please avoid that type of answer which is simply a comment, I mean, you can just simply comment this keras.io/guides/functional_api/…Innat– Innat2026-02-09 16:17:31 +00:00Commented Feb 9 at 16:17
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-py