giotto-ai / giotto-tda

A high-performance topological machine learning toolbox in Python
https://giotto-ai.github.io/gtda-docs
Other
858 stars 175 forks source link

[BUG] #682

Closed ScarletVV closed 5 months ago

ScarletVV commented 1 year ago

Describe the bug

TypeError thrown when calling Scaler form gtda.diagrams

To reproduce

When I ran MNIST_ The eighth code block of classificaion.ipynb:

from gtda.diagrams import Scaler scaler = Scaler() im8_scaled = scaler.fit_transform(im8_cubical) scaler.plot(im8_scaled)

Error prompt appeared: TypeError: Parameter function is of type <class 'numpy._ArrayFunctionDispatcher'> while it should be of type (<class 'function'>, <class 'NoneType'>).

Expected behavior

Actual behaviour

Versions

Additional context