ftramer / Steal-ML

Model extraction attacks on Machine-Learning-as-a-Service platforms.
342 stars 96 forks source link

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

Open godspeed5 opened 3 years ago

godspeed5 commented 3 years ago

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