Skip to content

Validate inputs to Keras model #106

Open
@stsievert

Description

@stsievert

Currently, the number of outputs of the Keras model is checked:

if self.model_n_outputs_ != len(self.model_.outputs):
raise RuntimeError(

It'd be nice if the number of inputs could be checked too (and their shape/dtype). This should be possible according to the docs, which says a Keras Model has an .inputs attribute: https://keras.io/api/models/model/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions