|
487 | 487 | "cell_type": "markdown", |
488 | 488 | "metadata": {}, |
489 | 489 | "source": [ |
490 | | - "Here, we define settings for two models to be fit and compared. A user could also use the `trim_spectrum` to define the frequency ranges for each model; see the [specparam website](https://fooof-tools.github.io/fooof/generated/fooof.utils.trim_spectrum.html#fooof.utils.trim_spectrum) for details on how to use this utility." |
| 490 | + "Here, we define settings for two models to be fit and compared. A user could also use the `trim_spectrum` to define the frequency ranges for each model; see the [specparam website](https://fooof-tools.github.io/fooof/generated/fooof.utils.trim_spectrum.html#fooof.utils.trim_spectrum) for details on using this utility." |
491 | 491 | ] |
492 | 492 | }, |
493 | 493 | { |
|
539 | 539 | " fm.fit(m1_freq, spectrum, m1_PSD_range)\n", |
540 | 540 | " \n", |
541 | 541 | " # Save out individual results for further consideration\n", |
542 | | - " fm.save_report(file_name='EOP_' + str(index) + '_fm1_settings', file_path= output_path)" |
| 542 | + " fm.save_report(file_name='EOP_' + str(index) + '_fm1_settings', file_path=output_path)" |
543 | 543 | ] |
544 | 544 | }, |
545 | 545 | { |
|
644 | 644 | "source": [ |
645 | 645 | "# Plot distributions of goodness of fit parameters\n", |
646 | 646 | "# This information is presented in the print_reports output as well\n", |
647 | | - "fig, (ax0, ax1) = plt.subplots(1, 2, figsize=(14,6))\n", |
| 647 | + "fig, (ax0,ax1) = plt.subplots(1, 2, figsize=(14,6))\n", |
648 | 648 | "\n", |
649 | 649 | "ax0.hist(r2s)\n", |
650 | 650 | "ax0.set_xlabel('Variance explained (R^2)', fontsize=20)\n", |
|
884 | 884 | "metadata": {}, |
885 | 885 | "outputs": [], |
886 | 886 | "source": [ |
| 887 | + "# Save out periodic parameter results\n", |
887 | 888 | "per = pd.DataFrame(per)\n", |
888 | 889 | "per.columns = ['CF','PW','BW','index']\n", |
889 | 890 | "\n", |
|
0 commit comments