Skip to content

Uninformative error message when featurizer decorator is missing - kernel.py #33

Description

@Emanuel-Pytlik

When the decorator @geostat.featurizer() is missing above the featurization function definition, the featurized inputs that are used by the call method of the kernel (TrendPrior kernel in my case) are malformed (too many dimensions). As a consequence, the einsum in the call method throws an error as dimensions don't match.

I believe there should be an error message added in this case as this mistake could easily be repeated by other users and it's difficult to figure out where the problem lies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions