This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at jekyllrb.com

You can find the source code for Minima at GitHub: jekyll / minima

You can find the source code for Jekyll at GitHub: jekyll / jekyll

   from sklearn import metrics
   def get_scores(y_preds,y):
       return {
            "Accuracy":metrics.accuracy_score(y_preds,y),
            'Precision':metrics.precision_score(y_preds,y),
            'Recall':metrics.recall_score(y_preds,y),
            'F1':metrics.f1_score(y_preds,y),
            'ROC_AUC':metrics.roc_auc_score(y_preds,y)
        }

try inline number codes

1
2
3
4
5
6
7
8
9
from sklearn import metrics
   def get_scores(y_preds,y):
       return {
            "Accuracy":metrics.accuracy_score(y_preds,y),
            'Precision':metrics.precision_score(y_preds,y),
            'Recall':metrics.recall_score(y_preds,y),
            'F1':metrics.f1_score(y_preds,y),
            'ROC_AUC':metrics.roc_auc_score(y_preds,y)
        }

the original above test is that :






<figure class="highlight"><code class="language-python" data-lang="python"><table class="rouge-table"><tbody><tr><td class="gutter gl"><pre class="lineno">1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre><span class="kn">from</span> <span class="nn">sklearn</span> <span class="kn">import</span> <span class="n">metrics</span>
   <span class="k">def</span> <span class="nf">get_scores</span><span class="p">(</span><span class="n">y_preds</span><span class="p">,</span><span class="n">y</span><span class="p">):</span>
       <span class="k">return</span> <span class="p">{</span>
            <span class="s">"Accuracy"</span><span class="p">:</span><span class="n">metrics</span><span class="p">.</span><span class="n">accuracy_score</span><span class="p">(</span><span class="n">y_preds</span><span class="p">,</span><span class="n">y</span><span class="p">),</span>
            <span class="s">'Precision'</span><span class="p">:</span><span class="n">metrics</span><span class="p">.</span><span class="n">precision_score</span><span class="p">(</span><span class="n">y_preds</span><span class="p">,</span><span class="n">y</span><span class="p">),</span>
            <span class="s">'Recall'</span><span class="p">:</span><span class="n">metrics</span><span class="p">.</span><span class="n">recall_score</span><span class="p">(</span><span class="n">y_preds</span><span class="p">,</span><span class="n">y</span><span class="p">),</span>
            <span class="s">'F1'</span><span class="p">:</span><span class="n">metrics</span><span class="p">.</span><span class="n">f1_score</span><span class="p">(</span><span class="n">y_preds</span><span class="p">,</span><span class="n">y</span><span class="p">),</span>
            <span class="s">'ROC_AUC'</span><span class="p">:</span><span class="n">metrics</span><span class="p">.</span><span class="n">roc_auc_score</span><span class="p">(</span><span class="n">y_preds</span><span class="p">,</span><span class="n">y</span><span class="p">)</span>
        <span class="p">}</span>
</pre></td></tr></tbody></table></code></figure>