I\'m following this tutorial to make this ML prediction:
import numpy as np import matplotlib.pyplot as plt from matplotlib import style style.use(\"ggplot\
I was facing the same issue earlier but I have somehow found the solution, You can try reg.predict([[3300]]).
reg.predict([[3300]])
The API used to allow scalar value but now you need to give a 2D array.