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
Post a Comment