change sklearn metrics module python -


after downloading sklearn package i've add purity metric sklearn metric module adding supervised.py , init.py in cluster folder , init.py in metrics folder same other metrics in module. after installing package python recognize other metrics except one.

attributeerror: 'module' object has no attribute 'purity_score

never change code of library use !!

if want add metric, sklearn allows using make_scorer function.

make_scorer makes scorer performance metric or loss function have customized.

then can use scorer perform cross-validation. take @ tutorial here.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -