<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Ask Ghassem - Recent questions tagged f1score</title>
<link>https://ask.ghassem.com/tag/f1score</link>
<description>Powered by Question2Answer</description>
<item>
<title>how to output f1-score instead of accuracy</title>
<link>https://ask.ghassem.com/1019/how-to-output-f1-score-instead-of-accuracy</link>
<description>&lt;p&gt;I have the code below, outputting the accuracy. How can I output the F1-score instead? Thanks in advance,&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt; clf.fit(data_train,target_train)  
preds = clf.predict(data_test)  
# accuracy for the current fold only     
r2score = clf.score(data_test,target_test)&lt;/code&gt;&lt;/pre&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/1019/how-to-output-f1-score-instead-of-accuracy</guid>
<pubDate>Sat, 02 Apr 2022 13:04:21 +0000</pubDate>
</item>
</channel>
</rss>