You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Read the Docs configuration and update documentation setup
- Added .readthedocs.yaml configuration file for RTD builds
- Updated docs/conf.py version to 0.2.0
- Updated docs/doc_requirements.txt with compatible versions
- Added docs extras_require in setup.py for documentation dependencies
- Verified local documentation builds successfully
- Cleaned up generated documentation artifacts
This should fix the RTD build failure due to missing configuration file.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: docs/auto_examples/decode_by_level.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
},
16
16
"outputs": [],
17
17
"source": [
18
-
"# Code source: Lucy Owen\n# License: MIT\n\n# load timecorr and other packages\nimport timecorr as tc\nimport hypertools as hyp\nimport numpy as np\n\nprint(\"Timepoint Decoding Example\")\nprint(\"=\"*30)\nprint(\"NOTE: This example currently has compatibility issues.\")\nprint(\"Please see docs/auto_examples/decode_by_level.py for a working version.\")\nprint(\"=\"*30)\n\n# load example data\ndata = hyp.load('weights').get_data()\n\n# Convert to numpy array format required by timepoint_decoder\n# timepoint_decoder expects a numpy array with shape (n_subjects, T, K)\ndata_array = np.array(data)\nprint(f\"Data shape: {data_array.shape} (subjects, timepoints, features)\")\n\n# define your weights parameters\nwidth = 10\nlaplace = {'name': 'Laplace', 'weights': tc.laplace_weights, 'params': {'scale': width}}\n\n# set your number of levels\n# if integer, returns decoding accuracy, error, and rank for specified level\nlevel = 2\n\nprint(f\"\\nAttempting timepoint decoding at level {level}...\")\n\ntry:\n # run timecorr with specified functions for calculating correlations, as well as combining and reducing\n results = tc.timepoint_decoder(data_array, level=level, combine=tc.corrmean_combine,\n cfun=tc.isfc, rfun='eigenvector_centrality', weights_fun=laplace['weights'],\n weights_params=laplace['params'])\n \n # returns only decoding results for level 2\n print(\"\u2713 SUCCESS: Level 2 decoding results:\")\n print(results)\n \nexcept Exception as e:\n print(f\"\u2717 ERROR: {e}\")\n print(\"This function has compatibility issues with the current version.\")\n\n# set your number of levels\n# if list or array of integers, returns decoding accuracy, error, and rank for all levels\nlevels = np.arange(int(level) + 1)\n\nprint(f\"\\nAttempting multi-level decoding for levels {levels}...\")\n\ntry:\n # run timecorr with specified functions for calculating correlations, as well as combining and reducing\n results = tc.timepoint_decoder(data_array, level=levels, combine=tc.corrmean_combine,\n cfun=tc.isfc, rfun='eigenvector_centrality', weights_fun=laplace['weights'],\n weights_params=laplace['params'])\n \n # returns decoding results for all levels up to level 2\n print(\"\u2713 SUCCESS: Multi-level decoding results:\")\n print(results)\n \nexcept Exception as e:\n print(f\"\u2717 ERROR: {e}\")\n print(\"This function has compatibility issues with the current version.\")\n\nprint(\"\\n\" + \"=\"*60)\nprint(\"RECOMMENDATION: Use the enhanced version in docs/auto_examples/decode_by_level.py\")\nprint(\"which uses synthetic data and includes comprehensive error handling.\")"
18
+
"# Code source: Lucy Owen\n# License: MIT\n\nimport hypertools as hyp\nimport numpy as np\n\n# load timecorr and other packages\nimport timecorr as tc\n\nprint(\"Timepoint Decoding Example\")\nprint(\"=\" * 30)\nprint(\"NOTE: This example currently has compatibility issues.\")\nprint(\"Please see docs/auto_examples/decode_by_level.py for a working version.\")\nprint(\"=\" * 30)\n\n# load example data\ndata = hyp.load(\"weights\").get_data()\n\n# Convert to numpy array format required by timepoint_decoder\n# timepoint_decoder expects a numpy array with shape (n_subjects, T, K)\ndata_array = np.array(data)\nprint(f\"Data shape: {data_array.shape} (subjects, timepoints, features)\")\n\n# define your weights parameters\nwidth = 10\nlaplace = {\"name\": \"Laplace\", \"weights\": tc.laplace_weights, \"params\": {\"scale\": width}}\n\n# set your number of levels\n# if integer, returns decoding accuracy, error, and rank for specified level\nlevel = 2\n\nprint(f\"\\nAttempting timepoint decoding at level {level}...\")\n\ntry:\n # run timecorr with specified functions for calculating correlations, as well as combining and reducing\n results = tc.timepoint_decoder(\n data_array,\n level=level,\n combine=tc.corrmean_combine,\n cfun=tc.isfc,\n rfun=\"eigenvector_centrality\",\n weights_fun=laplace[\"weights\"],\n weights_params=laplace[\"params\"],\n )\n\n # returns only decoding results for level 2\n print(\"\u2713 SUCCESS: Level 2 decoding results:\")\n print(results)\n\nexcept Exception as e:\n print(f\"\u2717 ERROR: {e}\")\n print(\"This function has compatibility issues with the current version.\")\n\n# set your number of levels\n# if list or array of integers, returns decoding accuracy, error, and rank for all levels\nlevels = np.arange(int(level) + 1)\n\nprint(f\"\\nAttempting multi-level decoding for levels {levels}...\")\n\ntry:\n # run timecorr with specified functions for calculating correlations, as well as combining and reducing\n results = tc.timepoint_decoder(\n data_array,\n level=levels,\n combine=tc.corrmean_combine,\n cfun=tc.isfc,\n rfun=\"eigenvector_centrality\",\n weights_fun=laplace[\"weights\"],\n weights_params=laplace[\"params\"],\n )\n\n # returns decoding results for all levels up to level 2\n print(\"\u2713 SUCCESS: Multi-level decoding results:\")\n print(results)\n\nexcept Exception as e:\n print(f\"\u2717 ERROR: {e}\")\n print(\"This function has compatibility issues with the current version.\")\n\nprint(\"\\n\" + \"=\" * 60)\nprint(\n \"RECOMMENDATION: Use the enhanced version in docs/auto_examples/decode_by_level.py\"\n)\nprint(\"which uses synthetic data and includes comprehensive error handling.\")"
0 commit comments