Просмотр исходного кода

Deploy website

Deploy website version based on 2cc7f54ac034ae320a9af784b8145c50cc68965c
Website Deployment Script 5 лет назад
Родитель
Сommit
82d4bfbdde
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      docs/en/autotune.html

+ 11 - 0
docs/en/autotune.html

@@ -106,4 +106,15 @@ By default, autotune will test the validation file you provide, exactly the same
 <p>This is equivalent to manually optimize the f1-score we get when we test with <code>model.test_label('cooking.valid')['__label__baking']</code>.</p>
 <p>Sometimes, you may be interested in predicting more than one label. For example, if you were optimizing the hyperparameters manually to get the best score to predict two labels, you would test with <code>model.test(&quot;cooking.valid&quot;, k=2)</code>. You can also tell autotune to optimize the parameters by testing two labels with the <code>autotunePredictions</code> argument.</p>
 </span></div></div></div></div>
+<p>You can also force autotune to optimize for the best precision for a given recall, or the best recall for a given precision, for all labels, or for a specific label:</p>
+<p>For example, in order to get the best precision at recall = <code>30%</code>:</p>
+<pre><code class="hljs css language-sh">&gt;&gt; ./fasttext supervised [...] -autotune-metric precisionAtRecall:30
+</code></pre>
+<p>And to get the best precision at recall = <code>30%</code> for the label <code>__label__baking</code>:</p>
+<pre><code class="hljs css language-sh">&gt;&gt; ./fasttext supervised [...] -autotune-metric precisionAtRecall:30:__label__baking
+</code></pre>
+<p>Similarly, you can use <code>recallAtPrecision</code>:</p>
+<pre><code class="hljs css language-sh">&gt;&gt; ./fasttext supervised [...] -autotune-metric recallAtPrecision:30
+&gt;&gt; ./fasttext supervised [...] -autotune-metric recallAtPrecision:30:__label__baking
+</code></pre>
 </span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/en/unsupervised-tutorial.html"><span class="arrow-prev">← </span><span>Word representations</span></a><a class="docs-next button" href="/docs/en/python-module.html"><span>Python module</span><span class="arrow-next"> →</span></a></div></div></div></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/" class="nav-home"><img src="/img/fasttext-icon-white-web.png" alt="fastText"/></a><div><h5>Support</h5><a href="/docs/en/support.html">Getting Started</a><a href="/docs/en/supervised-tutorial.html">Tutorials</a><a href="/docs/en/faqs.html">FAQs</a><a href="/docs/en/api.html">API</a></div><div><h5>Community</h5><a href="https://www.facebook.com/groups/1174547215919768/" target="_blank">Facebook Group</a><a href="http://stackoverflow.com/questions/tagged/fasttext" target="_blank">Stack Overflow</a><a href="https://groups.google.com/forum/#!forum/fasttext-library" target="_blank">Google Group</a></div><div><h5>More</h5><a href="/blog">Blog</a><a href="https://github.com/facebookresearch/fastText" target="_blank">GitHub</a><a class="github-button" href="https://github.com/facebookresearch/fastText/" data-icon="octicon-star" data-count-href="/fastText/stargazers" data-count-api="/repos/fastText#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star this project on GitHub">Star</a></div></section><a href="https://code.facebook.com/projects/" target="_blank" class="fbOpenSource"><img src="/img/oss_logo.png" alt="Facebook Open Source" width="170" height="45"/></a><section class="copyright">Copyright © 2020 Facebook Inc.</section></footer></div></body></html>