[scikit-learn] help

2018-06-14 Thread Alexandra Metallinou Log
Dear Sir/Madam,


I have stumbled upon a problem while trying to run some old code using 
skcikit-learn:


scores = cross_validation.cross_val_score(model, X, Y, cv = 10, score_func = 
metrics.mean_squared_error)


This line will not run in a program I downloaded, and as I am not yet very 
familliar with scikit-learn I do not know how I should replace "score_func = 
metrics.mean_squared_error" to produce the same result as intended by the ones 
who made the program. Any help is greatly appreciated.


Best regards,


Alexandra Log

___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn


Re: [scikit-learn] help

2018-06-14 Thread Prokopis Gryllos
Hey Alexandra,

Can you maybe share the error output?

gr,
Prokopis

On Thu, Jun 14, 2018 at 5:20 PM Alexandra Metallinou Log <
alexandra@sintef.no> wrote:

> Dear Sir/Madam,
>
>
> I have stumbled upon a problem while trying to run some old code using
> skcikit-learn:
>
>
> scores = cross_validation.cross_val_score(model, X, Y, cv = 10, score_func
> = metrics.mean_squared_error)
>
>
> This line will not run in a program I downloaded, and as I am not yet very
> familliar with scikit-learn I do not know how I should replace "score_func
> = metrics.mean_squared_error" to produce the same result as intended by the
> ones who made the program. Any help is greatly appreciated.
>
>
> Best regards,
>
>
> Alexandra Log
>
> ___
> scikit-learn mailing list
> scikit-learn@python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn


Re: [scikit-learn] help

2018-06-14 Thread Christos Aridas
 Hey Alexandra . Could you please post a minimal, complete, and verifiable
example? Apart from this could you post the exact error message?

Best,
Chris

On Thu, Jun 14, 2018 at 1:44 PM, Alexandra Metallinou Log <
alexandra@sintef.no> wrote:

> Dear Sir/Madam,
>
>
> I have stumbled upon a problem while trying to run some old code using
> skcikit-learn:
>
>
> scores = cross_validation.cross_val_score(model, X, Y, cv = 10,
> score_func = metrics.mean_squared_error)
>
>
> This line will not run in a program I downloaded, and as I am not yet very
> familliar with scikit-learn I do not know how I should replace "score_func
> = metrics.mean_squared_error" to produce the same result as intended by the
> ones who made the program. Any help is greatly appreciated.
>
>
> Best regards,
>
>
> Alexandra Log
>
>
> ___
> scikit-learn mailing list
> scikit-learn@python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
>
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn


Re: [scikit-learn] help

2018-06-14 Thread Joel Nothman
model_evaluation.cross_val_score(model, X, y, scoring='neg_mse') will
produce the same, but negated so that greater is better.
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn