Skip to content

Commit

Permalink
build based on 25e48fd
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Oct 21, 2024
1 parent f3e5816 commit fa89233
Show file tree
Hide file tree
Showing 39 changed files with 2,311 additions and 2,309 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-10-21T18:03:08","documenter_version":"1.7.0"}}
{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-10-21T19:03:01","documenter_version":"1.7.0"}}
86 changes: 43 additions & 43 deletions dev/api/index.html

Large diffs are not rendered by default.

Binary file removed dev/generated/ACE-aHfO2/fit-ace-ahfo2/16e5d08b.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dev/generated/ACE-aHfO2/fit-ace-ahfo2/3ac53796.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dev/generated/ACE-aHfO2/fit-ace-ahfo2/8e5e7450.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dev/generated/ACE-aHfO2/fit-ace-ahfo2/ac347d1e.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 25 additions & 25 deletions dev/generated/ACE-aHfO2/fit-ace-ahfo2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
ds_path = "$base_path/examples/data/a-HfO2/a-HfO2-300K-NVT-6000.extxyz"
res_path = &quot;$base_path/examples/ACE-aHfO2/results/&quot;;</code></pre><p>Load utility functions.</p><pre><code class="language-julia hljs">include(&quot;$base_path/examples/utils/utils.jl&quot;)</code></pre><p>Create experiment folder.</p><pre><code class="language-julia hljs">run(`mkdir -p $res_path`);</code></pre><h2 id="Load-datasets"><a class="docs-heading-anchor" href="#Load-datasets">Load datasets</a><a id="Load-datasets-1"></a><a class="docs-heading-anchor-permalink" href="#Load-datasets" title="Permalink"></a></h2><p>Load atomistic dataset: atomistic configurations (atom positions, geometry, etc.) + DFT data (energies, forces, etc.)</p><pre><code class="language-julia hljs">ds = load_data(ds_path, uparse(&quot;eV&quot;), uparse(&quot;Å&quot;))[1:1000]; # Load first 1K samples.</code></pre><p>Split atomistic dataset into training and test.</p><pre><code class="language-julia hljs">n_train, n_test = 50, 50 # Only 50 samples per dataset are used in this example.
conf_train, conf_test = split(ds, n_train, n_test)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">(DataSet{num_configs = 50}
Configuration{S, Energy, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}, Forces}
Configuration{S, Energy, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}, Forces}
Configuration{S, Energy, Forces, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}}
Configuration{S, Energy, Forces, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}}
Configuration{S, Energy, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}, Forces}, DataSet{num_configs = 50}
Configuration{S, Energy, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}, Forces}
Configuration{S, Energy, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}, Forces}
Configuration{S, Energy, Forces, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}}, DataSet{num_configs = 50}
Configuration{S, Energy, Forces, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}}
Configuration{S, Energy, Forces, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}}
Configuration{S, Energy, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}, Forces})</code></pre><h2 id="Compute-descriptors"><a class="docs-heading-anchor" href="#Compute-descriptors">Compute descriptors</a><a id="Compute-descriptors-1"></a><a class="docs-heading-anchor-permalink" href="#Compute-descriptors" title="Permalink"></a></h2><p>Create and save ACE basis.</p><pre><code class="language-julia hljs">basis = ACE(species = [:Hf, :O],
Configuration{S, Energy, Forces, AtomsBase.FlexibleSystem{3, AtomsBase.Atom, Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}}})</code></pre><h2 id="Compute-descriptors"><a class="docs-heading-anchor" href="#Compute-descriptors">Compute descriptors</a><a id="Compute-descriptors-1"></a><a class="docs-heading-anchor-permalink" href="#Compute-descriptors" title="Permalink"></a></h2><p>Create and save ACE basis.</p><pre><code class="language-julia hljs">basis = ACE(species = [:Hf, :O],
body_order = 3,
polynomial_degree = 4,
rcutoff = 5.0,
Expand Down Expand Up @@ -50,7 +50,7 @@
learn!(lb, ds_train, ws, int)
@save_var res_path lb.β
@save_var res_path lb.β0
lb.β, lb.β0</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">([642.4550802428671, 368.7069236801806, 148.12411338442863, 29.46715807296651, -41454.57785113611, -3114.0503543838245, -6.0681579463911905, 2376.770521592213, 13563.071002734267, 7336.793224614452152.63194448756835, 79.67774582943032, -9033.711707721133, -2050.7257179742246, 249.32344861104124, 940980.1483685056, 481729.30426422926, 24906.546619743327, -1069.4237086835667, 21064.20725206331], [0.0])</code></pre><h2 id="Post-process-results"><a class="docs-heading-anchor" href="#Post-process-results">Post-process results</a><a id="Post-process-results-1"></a><a class="docs-heading-anchor-permalink" href="#Post-process-results" title="Permalink"></a></h2><p>Compute ACE descriptors for energy and forces based on the atomistic test configurations.</p><pre><code class="language-julia hljs">println(&quot;Computing energy descriptors of test dataset...&quot;)
lb.β, lb.β0</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">([677.214527817753, 377.87908316261496, 147.88800049297967, 28.851630919045494, 4.769689212278791e7, 1.6393945755770497e7, 365605.8821064851, -4.0969082279860578e6, 13139.362585398385, 7203.213190828747186.75883201285316, 87.57659693954105, -10417.02562076853, -2104.040862562174, 29.15026609102656, 1.1586148920120313e6, 585210.93557569, 35913.32464643193, -1103.4766670838555, 22828.567267388542], [0.0])</code></pre><h2 id="Post-process-results"><a class="docs-heading-anchor" href="#Post-process-results">Post-process results</a><a id="Post-process-results-1"></a><a class="docs-heading-anchor-permalink" href="#Post-process-results" title="Permalink"></a></h2><p>Compute ACE descriptors for energy and forces based on the atomistic test configurations.</p><pre><code class="language-julia hljs">println(&quot;Computing energy descriptors of test dataset...&quot;)
e_descr_test = compute_local_descriptors(conf_test, basis;
pbar = false)
println(&quot;Computing force descriptors of test dataset...&quot;)
Expand Down Expand Up @@ -84,13 +84,13 @@
train_metrics = merge(e_train_metrics, f_train_metrics)
@save_dict res_path train_metrics
train_metrics</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">OrderedCollections.OrderedDict{String, Float64} with 7 entries:
&quot;e_train_mae&quot; =&gt; 0.00174388
&quot;e_train_rmse&quot; =&gt; 0.00212763
&quot;e_train_rsq&quot; =&gt; 0.692379
&quot;f_train_mae&quot; =&gt; 0.172574
&quot;f_train_rmse&quot; =&gt; 0.22012
&quot;f_train_rsq&quot; =&gt; 0.84995
&quot;f_train_mean_cos&quot; =&gt; 0.889795</code></pre><p>Compute and save test metrics.</p><pre><code class="language-julia hljs">e_test_metrics = get_metrics(e_test, e_test_pred,
&quot;e_train_mae&quot; =&gt; 0.00200227
&quot;e_train_rmse&quot; =&gt; 0.00232221
&quot;e_train_rsq&quot; =&gt; 0.554047
&quot;f_train_mae&quot; =&gt; 0.172763
&quot;f_train_rmse&quot; =&gt; 0.220828
&quot;f_train_rsq&quot; =&gt; 0.852008
&quot;f_train_mean_cos&quot; =&gt; 0.888969</code></pre><p>Compute and save test metrics.</p><pre><code class="language-julia hljs">e_test_metrics = get_metrics(e_test, e_test_pred,
metrics = [mae, rmse, rsq],
label = &quot;e_test&quot;)
f_test_metrics = get_metrics(f_test, f_test_pred,
Expand All @@ -99,28 +99,28 @@
test_metrics = merge(e_test_metrics, f_test_metrics)
@save_dict res_path test_metrics
test_metrics</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">OrderedCollections.OrderedDict{String, Float64} with 7 entries:
&quot;e_test_mae&quot; =&gt; 0.000895207
&quot;e_test_rmse&quot; =&gt; 0.00102508
&quot;e_test_rsq&quot; =&gt; 0.892458
&quot;f_test_mae&quot; =&gt; 0.174159
&quot;f_test_rmse&quot; =&gt; 0.21929
&quot;f_test_rsq&quot; =&gt; 0.850361
&quot;f_test_mean_cos&quot; =&gt; 0.890865</code></pre><p>Plot and save energy results.</p><pre><code class="language-julia hljs">e_plot = plot_energy(e_train, e_train_pred,
&quot;e_test_mae&quot; =&gt; 0.000657512
&quot;e_test_rmse&quot; =&gt; 0.000826293
&quot;e_test_rsq&quot; =&gt; 0.932058
&quot;f_test_mae&quot; =&gt; 0.174452
&quot;f_test_rmse&quot; =&gt; 0.219441
&quot;f_test_rsq&quot; =&gt; 0.850739
&quot;f_test_mean_cos&quot; =&gt; 0.891507</code></pre><p>Plot and save energy results.</p><pre><code class="language-julia hljs">e_plot = plot_energy(e_train, e_train_pred,
e_test, e_test_pred)
@save_fig res_path e_plot
DisplayAs.PNG(e_plot)</code></pre><img src="8e5e7450.png" alt="Example block output"/><p>Plot and save force results.</p><pre><code class="language-julia hljs">f_plot = plot_forces(f_train, f_train_pred,
DisplayAs.PNG(e_plot)</code></pre><img src="7492cc7b.png" alt="Example block output"/><p>Plot and save force results.</p><pre><code class="language-julia hljs">f_plot = plot_forces(f_train, f_train_pred,
f_test, f_test_pred)
@save_fig res_path f_plot
DisplayAs.PNG(f_plot)</code></pre><img src="3ac53796.png" alt="Example block output"/><p>Plot and save training force cosine.</p><pre><code class="language-julia hljs">e_train_plot = plot_energy(e_train, e_train_pred)
DisplayAs.PNG(f_plot)</code></pre><img src="9f350e6d.png" alt="Example block output"/><p>Plot and save training force cosine.</p><pre><code class="language-julia hljs">e_train_plot = plot_energy(e_train, e_train_pred)
f_train_plot = plot_forces(f_train, f_train_pred)
f_train_cos = plot_cos(f_train, f_train_pred)
@save_fig res_path e_train_plot
@save_fig res_path f_train_plot
@save_fig res_path f_train_cos
DisplayAs.PNG(f_train_cos)</code></pre><img src="ac347d1e.png" alt="Example block output"/><p>Plot and save test force cosine.</p><pre><code class="language-julia hljs">e_test_plot = plot_energy(e_test, e_test_pred)
DisplayAs.PNG(f_train_cos)</code></pre><img src="2eb5d560.png" alt="Example block output"/><p>Plot and save test force cosine.</p><pre><code class="language-julia hljs">e_test_plot = plot_energy(e_test, e_test_pred)
f_test_plot = plot_forces(f_test, f_test_pred)
f_test_cos = plot_cos(f_test, f_test_pred)
@save_fig res_path e_test_plot
@save_fig res_path f_test_plot
@save_fig res_path f_test_cos
DisplayAs.PNG(f_test_cos)</code></pre><img src="16e5d08b.png" alt="Example block output"/><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../../install-and-run-examples/">« Install and run examples</a><a class="docs-footer-nextpage" href="../../DPP-ACE-aHfO2-1/fit-dpp-ace-ahfo2/">Subsample a-HfO2 dataset with DPP and fit with ACE »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Monday 21 October 2024 18:03">Monday 21 October 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
DisplayAs.PNG(f_test_cos)</code></pre><img src="eadd7e4e.png" alt="Example block output"/><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../../install-and-run-examples/">« Install and run examples</a><a class="docs-footer-nextpage" href="../../DPP-ACE-aHfO2-1/fit-dpp-ace-ahfo2/">Subsample a-HfO2 dataset with DPP and fit with ACE »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Monday 21 October 2024 19:03">Monday 21 October 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fa89233

Please sign in to comment.