Skip to content

Commit

Permalink
build based on d4ef274
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Nov 7, 2024
1 parent a795195 commit 379b68a
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 36 deletions.
18 changes: 9 additions & 9 deletions dev/api/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dev/customization/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dev/examples/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Short Examples · SymbolicRegression.jl</title><script data-outdated-warner src="../assets/warner.js"></script><link rel="canonical" href="https://astroautomata.com/SymbolicRegression.jl/stable/examples/"/><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.045/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL=".."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../assets/documenter.js"></script><script src="../siteinfo.js"></script><script src="../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><a class="docs-logo" href="../index_base/"><img src="../assets/logo.svg" alt="SymbolicRegression.jl logo"/></a><div class="docs-package-name"><span class="docs-autofit"><a href="../index_base/">SymbolicRegression.jl</a></span></div><form class="docs-search" action="../search/"><input class="docs-search-query" id="documenter-search-query" name="q" type="text" placeholder="Search docs"/></form><ul class="docs-menu"><li><a class="tocitem" href="../index_base/">Contents</a></li><li><a class="tocitem" href="../">Home</a></li><li><span class="tocitem">Examples</span><ul><li class="is-active"><a class="tocitem" href>Short Examples</a><ul class="internal"><li><a class="tocitem" href="#.-Simple-search"><span>1. Simple search</span></a></li><li><a class="tocitem" href="#.-Custom-operator"><span>2. Custom operator</span></a></li><li><a class="tocitem" href="#.-Multiple-outputs"><span>3. Multiple outputs</span></a></li><li><a class="tocitem" href="#.-Plotting-an-expression"><span>4. Plotting an expression</span></a></li><li><a class="tocitem" href="#.-Other-types"><span>5. Other types</span></a></li><li><a class="tocitem" href="#.-Dimensional-constraints"><span>6. Dimensional constraints</span></a></li><li><a class="tocitem" href="#.-Working-with-Expressions"><span>7. Working with Expressions</span></a></li><li><a class="tocitem" href="#.-Parametric-Expressions"><span>8. Parametric Expressions</span></a></li><li><a class="tocitem" href="#.-Additional-features"><span>9. Additional features</span></a></li><li><a class="tocitem" href="#.-Template-Expressions"><span>10. Template Expressions</span></a></li></ul></li><li><a class="tocitem" href="template_expression/">Template Expressions</a></li><li><a class="tocitem" href="parameterized_function/">Parameterized Expressions</a></li></ul></li><li><a class="tocitem" href="../api/">API</a></li><li><a class="tocitem" href="../losses/">Losses</a></li><li><a class="tocitem" href="../types/">Types</a></li><li><a class="tocitem" href="../customization/">Customization</a></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><nav class="breadcrumb"><ul class="is-hidden-mobile"><li><a class="is-disabled">Examples</a></li><li class="is-active"><a href>Short Examples</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Short Examples</a></li></ul></nav><div class="docs-right"><a class="docs-edit-link" href="https://github.com/MilesCranmer/SymbolicRegression.jl/blob/master/docs/src/examples.md" title="Edit on GitHub"><span class="docs-icon fab"></span><span class="docs-label is-hidden-touch">Edit on GitHub</span></a><a class="docs-settings-button fas fa-cog" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-sidebar-button fa fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a></div></header><article class="content" id="documenter-page"><h1 id="Toy-Examples-with-Code"><a class="docs-heading-anchor" href="#Toy-Examples-with-Code">Toy Examples with Code</a><a id="Toy-Examples-with-Code-1"></a><a class="docs-heading-anchor-permalink" href="#Toy-Examples-with-Code" title="Permalink"></a></h1><pre><code class="language-julia hljs">using SymbolicRegression
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Short Examples · SymbolicRegression.jl</title><script data-outdated-warner src="../assets/warner.js"></script><link rel="canonical" href="https://ai.damtp.cam.ac.uk/symbolicregression/stable/examples/"/><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.045/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL=".."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../assets/documenter.js"></script><script src="../siteinfo.js"></script><script src="../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><a class="docs-logo" href="../index_base/"><img src="../assets/logo.svg" alt="SymbolicRegression.jl logo"/></a><div class="docs-package-name"><span class="docs-autofit"><a href="../index_base/">SymbolicRegression.jl</a></span></div><form class="docs-search" action="../search/"><input class="docs-search-query" id="documenter-search-query" name="q" type="text" placeholder="Search docs"/></form><ul class="docs-menu"><li><a class="tocitem" href="../index_base/">Contents</a></li><li><a class="tocitem" href="../">Home</a></li><li><span class="tocitem">Examples</span><ul><li class="is-active"><a class="tocitem" href>Short Examples</a><ul class="internal"><li><a class="tocitem" href="#.-Simple-search"><span>1. Simple search</span></a></li><li><a class="tocitem" href="#.-Custom-operator"><span>2. Custom operator</span></a></li><li><a class="tocitem" href="#.-Multiple-outputs"><span>3. Multiple outputs</span></a></li><li><a class="tocitem" href="#.-Plotting-an-expression"><span>4. Plotting an expression</span></a></li><li><a class="tocitem" href="#.-Other-types"><span>5. Other types</span></a></li><li><a class="tocitem" href="#.-Dimensional-constraints"><span>6. Dimensional constraints</span></a></li><li><a class="tocitem" href="#.-Working-with-Expressions"><span>7. Working with Expressions</span></a></li><li><a class="tocitem" href="#.-Parametric-Expressions"><span>8. Parametric Expressions</span></a></li><li><a class="tocitem" href="#.-Additional-features"><span>9. Additional features</span></a></li><li><a class="tocitem" href="#.-Template-Expressions"><span>10. Template Expressions</span></a></li></ul></li><li><a class="tocitem" href="template_expression/">Template Expressions</a></li><li><a class="tocitem" href="parameterized_function/">Parameterized Expressions</a></li></ul></li><li><a class="tocitem" href="../api/">API</a></li><li><a class="tocitem" href="../losses/">Losses</a></li><li><a class="tocitem" href="../types/">Types</a></li><li><a class="tocitem" href="../customization/">Customization</a></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><nav class="breadcrumb"><ul class="is-hidden-mobile"><li><a class="is-disabled">Examples</a></li><li class="is-active"><a href>Short Examples</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Short Examples</a></li></ul></nav><div class="docs-right"><a class="docs-edit-link" href="https://github.com/MilesCranmer/SymbolicRegression.jl/blob/master/docs/src/examples.md" title="Edit on GitHub"><span class="docs-icon fab"></span><span class="docs-label is-hidden-touch">Edit on GitHub</span></a><a class="docs-settings-button fas fa-cog" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-sidebar-button fa fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a></div></header><article class="content" id="documenter-page"><h1 id="Toy-Examples-with-Code"><a class="docs-heading-anchor" href="#Toy-Examples-with-Code">Toy Examples with Code</a><a id="Toy-Examples-with-Code-1"></a><a class="docs-heading-anchor-permalink" href="#Toy-Examples-with-Code" title="Permalink"></a></h1><pre><code class="language-julia hljs">using SymbolicRegression
using MLJ</code></pre><h2 id=".-Simple-search"><a class="docs-heading-anchor" href="#.-Simple-search">1. Simple search</a><a id=".-Simple-search-1"></a><a class="docs-heading-anchor-permalink" href="#.-Simple-search" title="Permalink"></a></h2><p>Here&#39;s a simple example where we find the expression <code>2 cos(x4) + x1^2 - 2</code>.</p><pre><code class="language-julia hljs">X = 2randn(1000, 5)
y = @. 2*cos(X[:, 4]) + X[:, 1]^2 - 2

Expand Down Expand Up @@ -196,4 +196,4 @@
# Access individual parts of the template expression
f_part = get_contents(best_expr).f # Expression using x1 or x2
g1_part = get_contents(best_expr).g1 # Expression using x3
g2_part = get_contents(best_expr).g2 # Expression using x3</code></pre><p>The above code demonstrates how template expressions can be used to:</p><ul><li>Define structured expressions with multiple components</li><li>Constrains which variables can be used in each component</li><li>Create expressions that can output multiple values</li></ul><p>You can even output custom structs - see the more detailed Template Expression example!</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><a class="docs-footer-nextpage" href="template_expression/">Template Expressions »</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="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Thursday 7 November 2024 06:54">Thursday 7 November 2024</span>. Using Julia version 1.11.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
g2_part = get_contents(best_expr).g2 # Expression using x3</code></pre><p>The above code demonstrates how template expressions can be used to:</p><ul><li>Define structured expressions with multiple components</li><li>Constrains which variables can be used in each component</li><li>Create expressions that can output multiple values</li></ul><p>You can even output custom structs - see the more detailed Template Expression example!</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><a class="docs-footer-nextpage" href="template_expression/">Template Expressions »</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="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Thursday 7 November 2024 23:12">Thursday 7 November 2024</span>. Using Julia version 1.11.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit 379b68a

Please sign in to comment.