Error in Python script “Expected 2D array, got 1D array instead:”?
You are just supposed to provide the predict method with the same 2D array, but with one value that you want to process (or more). In short, you can just replace With And it should work. EDIT: This answer became popular so I thought I’d add a little more explanation about ML. The short version: we can …