import{_ as t,c as e,o as s,ag as i}from"./chunks/framework.B90TcSfW.js";const k=JSON.parse('{"title":"Benchmark","description":"","frontmatter":{},"headers":[],"relativePath":"en/benchmark.md","filePath":"en/benchmark.md","lastUpdated":null}'),n={name:"en/benchmark.md"};function r(l,a,h,d,c,o){return s(),e("div",null,a[0]||(a[0]=[i(`<h1 id="benchmark" tabindex="-1">Benchmark <a class="header-anchor" href="#benchmark" aria-label="Permalink to &quot;Benchmark&quot;">​</a></h1><p>Benchmark tests and evaluation metrics for Spectral-Hub.</p><h2 id="supported-datasets" tabindex="-1">Supported Datasets <a class="header-anchor" href="#supported-datasets" aria-label="Permalink to &quot;Supported Datasets&quot;">​</a></h2><ul><li><strong>IR Spectra</strong>: Infrared spectroscopy data</li><li><strong>Raman Spectra</strong>: Raman spectroscopy data</li><li><strong>NMR Spectra</strong>: Nuclear magnetic resonance data</li></ul><h2 id="evaluation-metrics" tabindex="-1">Evaluation Metrics <a class="header-anchor" href="#evaluation-metrics" aria-label="Permalink to &quot;Evaluation Metrics&quot;">​</a></h2><ul><li>Accuracy</li><li>Precision</li><li>Recall</li><li>F1 Score</li></ul><h2 id="benchmark-results" tabindex="-1">Benchmark Results <a class="header-anchor" href="#benchmark-results" aria-label="Permalink to &quot;Benchmark Results&quot;">​</a></h2><table tabindex="0"><thead><tr><th>Model</th><th>Dataset</th><th>Accuracy</th></tr></thead><tbody><tr><td>Transformer</td><td>IR Spectra</td><td>95.2%</td></tr><tr><td>CNN</td><td>Raman</td><td>92.8%</td></tr><tr><td>LSTM</td><td>NMR</td><td>89.5%</td></tr></tbody></table><h2 id="running-benchmarks" tabindex="-1">Running Benchmarks <a class="header-anchor" href="#running-benchmarks" aria-label="Permalink to &quot;Running Benchmarks&quot;">​</a></h2><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> spectral_hub </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">as</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> sh</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Run benchmark</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">results </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> sh.run_benchmark(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;all&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">print</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(results)</span></span></code></pre></div><h2 id="related-links" tabindex="-1">Related Links <a class="header-anchor" href="#related-links" aria-label="Permalink to &quot;Related Links&quot;">​</a></h2><ul><li><a href="/spectral-hub/en/tutorial">Tutorial</a></li><li><a href="/spectral-hub/en/api">API Reference</a></li></ul>`,12)]))}const u=t(n,[["render",r]]);export{k as __pageData,u as default};
