Skip to content

Missing feature metadata when loading model #21

@Ethan-Earlie

Description

@Ethan-Earlie

When loading a trained model I ran into an error of trying to concat an empty dataframe when reading the features metadata.

This is because there was features metadata for the first view, but not subsequent views.

To fix this for future users, I recommend changing line 74 in mofax/utils.py from:

if len(list(model.model["features_metadata"][model.views[0]].keys())) > 0:

To:

if np.all([len(model.model["features_metadata"][v].keys())>0 for v in model.views]):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions