Skip to content
loading...

re: Building our First Machine Learning Model (Pt. 4) VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I added the two lines above, but I still get the same error message. "ValueError: could not convert string to float: 'setosa'" I think this may be...

Oh right! Take out the species in the features array. That should fix the "ValueError: could not convert string to float: 'setosa'"

Also, I've added the missing from sklearn.metrics import mean_absolute_error
for the mean_absolute_error function.

Here's a link to a working kaggle notebook: kaggle.com/interestedmike/iris-dat...

code of conduct - report abuse