model.predict([4.2, 3, 0.9, 2.1]) this line given an error as given below:
ValueError: Expected 2D array, got 1D array instead: array=[4.2 3. 0.9 2.1]. 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.
pls suggest
Read more… (49 words)