You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a GaussianClassifier is created and the classify_image method is called on a TransformedImage object, and AttributeError is raised because the object does not have a reshape method (classify_image is expecting a numpy.ndarray object). The exception can be reproduced as follows:
This will also occur with the MahalanobisDistanceClassifier. The bug can be avoided by using the load method of the TransformedImage object (img_pc in the example above) to load the data into an ndarray (if sufficient memory is available). This bug will be fixed by using the parent class method Classifier.classify_image when the argument is not an ndarray.
The text was updated successfully, but these errors were encountered:
When a
GaussianClassifier
is created and theclassify_image
method is called on aTransformedImage
object, andAttributeError
is raised because the object does not have areshape
method (classify_image
is expecting a numpy.ndarray object). The exception can be reproduced as follows:This will also occur with the
MahalanobisDistanceClassifier
. The bug can be avoided by using theload
method of theTransformedImage
object (img_pc
in the example above) to load the data into an ndarray (if sufficient memory is available). This bug will be fixed by using the parent class methodClassifier.classify_image
when the argument is not an ndarray.The text was updated successfully, but these errors were encountered: