<div dir="ltr">Hello<div>When in using the scoring to be 'f1' then i get an error.</div><div>Here is the code and the error</div><div><br></div><div>X=data<br>y=target_column<br>classifier = LinearSVC()<br>rfecv = RFECV(estimator=classifier, step=0.1, cv=StratifiedKFold(5),scoring='f1')</div><div>rfecv.fit(X, y)</div><div><br></div><div>The error is :</div><div>ValueError: pos_label=1 is not a valid label: array([u'c.pre', u'n.pre'], dtype='<U5')</div><div><br></div><div>Please your help</div><div>(I'm new to using scikit-leanr)<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>---------------------------------------------------------------------------------------</div>
<div><span style="color:rgb(102,102,204)"><b><font face="comic sans ms, sans-serif">Prof. Malik Yousef , Associate Professor                           </font></b></span></div><div><font color="#000099" face="comic sans ms, sans-serif"><b>Zefat Academic College , Department of Information System  </b></font></div><div>Home Page:</div><div><a href="https://malikyousef.com/" target="_blank">https://malikyousef.com/</a><br></div><div><span style="font-size:12.8px">Google Scholar Profile :</span><br></div><div><a href="https://scholar.google.com/citations?user=9UCZ_q4AAAAJ&hl=en&oi=ao" target="_blank">https://scholar.google.com/citations?user=9UCZ_q4AAAAJ&hl=en&oi=ao</a></div><div>----------------------------------------------------------------------------------------------------<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>