Skip to content

Commit

Permalink
remove output from notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter committed Oct 20, 2024
1 parent 9c86ee5 commit c97b844
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 48 deletions.
4 changes: 3 additions & 1 deletion docs/examples/closed-loop-basic/notebooks/sweetbean.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@
{
"cell_type": "markdown",
"metadata": {},
"source": "Note that the dot stimulus is shown for 2000ms (``duration=2000``). It consists of two set of dots (``number_of_apertures=2``), which are parameterized by the two timeline variables ``number_of_oobs=[dot_stimulus_left, dot_stimulus_right]``. Finally, we allow participants to record a response on each stimulus, indicating whether the dots match or not by pressing the respective keys for `y` and `n` (``choices=[\"y\", \"n\"]``)"
"source": [
"Note that the dot stimulus is shown for 2000ms (``duration=2000``). It consists of two set of dots (``number_of_apertures=2``), which are parameterized by the two timeline variables ``number_of_oobs=[dot_stimulus_left, dot_stimulus_right]``. Finally, we allow participants to record a response on each stimulus, indicating whether the dots match or not by pressing the respective keys for `y` and `n` (``choices=[\"y\", \"n\"]``)"
]
},
{
"cell_type": "markdown",
Expand Down
92 changes: 46 additions & 46 deletions docs/tutorials/basic/Tutorial III Functional Workflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001B[1mThe variables we provided:\u001B[0m\n",
"\u001b[1mThe variables we provided:\u001b[0m\n",
"VariableCollection(independent_variables=[Variable(name='x', value_range=(0, 6.283185307179586), allowed_values=array([0. , 0.21666156, 0.43332312, 0.64998469, 0.86664625,\n",
" 1.08330781, 1.29996937, 1.51663094, 1.7332925 , 1.94995406,\n",
" 2.16661562, 2.38327719, 2.59993875, 2.81660031, 3.03326187,\n",
" 3.24992343, 3.466585 , 3.68324656, 3.89990812, 4.11656968,\n",
" 4.33323125, 4.54989281, 4.76655437, 4.98321593, 5.1998775 ,\n",
" 5.41653906, 5.63320062, 5.84986218, 6.06652374, 6.28318531]), units='', type=<ValueType.REAL: 'real'>, variable_label='', rescale=1, is_covariate=False)], dependent_variables=[Variable(name='y', value_range=None, allowed_values=None, units='', type=<ValueType.REAL: 'real'>, variable_label='', rescale=1, is_covariate=False)], covariates=[])\n",
"\n",
"\u001B[1mThe conditions we provided:\u001B[0m\n",
"\u001b[1mThe conditions we provided:\u001b[0m\n",
" x\n",
"0 5.416539\n",
"1 4.116570\n",
Expand All @@ -231,7 +231,7 @@
"8 1.083308\n",
"9 5.199877\n",
"\n",
"\u001B[1mThe dataframe we provided:\u001B[0m\n",
"\u001b[1mThe dataframe we provided:\u001b[0m\n",
"Empty DataFrame\n",
"Columns: [x, y]\n",
"Index: []\n"
Expand Down Expand Up @@ -372,7 +372,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001B[1mPrevious Conditions:\u001B[0m\n",
"\u001b[1mPrevious Conditions:\u001b[0m\n",
" x\n",
"0 5.416539\n",
"1 4.116570\n",
Expand All @@ -385,7 +385,7 @@
"8 1.083308\n",
"9 5.199877\n",
"\n",
"\u001B[1mUpdated Conditions:\u001B[0m\n",
"\u001b[1mUpdated Conditions:\u001b[0m\n",
" x\n",
"0 0.433323\n",
"1 4.983216\n",
Expand Down Expand Up @@ -428,12 +428,12 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001B[1mPrevious Data:\u001B[0m\n",
"\u001b[1mPrevious Data:\u001b[0m\n",
"Empty DataFrame\n",
"Columns: [x, y]\n",
"Index: []\n",
"\n",
"\u001B[1mUpdated Data:\u001B[0m\n",
"\u001b[1mUpdated Data:\u001b[0m\n",
" x y\n",
"0 0.433323 0.724606\n",
"1 4.983216 -2.003534\n",
Expand Down Expand Up @@ -486,7 +486,7 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mUpdated Model:\u001B[0m\n",
"\u001b[1mUpdated Model:\u001b[0m\n",
"-0.38\n"
]
},
Expand Down Expand Up @@ -630,8 +630,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 1:\u001B[0m\n",
"\u001B[1mCycle 1 model: -0.38\u001B[0m\n"
"\u001b[1mRunning Cycle 1:\u001b[0m\n",
"\u001b[1mCycle 1 model: -0.38\u001b[0m\n"
]
},
{
Expand All @@ -658,8 +658,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 2:\u001B[0m\n",
"\u001B[1mCycle 2 model: -0.27\u001B[0m\n"
"\u001b[1mRunning Cycle 2:\u001b[0m\n",
"\u001b[1mCycle 2 model: -0.27\u001b[0m\n"
]
},
{
Expand All @@ -686,8 +686,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 3:\u001B[0m\n",
"\u001B[1mCycle 3 model: sin(x)\u001B[0m\n"
"\u001b[1mRunning Cycle 3:\u001b[0m\n",
"\u001b[1mCycle 3 model: sin(x)\u001b[0m\n"
]
},
{
Expand Down Expand Up @@ -757,8 +757,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 1, number of datapoints: 10\u001B[0m\n",
"\u001B[1mCycle 1 model: -0.38\u001B[0m\n"
"\u001b[1mRunning Cycle 1, number of datapoints: 10\u001b[0m\n",
"\u001b[1mCycle 1 model: -0.38\u001b[0m\n"
]
},
{
Expand All @@ -785,8 +785,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 2, number of datapoints: 20\u001B[0m\n",
"\u001B[1mCycle 2 model: -0.27\u001B[0m\n"
"\u001b[1mRunning Cycle 2, number of datapoints: 20\u001b[0m\n",
"\u001b[1mCycle 2 model: -0.27\u001b[0m\n"
]
},
{
Expand All @@ -813,8 +813,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 3, number of datapoints: 30\u001B[0m\n",
"\u001B[1mCycle 3 model: -0.07\u001B[0m\n"
"\u001b[1mRunning Cycle 3, number of datapoints: 30\u001b[0m\n",
"\u001b[1mCycle 3 model: -0.07\u001b[0m\n"
]
},
{
Expand All @@ -841,8 +841,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 4, number of datapoints: 40\u001B[0m\n",
"\u001B[1mCycle 4 model: sin(x)\u001B[0m\n"
"\u001b[1mRunning Cycle 4, number of datapoints: 40\u001b[0m\n",
"\u001b[1mCycle 4 model: sin(x)\u001b[0m\n"
]
},
{
Expand All @@ -860,8 +860,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mNumber of datapoints: 40\u001B[0m\n",
"\u001B[1mDetermined Model: sin(x)\u001B[0m\n"
"\u001b[1mNumber of datapoints: 40\u001b[0m\n",
"\u001b[1mDetermined Model: sin(x)\u001b[0m\n"
]
}
],
Expand Down Expand Up @@ -968,7 +968,7 @@
"text": [
"\n",
"#==================================================#\n",
"\u001B[1mUsing random pooler experimentalist...\u001B[0m\n"
"\u001b[1mUsing random pooler experimentalist...\u001b[0m\n"
]
},
{
Expand All @@ -984,8 +984,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 1:\u001B[0m\n",
"\u001B[1mCycle 1 model: -0.38\u001B[0m\n"
"\u001b[1mRunning Cycle 1:\u001b[0m\n",
"\u001b[1mCycle 1 model: -0.38\u001b[0m\n"
]
},
{
Expand All @@ -1011,7 +1011,7 @@
"text": [
"\n",
"#==================================================#\n",
"\u001B[1mUsing random pooler experimentalist...\u001B[0m\n"
"\u001b[1mUsing random pooler experimentalist...\u001b[0m\n"
]
},
{
Expand All @@ -1027,8 +1027,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 2:\u001B[0m\n",
"\u001B[1mCycle 2 model: -0.27\u001B[0m\n"
"\u001b[1mRunning Cycle 2:\u001b[0m\n",
"\u001b[1mCycle 2 model: -0.27\u001b[0m\n"
]
},
{
Expand All @@ -1054,7 +1054,7 @@
"text": [
"\n",
"#==================================================#\n",
"\u001B[1mUsing uniform sampler experimentalist...\u001B[0m\n"
"\u001b[1mUsing uniform sampler experimentalist...\u001b[0m\n"
]
},
{
Expand All @@ -1070,8 +1070,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 3:\u001B[0m\n",
"\u001B[1mCycle 3 model: sin(x)\u001B[0m\n"
"\u001b[1mRunning Cycle 3:\u001b[0m\n",
"\u001b[1mCycle 3 model: sin(x)\u001b[0m\n"
]
},
{
Expand All @@ -1097,7 +1097,7 @@
"text": [
"\n",
"#==================================================#\n",
"\u001B[1mUsing uniform sampler experimentalist...\u001B[0m\n"
"\u001b[1mUsing uniform sampler experimentalist...\u001b[0m\n"
]
},
{
Expand All @@ -1113,8 +1113,8 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 4:\u001B[0m\n",
"\u001B[1mCycle 4 model: sin(x)\u001B[0m\n"
"\u001b[1mRunning Cycle 4:\u001b[0m\n",
"\u001b[1mCycle 4 model: sin(x)\u001b[0m\n"
]
},
{
Expand Down Expand Up @@ -1198,7 +1198,7 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 1 with 5 new samples:\u001B[0m\n"
"\u001b[1mRunning Cycle 1 with 5 new samples:\u001b[0m\n"
]
},
{
Expand All @@ -1213,7 +1213,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001B[1mCycle 1 model: -0.31\u001B[0m\n"
"\u001b[1mCycle 1 model: -0.31\u001b[0m\n"
]
},
{
Expand All @@ -1238,7 +1238,7 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 2 with 10 new samples:\u001B[0m\n"
"\u001b[1mRunning Cycle 2 with 10 new samples:\u001b[0m\n"
]
},
{
Expand All @@ -1253,7 +1253,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001B[1mCycle 2 model: -0.21\u001B[0m\n"
"\u001b[1mCycle 2 model: -0.21\u001b[0m\n"
]
},
{
Expand All @@ -1278,7 +1278,7 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 3 with 20 new samples:\u001B[0m\n"
"\u001b[1mRunning Cycle 3 with 20 new samples:\u001b[0m\n"
]
},
{
Expand All @@ -1293,7 +1293,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001B[1mCycle 3 model: sin(x)\u001B[0m\n"
"\u001b[1mCycle 3 model: sin(x)\u001b[0m\n"
]
},
{
Expand All @@ -1318,7 +1318,7 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 4 with 50 new samples:\u001B[0m\n"
"\u001b[1mRunning Cycle 4 with 50 new samples:\u001b[0m\n"
]
},
{
Expand All @@ -1333,7 +1333,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001B[1mCycle 4 model: (x * -0.13)\u001B[0m\n"
"\u001b[1mCycle 4 model: (x * -0.13)\u001b[0m\n"
]
},
{
Expand All @@ -1358,7 +1358,7 @@
"output_type": "stream",
"text": [
"\n",
"\u001B[1mRunning Cycle 5 with 100 new samples:\u001B[0m\n"
"\u001b[1mRunning Cycle 5 with 100 new samples:\u001b[0m\n"
]
},
{
Expand All @@ -1373,7 +1373,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001B[1mCycle 5 model: sin(x)\u001B[0m\n"
"\u001b[1mCycle 5 model: sin(x)\u001b[0m\n"
]
},
{
Expand Down
4 changes: 3 additions & 1 deletion docs/tutorials/basic/Tutorial Ia Theorists.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,9 @@
{
"cell_type": "markdown",
"metadata": {},
"source": "Similar to the polynomial regressor above, we can fit the neural network regressor to the training data."
"source": [
"Similar to the polynomial regressor above, we can fit the neural network regressor to the training data."
]
},
{
"cell_type": "code",
Expand Down

0 comments on commit c97b844

Please sign in to comment.