Steal-ML icon indicating copy to clipboard operation
Steal-ML copied to clipboard

Expected 2D array, got 1D array instead: lowd_meek.py

Open godspeed5 opened this issue 4 years ago • 0 comments

When I execute lowd_meek.py using the same diabetes dataset specified in the code, the following error appears:

Expected 2D array, got 1D array instead: array=[-0.529412 -0.035533 0.0491803 -1. -1. -0.0461997 -0.926255 -0.583333 ].

The above error comes from label = self.clf1.predict(x) in OnlineBase.py which is used when instantiating the class LordMeek in lowd_meek.py

godspeed5 avatar Nov 22 '20 20:11 godspeed5