Skip to content

Commit

Permalink
Merge branch 'main' into milestone-v01-low-hanging-fruit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper van den Bosch committed Dec 15, 2022
2 parents 16a82de + f85bfd4 commit 4533965
Show file tree
Hide file tree
Showing 22 changed files with 442 additions and 407 deletions.
30 changes: 21 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,43 @@
This is some guidance for RSAtoolbox contributors, but our approach evolves over time. Don't hesitate to contact @ilogue (Jasper) or @HeikoSchuett with any questions.


Your cycle
==========

1. If you identify something that has to be fixed or done: create an issue. Issues can be associated with projects.
1. If you identify something that has to be fixed or done: create an issue. Discussions
or questions about the theory or best practices should be filed as Github Discussions.
2. If you want to start coding or documenting something, the first step is to check if anyone else is working on this in the list of Pull Requests. If not, create a branch on your local machine, commit something small such as a note or empty file, and push the commit to the same branch on GitHub. Then you can then open a Pull Request. This is for two reasons: you're communicating to the team that you're working on this (so we're not doing things twice), and it gives you and the others an easy way to track your progress.
3. Commit regularly (typically every 10-30 minutes) and give your commits useful messages. "Changes to the data package" does not say anything about what you've done, "Added new feature model" does. If your commit is too large this makes it harder to write a short message.
4. Write unit-tests to cover your new code. This is easier when you recently wrote the code. Also we require test coverage for your changes to be merged into master!
5. When you're done with the feature, ask for reviews from two team members or ask the maintainers for help.
6. When the reviewers have approved the Pull Request, they will merge it into the master branch. At this point you want to checkout the master branch again and pull so that you have your latest changes, and can open a new branch for a new feature.
4. Write unit-tests to cover your new code. This is easier when you recently wrote the code. Tip: try writing tests before you implement the code. The test should assert at least the most important outcomes of the functionality (typically the value returned).
5. Add Python type annotations where practical.
6. When you're done with the feature, ask for reviews from two team members or ask the maintainers for help.


Here is an example shell command to build rsatoolbox, install it in your environment, and run the unit tests on it, in one go:
How-to
======

```sh
python -m build && sleep 1 && pip install --pre --force-reinstall dist/*.whl && pytest
```
1. `pip install -r requirements.txt` install rsatoolbox dependencies (and repeat when you make changes)
2. `pip install -r tests/requirements.txt` install test dependencies (and repeat when you make changes)
3. `pip uninstall rsatoolbox` uninstall rsatoolbox in your environment
4. `rm dist/*` remove any previously built packages if necessary
5. `python -m build` compile a new rsatoolbox package with your latest changes
6. `pip install dist/*` install the new package
7. `pytest` run the unit tests on the installed version of rsatoolbox
8. run linting tools such as `flake8`, `vulture` to discover any style issues


Rules
=====

1. Only through Pull Requests can you submit changes or additions to the code.
2. Every Pull Request has to be reviewed by two team members.
3. New code should be covered 100% by unit tests.
3. New code should have useful unit tests.
4. Code should pass the `pylint` style check.
5. Functions, classes, methods should have a `Google-style docstring`.
6. Larger new features should come with narrative documentation and an example.
7. When you're ready for your Pull Request to be reviewed, in the top right corner you can suggest two reviewers,
or alternatively, ping @ilogue or @HeikoSchuett and we will assign reviewers.
8. Consider how to handle NaNs in the user input. If your code can't handle them, you can throw an exception.


Deployment
Expand Down
103 changes: 54 additions & 49 deletions demos/demo_bootstrap.ipynb

Large diffs are not rendered by default.

79 changes: 42 additions & 37 deletions demos/demo_dissimilarities.ipynb

Large diffs are not rendered by default.

89 changes: 47 additions & 42 deletions demos/demo_flexible_models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,27 +72,27 @@
"output_type": "stream",
"text": [
"Predicting with theta = [1,0], should return the first rdm, which is:\n",
"[[0.20529161 0.18219921 0.14234779 0.15184744 0.21434174 0.1876438\n",
" 0.23245372 0.16816806 0.11574728 0.21842971]]\n",
"[[0.17948311 0.13203485 0.13632945 0.18298594 0.15166647 0.16234362\n",
" 0.14637612 0.12058838 0.15784657 0.12497874]]\n",
"The output of the model is:\n",
"[0.20529161 0.18219921 0.14234779 0.15184744 0.21434174 0.1876438\n",
" 0.23245372 0.16816806 0.11574728 0.21842971]\n",
"[0.17948311 0.13203485 0.13632945 0.18298594 0.15166647 0.16234362\n",
" 0.14637612 0.12058838 0.15784657 0.12497874]\n",
"Which is indeed identical\n",
"\n",
"Predicting with theta = [0,1], should return the second rdm, which is:\n",
"[[0.21021824 0.09930457 0.16356345 0.20092431 0.18402425 0.19685312\n",
" 0.13494642 0.13652705 0.1714637 0.12152749]]\n",
"[[0.14265908 0.17005546 0.18177815 0.1564901 0.13836761 0.17725487\n",
" 0.09220979 0.24478309 0.15514355 0.20351734]]\n",
"The output of the model is:\n",
"[0.21021824 0.09930457 0.16356345 0.20092431 0.18402425 0.19685312\n",
" 0.13494642 0.13652705 0.1714637 0.12152749]\n",
"[0.14265908 0.17005546 0.18177815 0.1564901 0.13836761 0.17725487\n",
" 0.09220979 0.24478309 0.15514355 0.20351734]\n",
"Which is indeed identical\n",
"\n",
"Predicting with theta = [1,1], should return the sum of the first two rdms, which is:\n",
"[[0.41550985 0.28150378 0.30591124 0.35277176 0.39836599 0.38449692\n",
" 0.36740013 0.3046951 0.28721099 0.3399572 ]]\n",
"[[0.32214218 0.30209031 0.3181076 0.33947604 0.29003408 0.33959849\n",
" 0.23858592 0.36537148 0.31299012 0.32849607]]\n",
"The output of the model is:\n",
"[0.41550985 0.28150378 0.30591124 0.35277176 0.39836599 0.38449692\n",
" 0.36740013 0.3046951 0.28721099 0.3399572 ]\n",
"[0.32214218 0.30209031 0.3181076 0.33947604 0.29003408 0.33959849\n",
" 0.23858592 0.36537148 0.31299012 0.32849607]\n",
"Which is indeed identical\n"
]
}
Expand Down Expand Up @@ -136,11 +136,11 @@
"squared euclidean\n",
"\n",
"dissimilarities[0] = \n",
"[[0. 0.20529161 0.18219921 0.14234779 0.15184744]\n",
" [0.20529161 0. 0.21434174 0.1876438 0.23245372]\n",
" [0.18219921 0.21434174 0. 0.16816806 0.11574728]\n",
" [0.14234779 0.1876438 0.16816806 0. 0.21842971]\n",
" [0.15184744 0.23245372 0.11574728 0.21842971 0. ]]\n",
"[[0. 0.17948311 0.13203485 0.13632945 0.18298594]\n",
" [0.17948311 0. 0.15166647 0.16234362 0.14637612]\n",
" [0.13203485 0.15166647 0. 0.12058838 0.15784657]\n",
" [0.13632945 0.16234362 0.12058838 0. 0.12497874]\n",
" [0.18298594 0.14637612 0.15784657 0.12497874 0. ]]\n",
"\n",
"descriptors: \n",
"\n",
Expand All @@ -161,11 +161,11 @@
"squared euclidean\n",
"\n",
"dissimilarities[0] = \n",
"[[0. 0.20529161 0.18219921 0.14234779 0.15184744]\n",
" [0.20529161 0. 0.21434174 0.1876438 0.23245372]\n",
" [0.18219921 0.21434174 0. 0.16816806 0.11574728]\n",
" [0.14234779 0.1876438 0.16816806 0. 0.21842971]\n",
" [0.15184744 0.23245372 0.11574728 0.21842971 0. ]]\n",
"[[0. 0.17948311 0.13203485 0.13632945 0.18298594]\n",
" [0.17948311 0. 0.15166647 0.16234362 0.14637612]\n",
" [0.13203485 0.15166647 0. 0.12058838 0.15784657]\n",
" [0.13632945 0.16234362 0.12058838 0. 0.12497874]\n",
" [0.18298594 0.14637612 0.15784657 0.12497874 0. ]]\n",
"\n",
"descriptors: \n",
"\n",
Expand Down Expand Up @@ -209,9 +209,9 @@
"output_type": "stream",
"text": [
"Theta based on optimization:\n",
"[0.54167376 0.8405888 ]\n",
"[0.94571213 0.32500549]\n",
"Theta based on fit_regress:\n",
"[0.54166958 0.8405915 ]\n"
"[0.94571213 0.32500548]\n"
]
}
],
Expand Down Expand Up @@ -245,10 +245,10 @@
{
"data": {
"text/plain": [
"(<Figure size 144x144 with 1 Axes>,\n",
" array([[<AxesSubplot:>]], dtype=object),\n",
"(<Figure size 200x200 with 1 Axes>,\n",
" array([[<AxesSubplot: >]], dtype=object),\n",
" defaultdict(dict,\n",
" {<AxesSubplot:>: {'image': <matplotlib.image.AxesImage at 0x7fba190f22e0>}}))"
" {<AxesSubplot: >: {'image': <matplotlib.image.AxesImage at 0x17f6279d0>}}))"
]
},
"execution_count": 6,
Expand All @@ -257,19 +257,19 @@
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAHsAAAB7CAYAAABUx/9/AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8Q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CZdIt8Yc2i107Pv+Wi/zIXrz+lWTuefnb5vMrWr3Pe/mjlggOm7N6NnZWXVd9/43gxGWy2UtFou9Z0aFu91ua7Va1XQ6bbqrlv+2YRhqs9nU8fFxHRzsf4sdFS58aPw4I5JwiSRcIgmXSMIlknCJJFwi/Qmeoo0IvbUyEAAAAABJRU5ErkJggg==",
"text/plain": [
"<Figure size 144x144 with 1 Axes>"
"<Figure size 200x200 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAHsAAAB7CAYAAABUx/9/AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAAsTAAALEwEAmpwYAAACWklEQVR4nO3dsWoUURhH8f8Viy232C1i4ySNhWCVcp8ibCpLQWx9CGvxASSNgYAh3b7FTmsppE1CIGIpXgvb3anujeA5v/bCNwOHmerb2VJrjRie/Osb0OMxNoixQYwNYmwQY4M8nTpcLBZ1GIYOlx07zEzG8aD5zNnhrPnMJDm6v+8y99vDw12tdbnrbDL2MAzZbrcdbql0mJmU8rb5zKMPL5rPTJKL8/Muc19tNtf7znyNgxgbxNggxgYxNoixQYwNYmwQY4MYG8TYIMYGMTaIsUGMDWJsEGODGBvE2CDGBplcOPy7BdpjObDPjwlvXre/11+fmo9Mknx/d9Zn8Gaz98gnG8TYIMYGMTaIsUGMDWJsEGODGBvE2CDGBjE2iLFBjA1ibBBjgxgbxNggxgYxNoixQSa3S8fxoMsnIntsgSbJ8kv7rdXy8XPzmUmSn7/7zJ3gkw1ibBBjgxgbxNggxgYxNoixQYwNYmwQY4MYG8TYIMYGMTaIsUGMDWJsEGODGBtkcuFwdjjr8v/RvT4R2WM5sL5/03xmkpxeXXWZezlx5pMNYmwQY4MYG8TYIMYGMTaIsUGMDWJsEGODGBvE2CDGBjE2iLFBjA1ibBBjgxgbxN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JJuEQSLpGESyThEkm4RBIukYRLJOESSbhEEi6RhEsk4RJJuEQSLpGESyThEkm4RBIukYRLJOESSbhEEi6RLrV6sevu1tHR7eu6yz96+PTBjc/cabU18eefnjSZW1V1//4XTeaen78dfdYTl0jCJZJwiSRcIgmXSMIlknCJJFwiCZdIwiWScIkkXCIJl0jCJZJwiSRcIgmXSMIlknCJJFwiCZdIwiWScIkkXCIJl0jCJZJwiSRcIgmXSMIl0mQYhuGiQ33f13w+r/V6XbPZ7Cbu9TeTyeTGZ+5888MvTeb+8dvvTeZWVb148WuTuZfpzBOXSMIlknCJJFwiCZdIwiWScIkkXCIJl0jCJZJwiSRcIgmXSMIlknCJJFwiCZdIwiWScIkkXCIJl0jCJZJwiSRcIgmXSMIlknCJJFwiCZdIt8Yc2i107Pv+Wi/zIXrz+lWTuefnb5vMrWr3Pe/mjlggOm7N6NnZWXVd9/43gxGWy2UtFou9Z0aFu91ua7Va1XQ6bbqrlv+2YRhqs9nU8fFxHRzsf4sdFS58aPw4I5JwiSRcIgmXSMIlknCJJFwi/Qmeoo0IvbUyEAAAAABJRU5ErkJggg==",
"text/plain": [
"<Figure size 144x144 with 1 Axes>"
"<Figure size 200x200 with 1 Axes>"
]
},
"metadata": {},
Expand Down Expand Up @@ -301,9 +301,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"[0.54171328 0.84056334]\n",
"[0.94571213 0.32500549]\n",
"the used fitting function was:\n",
"<function fit_optimize at 0x7fba18bdb9d0>\n"
"<function fit_optimize at 0x153191000>\n"
]
}
],
Expand Down Expand Up @@ -338,9 +338,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"[-0.04123096 0.99914964]\n",
"[-0.04123086 0.99914965]\n",
"[-0.04122998 0.99914968]\n"
"[ 0.996767 -0.08034645]\n",
"[ 0.996767 -0.08034645]\n",
"[ 0.996767 -0.08034647]\n"
]
}
],
Expand Down Expand Up @@ -378,13 +378,13 @@
"output_type": "stream",
"text": [
"The average correlation for the correlation parameters is:\n",
"0.20919570220266936\n",
"0.0890392385172882\n",
"The average correlation for the cosine similarity parameters is:\n",
"0.1648685520549055\n",
"0.06085602619789239\n",
"The average cosine similarity for the correlation parameters is:\n",
"0.9609090694876308\n",
"0.9649654254976477\n",
"The average cosine similarity for the cosine similarity parameters is:\n",
"0.9712386973494105\n"
"0.9721299166013238\n"
]
}
],
Expand Down Expand Up @@ -432,7 +432,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "env",
"language": "python",
"name": "python3"
},
Expand All @@ -446,7 +446,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.10.4"
},
"vscode": {
"interpreter": {
"hash": "af6f0c1be22da210ce14b764d3d407b4e31df46360687c396ac7d1fbf0a9a76f"
}
}
},
"nbformat": 4,
Expand Down
17 changes: 11 additions & 6 deletions demos/demo_rdm_comparison_scatterplot.ipynb

Large diffs are not rendered by default.

226 changes: 95 additions & 131 deletions demos/demo_rdm_visualisation_92images.ipynb

Large diffs are not rendered by default.

155 changes: 78 additions & 77 deletions demos/demo_temporal.ipynb

Large diffs are not rendered by default.

Binary file modified demos/temp_rdm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand All @@ -94,7 +94,9 @@
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = dict(
extra_nav_links={f'version: {release}': ''}
)

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
2 changes: 1 addition & 1 deletion docs/source/rsatoolbox.rdm.pairs.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rsatoolbox.rdm.pairs module
==========================
===========================

.. automodule:: rsatoolbox.rdm.pairs
:members:
Expand Down
7 changes: 0 additions & 7 deletions docs/source/rsatoolbox.vis.mds_plot.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/source/rsatoolbox.vis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Submodules

rsatoolbox.vis.colors
rsatoolbox.vis.icon
rsatoolbox.vis.mds_plot
rsatoolbox.vis.model_plot
rsatoolbox.vis.rdm_plot
rsatoolbox.vis.scatter_plot

Module contents
---------------
Expand Down
7 changes: 7 additions & 0 deletions docs/source/rsatoolbox.vis.scatter_plot.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rsatoolbox.vis.scatter\_plot module
===================================

.. automodule:: rsatoolbox.vis.scatter_plot
:members:
:undoc-members:
:show-inheritance:
26 changes: 18 additions & 8 deletions docs/source/visualization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,30 @@ Visualization
Plotting RDMs
-------------

The main function for showing RDMs is ``rsatoolbox.vis.show_rdm``. It is illustrated in :doc:`demo_rdm_vis`. It allows relatively detailed plotting of RDMs
It takes a RDMs object as the main input.
The main function for showing RDMs is :func:`rsatoolbox.vis.rdm_plot.show_rdm`.
It is illustrated in :doc:`demo_rdm_vis`. It allows relatively detailed
plotting of both individual RDMs, as well as combined figures with
multiple RDMs.


Multidimensional Scaling
------------------------
Scatter plots
-------------

Sometimes it may be helpful to display an RDM using a two-dimensional
scatter plot. This requires that the multi-dimensional structure of the RDM
is reduced. RSAtoolbox offers various functions for making such plots:

To be documented.
- :func:`show_MDS <rsatoolbox.vis.scatter_plot.show_MDS>`
- :func:`show_tSNE <rsatoolbox.vis.scatter_plot.show_tSNE>`
- :func:`show_iso <rsatoolbox.vis.scatter_plot.show_iso>`

.. _model plot:

Ploting model evaluations
-------------------------

Results objects can be plotted into the typical bar plot of model evaluations using the ``rsatoolbox.vis.plot_model_comparison``.
It takes a :doc:`Result object<Results objects>` as input and does all necessary inferences based on the uncertainties stored in the results object.
It provides many options for changing the layout and the inferences performed.
Results objects can be plotted into the typical bar plot of model evaluations
using ``rsatoolbox.vis.plot_model_comparison``. It takes
a :ref:`Result object <result_object>` as input and does all necessary
inferences based on the uncertainties stored in the results object. It
provides many options for changing the layout and the inferences performed.
Loading

0 comments on commit 4533965

Please sign in to comment.