.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_analyze.py: ============================= Analyze data and then plot ============================= This example demonstrates how to use the `analyze` function to process data prior to plotting. The data is a list of numpy arrays representing multi-voxel activity patterns (columns) over time (rows). First, analyze function normalizes the columns of each matrix (within each matrix). Then the data is reduced using PCA (10 dims) and finally it is aligned with hyperalignment. We can then plot the data with hyp.plot, which further reduces it so that it can be visualized. .. code-block:: default # Code source: Andrew Heusser # License: MIT # load hypertools import hypertools as hyp # load the data geo = hyp.load('weights') data = geo.get_data() # process the data data = hyp.analyze(data, normalize='within', reduce='PCA', ndims=10, align='hyper') # plot it hyp.plot(data) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_analyze.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: analyze.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: analyze.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_