Thank you, this worked. The error message was: undefined keyword: 'score-func'
I also changed the line of code from
scores = cross_validation.cross_val_score(model, X, Y, cv = 10, score_func = metrics.mean_squared_error)
to
scores = cross_validation.cross_val_score(model,
X, Y, cv = 10, scores = 'mean_squared_error')
the code runs with this (I recieve negative outputs though, so I took the abolute value of these afterwards). However the following deprecation warning is displayed:
When I changed the code to:
model_evaluation.cross_val_score(model, X, y, scoring='neg_mean_squared_error'),
the code runs fine ('neg_mse' was not an acceptable keyword). I still get the same deprecation warning, though I don't understand why as I am using model_evaluation now. Regardless, I think the problem is fixed.
Once again, thank you for your help!
Kind regards,
Alexandra