Skip to content

validator error #7

@ABarcaru

Description

@ABarcaru

Hi, I am trying to use the python application of this script.

nmi = NormalizedMI(normalize_method='joint', k=5 , verbose=False, n_dims = 1)
nmi.fit_transform(X)

and I am hitting the same error:

"BeartypeCallHintReturnViolation: Function normi._estimators.kraskov_estimator() return (np.float64(0.0), np.float64(2.084952429900486), np.float64(1.0187914941452727), np.float64...)) violates type hint tuple[typing.Annotated[typing.Union[float, numpy.floating], Is[lambda arr: bool(np.all(arr > 0))]], typing.Union[float, numpy.floating], typing.Union[float, numpy.floating], typing.Union[float, numpy.floating]], as tuple index 0 item <class "numpy.float64"> np.float64(0.0) violates validator Is[lambda arr: bool(np.all(arr > 0))]:
False == Is[lambda arr: bool(np.all(arr > 0))]."

My X is a numpy array 56x20, dtype float. It works in two other cases of the same size and same instantiation but fails in this one.
What could be the problem ?
test_array.csv

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions