I'm writing Python code to predict taxi demand for NYC. My data is shown as bellowenter image description here
after I use SVR to predict the taxi demand. I have the following error: Could not convert string to float: '19:40:00'
My code:
x_names = ['pickup_cluster','pickup_datetime','dayofyear','average temperature', 'precipitation','snow fall']
x = taxi_data[x_names]
y= taxi_data['Count']
xtrain, xtest, ytrain, ytest=sklearn.model_selection.train_test_split(x, y, test_size=0.1)
regressor = SVR(kernel='rbf', gamma='auto', C=0.1, epsilon=2)
regressor.fit(xtrain, ytrain)
acc = regressor.score(xtest, ytest)
print("Accuracy for SVR: ", acc)