Skip to content

Commit

Permalink
Deployed cb669f1 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter committed Nov 10, 2023
1 parent 2a1eba0 commit d079f4e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 190 deletions.
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"outputs": [],
"source": [
"# import functionality from sympy\n",
Expand Down Expand Up @@ -65,17 +65,8 @@
},
{
"cell_type": "code",
"execution_count": 4,
"outputs": [
{
"data": {
"text/plain": "{'max_depth': {3: 0.3333333333333333,\n 4: 0.3333333333333333,\n 7: 0.3333333333333333},\n 'depth': {1: 0.3333333333333333,\n 2: 0.3333333333333333,\n 3: 0.3333333333333333},\n 'structures': {'[0, 1, 1]': 0.3333333333333333,\n '[0, 1, 1, 2]': 0.3333333333333333,\n '[0, 1, 2, 1, 2, 2, 3]': 0.3333333333333333},\n 'features': {'constants': 0.2857142857142857,\n 'variables': 0.7142857142857143},\n 'functions': {'exp': 0.3333333333333333,\n 'sin': 0.3333333333333333,\n 'cos': 0.3333333333333333},\n 'operators': {'+': 0.5, '*': 0.5},\n 'function_conditionals': {'exp': {'features': {'constants': 0.0,\n 'variables': 1.0},\n 'functions': {},\n 'operators': {}},\n 'sin': {'features': {'constants': 0.0, 'variables': 1.0},\n 'functions': {},\n 'operators': {}},\n 'cos': {'features': {'constants': 0.0, 'variables': 1.0},\n 'functions': {},\n 'operators': {}}},\n 'operator_conditionals': {'+': {'features': {'constants': 0.0,\n 'variables': 1.0},\n 'functions': {'sin': 1.0},\n 'operators': {'*': 1.0}},\n '*': {'features': {'constants': 1.0, 'variables': 0.0},\n 'functions': {'exp': 0.5, 'cos': 0.5},\n 'operators': {}}}}"
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": null,
"outputs": [],
"source": [
"from equation_tree import get_frequencies\n",
"\n",
Expand All @@ -98,17 +89,8 @@
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [
{
"data": {
"text/plain": "{'max_depth': {3: 1, 4: 1, 7: 1},\n 'depth': {1: 1, 2: 1, 3: 1},\n 'structures': {'[0, 1, 1]': 1, '[0, 1, 1, 2]': 1, '[0, 1, 2, 1, 2, 2, 3]': 1},\n 'features': {'constants': 2, 'variables': 5},\n 'functions': {'exp': 1, 'sin': 1, 'cos': 1},\n 'operators': {'+': 2, '*': 2},\n 'function_conditionals': {'exp': {'features': {'constants': 0,\n 'variables': 1},\n 'functions': {},\n 'operators': {}},\n 'sin': {'features': {'constants': 0, 'variables': 1},\n 'functions': {},\n 'operators': {}},\n 'cos': {'features': {'constants': 0, 'variables': 1},\n 'functions': {},\n 'operators': {}}},\n 'operator_conditionals': {'+': {'features': {'constants': 0, 'variables': 2},\n 'functions': {'sin': 1},\n 'operators': {'*': 1}},\n '*': {'features': {'constants': 2, 'variables': 0},\n 'functions': {'exp': 1, 'cos': 1},\n 'operators': {}}}}"
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": null,
"outputs": [],
"source": [
"from src.equation_tree import get_counts\n",
"\n",
Expand All @@ -130,32 +112,8 @@
},
{
"cell_type": "code",
"execution_count": 6,
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/younesstrittmatter/Documents/GitHub/AutoRA/equation-tree/src/equation_tree/util/io.py:27: UserWarning: No hashed prior found. Sample frequencies may diverge from the prior. Consider burning this prior first.\n",
" warnings.warn(\n",
"Processing: 100%|██████████| 10/10 [00:00<00:00, 90.79iteration/s]"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"[c_1*cos(x_1), 2*x_1, 2*x_1, 2*x_1, 2*x_1, x_1 + sin(x_1), c_1*cos(x_1), c_1*cos(x_1), x_1 + sin(x_1), x_1 + sin(x_1)]\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n"
]
}
],
"execution_count": null,
"outputs": [],
"source": [
"from equation_tree import sample\n",
"\n",
Expand All @@ -169,16 +127,8 @@
},
{
"cell_type": "code",
"execution_count": 7,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{'max_depth': {4: 0.6, 3: 0.4}, 'depth': {2: 0.6, 1: 0.4}, 'structures': {'[0, 1, 1, 2]': 0.6, '[0, 1, 1]': 0.4}, 'features': {'constants': 0.35, 'variables': 0.65}, 'functions': {'cos': 0.5, 'sin': 0.5}, 'operators': {'*': 0.7, '+': 0.3}, 'function_conditionals': {'cos': {'features': {'constants': 0.0, 'variables': 1.0}, 'functions': {}, 'operators': {}}, 'sin': {'features': {'constants': 0.0, 'variables': 1.0}, 'functions': {}, 'operators': {}}}, 'operator_conditionals': {'*': {'features': {'constants': 0.6363636363636364, 'variables': 0.36363636363636365}, 'functions': {'cos': 1.0}, 'operators': {}}, '+': {'features': {'constants': 0.0, 'variables': 1.0}, 'functions': {'sin': 1.0}, 'operators': {}}}}\n"
]
}
],
"execution_count": null,
"outputs": [],
"source": [
"# check the frequencies\n",
"print(get_frequencies(equations))"
Expand Down
143 changes: 13 additions & 130 deletions tutorials/Analysing Equation Distribution/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ <h2 id="equation-database">Equation Database<a class="anchor-link" href="#equati
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
<div class="jp-InputArea jp-Cell-inputArea">
<div class="jp-InputPrompt jp-InputArea-prompt">In [1]:</div><div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div><div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="CodeMirror cm-s-jupyter">
<div class="zeroclipboard-container">
<clipboard-copy for="cell-2">
Expand Down Expand Up @@ -1640,13 +1640,13 @@ <h2 id="analyse-the-list">Analyse the List<a class="anchor-link" href="#analyse-
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
<div class="jp-InputArea jp-Cell-inputArea">
<div class="jp-InputPrompt jp-InputArea-prompt">In [4]:</div><div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div><div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="CodeMirror cm-s-jupyter">
<div class="zeroclipboard-container">
<clipboard-copy for="cell-3">
Expand Down Expand Up @@ -1674,49 +1674,6 @@ <h2 id="analyse-the-list">Analyse the List<a class="anchor-link" href="#analyse-
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[4]:</div>
<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain" tabindex="0">
<pre>{'max_depth': {3: 0.3333333333333333,
4: 0.3333333333333333,
7: 0.3333333333333333},
'depth': {1: 0.3333333333333333,
2: 0.3333333333333333,
3: 0.3333333333333333},
'structures': {'[0, 1, 1]': 0.3333333333333333,
'[0, 1, 1, 2]': 0.3333333333333333,
'[0, 1, 2, 1, 2, 2, 3]': 0.3333333333333333},
'features': {'constants': 0.2857142857142857,
'variables': 0.7142857142857143},
'functions': {'exp': 0.3333333333333333,
'sin': 0.3333333333333333,
'cos': 0.3333333333333333},
'operators': {'+': 0.5, '*': 0.5},
'function_conditionals': {'exp': {'features': {'constants': 0.0,
'variables': 1.0},
'functions': {},
'operators': {}},
'sin': {'features': {'constants': 0.0, 'variables': 1.0},
'functions': {},
'operators': {}},
'cos': {'features': {'constants': 0.0, 'variables': 1.0},
'functions': {},
'operators': {}}},
'operator_conditionals': {'+': {'features': {'constants': 0.0,
'variables': 1.0},
'functions': {'sin': 1.0},
'operators': {'*': 1.0}},
'*': {'features': {'constants': 1.0, 'variables': 0.0},
'functions': {'exp': 0.5, 'cos': 0.5},
'operators': {}}}}</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell">
Expand All @@ -1729,13 +1686,13 @@ <h2 id="analyse-the-list">Analyse the List<a class="anchor-link" href="#analyse-
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
<div class="jp-InputArea jp-Cell-inputArea">
<div class="jp-InputPrompt jp-InputArea-prompt">In [3]:</div><div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div><div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="CodeMirror cm-s-jupyter">
<div class="zeroclipboard-container">
<clipboard-copy for="cell-4">
Expand All @@ -1761,39 +1718,6 @@ <h2 id="analyse-the-list">Analyse the List<a class="anchor-link" href="#analyse-
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[3]:</div>
<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain" tabindex="0">
<pre>{'max_depth': {3: 1, 4: 1, 7: 1},
'depth': {1: 1, 2: 1, 3: 1},
'structures': {'[0, 1, 1]': 1, '[0, 1, 1, 2]': 1, '[0, 1, 2, 1, 2, 2, 3]': 1},
'features': {'constants': 2, 'variables': 5},
'functions': {'exp': 1, 'sin': 1, 'cos': 1},
'operators': {'+': 2, '*': 2},
'function_conditionals': {'exp': {'features': {'constants': 0,
'variables': 1},
'functions': {},
'operators': {}},
'sin': {'features': {'constants': 0, 'variables': 1},
'functions': {},
'operators': {}},
'cos': {'features': {'constants': 0, 'variables': 1},
'functions': {},
'operators': {}}},
'operator_conditionals': {'+': {'features': {'constants': 0, 'variables': 2},
'functions': {'sin': 1},
'operators': {'*': 1}},
'*': {'features': {'constants': 2, 'variables': 0},
'functions': {'exp': 1, 'cos': 1},
'operators': {}}}}</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell">
Expand All @@ -1806,13 +1730,13 @@ <h2 id="analyse-the-list">Analyse the List<a class="anchor-link" href="#analyse-
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
<div class="jp-InputArea jp-Cell-inputArea">
<div class="jp-InputPrompt jp-InputArea-prompt">In [6]:</div><div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div><div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="CodeMirror cm-s-jupyter">
<div class="zeroclipboard-container">
<clipboard-copy for="cell-5">
Expand Down Expand Up @@ -1840,42 +1764,14 @@ <h2 id="analyse-the-list">Analyse the List<a class="anchor-link" href="#analyse-
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>/Users/younesstrittmatter/Documents/GitHub/AutoRA/equation-tree/src/equation_tree/util/io.py:27: UserWarning: No hashed prior found. Sample frequencies may diverge from the prior. Consider burning this prior first.
warnings.warn(
Processing: 100%|██████████| 10/10 [00:00&lt;00:00, 90.79iteration/s]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>[c_1*cos(x_1), 2*x_1, 2*x_1, 2*x_1, 2*x_1, x_1 + sin(x_1), c_1*cos(x_1), c_1*cos(x_1), x_1 + sin(x_1), x_1 + sin(x_1)]
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
</pre>
</div>
</div>
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
<div class="jp-InputArea jp-Cell-inputArea">
<div class="jp-InputPrompt jp-InputArea-prompt">In [7]:</div><div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="jp-InputPrompt jp-InputArea-prompt">In [ ]:</div><div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="CodeMirror cm-s-jupyter">
<div class="zeroclipboard-container">
<clipboard-copy for="cell-6">
Expand All @@ -1897,19 +1793,6 @@ <h2 id="analyse-the-list">Analyse the List<a class="anchor-link" href="#analyse-
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>{'max_depth': {4: 0.6, 3: 0.4}, 'depth': {2: 0.6, 1: 0.4}, 'structures': {'[0, 1, 1, 2]': 0.6, '[0, 1, 1]': 0.4}, 'features': {'constants': 0.35, 'variables': 0.65}, 'functions': {'cos': 0.5, 'sin': 0.5}, 'operators': {'*': 0.7, '+': 0.3}, 'function_conditionals': {'cos': {'features': {'constants': 0.0, 'variables': 1.0}, 'functions': {}, 'operators': {}}, 'sin': {'features': {'constants': 0.0, 'variables': 1.0}, 'functions': {}, 'operators': {}}}, 'operator_conditionals': {'*': {'features': {'constants': 0.6363636363636364, 'variables': 0.36363636363636365}, 'functions': {'cos': 1.0}, 'operators': {}}, '+': {'features': {'constants': 0.0, 'variables': 1.0}, 'functions': {'sin': 1.0}, 'operators': {}}}}
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- jp-Notebook -->
Expand Down

0 comments on commit d079f4e

Please sign in to comment.