Skip to content

Commit dcddd5b

Browse files
committed
Clean up of tutorial
1 parent e4d779d commit dcddd5b

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

tutorials/tutorial20/costs-tutorial_toy-data.ipynb

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -510,40 +510,7 @@
510510
"id": "d6d35728-7d23-408b-b98e-987fe65b90c5",
511511
"metadata": {},
512512
"source": [
513-
"How big should the window be? This is a non-trivial question. First, let's find the number of time steps in a single cycle for the high frequency transient feature."
514-
]
515-
},
516-
{
517-
"cell_type": "code",
518-
"execution_count": 9,
519-
"id": "4fa5ad74-9efe-4613-81f3-fdb9558a3627",
520-
"metadata": {},
521-
"outputs": [
522-
{
523-
"name": "stdout",
524-
"output_type": "stream",
525-
"text": [
526-
"Number of time steps per cycle of the transient feature: 785\n"
527-
]
528-
}
529-
],
530-
"source": [
531-
"dt = scipy.stats.mode(np.diff(time.flatten()))[0]\n",
532-
"\n",
533-
"num_steps_cycle = (2 * np.pi / f_transient) / dt\n",
534-
"print(\n",
535-
" \"Number of time steps per cycle of the transient feature: {:.0f}\".format(\n",
536-
" num_steps_cycle[0]\n",
537-
" )\n",
538-
")"
539-
]
540-
},
541-
{
542-
"cell_type": "markdown",
543-
"id": "e74244b0-dcb0-42fa-8e03-edfde8bc98c2",
544-
"metadata": {},
545-
"source": [
546-
"Following the advice in Dylewsky et al., (2019) we should have a window size somewhere around 2 * the period of the fastest feature. \n",
513+
"How big should the window be? This is a non-trivial question. Following the advice in Dylewsky et al., (2019) we should have a window size somewhere around 2 * the period of the fastest feature. \n",
547514
"\n",
548515
"When the window is too large and/or the svd rank is too small to fit the data well, these high frequency features are simply dropped. This behavior can be accidentally nice when wanting to ignore high frequency components but frustrating in the cases when these components need to be retained.\n",
549516
"\n",

0 commit comments

Comments
 (0)