Sklearn metrics hauv Python yog dab tsi?
Sklearn metrics hauv Python yog dab tsi?

Video: Sklearn metrics hauv Python yog dab tsi?

Video: Sklearn metrics hauv Python yog dab tsi?
Video: Introduction to Machine Learning 2024, Hlis ntuj nqeg
Anonim

Cov sklearn . kev ntsuas module siv ntau qhov poob, qhab nia, thiab kev siv hluav taws xob los ntsuas kev ua haujlwm ntawm kev faib tawm. Ib txhia kev ntsuas Tej zaum yuav xav tau kev kwv yees qhov tshwm sim ntawm cov chav kawm zoo, qhov tseem ceeb ntawm kev ntseeg siab, lossis cov txiaj ntsig kev txiav txim siab binary.

Ua raws li qhov xav tau, Sklearn hauv Python yog dab tsi?

Scikit-kawm yog lub tsev qiv ntawv kawm tshuab pub dawb rau Python . Nws nta ntau yam algorithms xws li kev txhawb nqa vector tshuab, random forests, thiab k-neeg nyob ze, thiab nws kuj txhawb Python Cov tsev qiv ntawv lej thiab kev tshawb fawb xws li NumPy thiab SciPy.

Tom qab ntawd, lo lus nug yog, Neg_mean_squared_error yog dab tsi? Tag nrho cov qhab nia cov khoom ua raws li cov lus pom zoo tias cov nqi rov qab siab dua yog qhov zoo dua qhov qis rov qab. Yog li metrics uas ntsuas qhov kev ncua deb ntawm tus qauv thiab cov ntaub ntawv, zoo li metrics. mean_squared_error, muaj xws li neg_mean_squared_error uas rov qab tus nqi negated ntawm tus metric.

Tsis tas li ntawd, qhov qhab nia raug hauv Sklearn yog dab tsi?

Qhov tseeb kev faib tawm qhab nias . Hauv kev faib tawm ntau lub npe, qhov haujlwm no suav cov subset qhov tseeb : Cov txheej txheem ntawm cov ntawv twv kwv yees rau ib qho qauv yuav tsum ua raws nraim li cov kab ntawv sib txuas hauv y_true. Hauv kev faib binary thiab multiclass, qhov haujlwm no sib npaug rau jaccard_score muaj nuj nqi.

Dab tsi yog f1 qhab nia hauv Python?

xam cov F1 qhab , tseem hu ua balanced F- qhab nias los yog F- ntsuas. Cov F1 qhab tuaj yeem txhais raws li qhov hnyav nruab nrab ntawm qhov tseeb thiab rov qab, qhov twg ib qho F1 qhab mus txog nws tus nqi zoo tshaj ntawm 1 thiab phem tshaj qhab nias ntawm 0. Tus txheeb ze pab ntawm precision thiab rov qab mus rau lub F1 qhab sib npaug.

Pom zoo: