Closed ScarletVV closed 5 months 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'>).
function
Expected behavior
Actual behaviour
Versions
Additional context
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