Skip to content

How should I save the loss value during training? model.fit has no return value #927

Closed

Description

@Z-shuaishuai

How should I save the loss value during training?
model.fit has no return value

Activity

  1. Darlanio commented on Dec 31, 2022

    @Darlanio

    I think you need to use Tensorflow.Keras.Engine.Sequential instead of model,
    and then use predict, calculate loss from the result of predict,
    calculate new gradients with Tensorflow.Gradients.GradientTape,
    and finally use your keras.optamizers.[chosen optimizer].apply_gradients().

    However, I am less than sure about this. I hope Haiping can answer this - possibly correcting my answer.

  2. self-assigned this
    on Jan 31, 2023
  3. added
    enhancement
    on Jan 31, 2023
  4. Oceania2018 commented on Jan 31, 2023

    @Oceania2018
    Member

    model.fit returns History for next release v0.100.2.
    image

    image

  5. ammar-albush commented on Jan 31, 2023

    @ammar-albush

    When will the new version(v0.100.2) be available on Nuget ? @Oceania2018

  6. Darlanio commented on Jan 31, 2023

    @Darlanio

    My guess, it will take at least a few days, probably a few weeks:
    There are many small bugs to fix at present (927, 928... 973...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions