find_cars method having issues
Opened this issue · 0 comments
amartya-k commented
In the find_cars() method, "test_prediction = svc.predict(hog_features)" is having an issue while running.
I'm getting an error like this:
Expected 2D array, got 1D array instead:
array=[0.00409338 0.01048723 0.02102638 ... 0.00227126 0.00028018 0.00430584].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.