Skip to content

[FeatureRequest] Option to reset already fitted model to its initial state #271

Closed
@rychuelektryk

Description

@rychuelektryk

Hi,

I would like to have some kind of a clear method on a already learned model to restore it to the unlearned state. I guess it boils down to resetting model weights. Think you could add such an option in future?

My case:
In each iteration of my kfold procedure I would like to start fitting model from the beginning. I could copy the model in each iteration without copying weights but that leads to loosing already set callback and I would be forced to recompile the model for which I would need information about optimizer, metrics and loss which are not accessible from original model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions