Skip to content

Commit

Permalink
Merge pull request #168 from ContextLab/expose_format_data
Browse files Browse the repository at this point in the history
Expose format data
  • Loading branch information
andrewheusser authored Nov 19, 2017
2 parents aed7808 + ea1e14f commit 640745b
Show file tree
Hide file tree
Showing 116 changed files with 1,020 additions and 260 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ dist/
.tox/
*.bak
tox.ini
.vscode/
.vscode/
\.idea/
Binary file modified docs/_build/doctrees/api.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/animate.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/index.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_clusters.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_describe.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_digits.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_group.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_labels.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_legend.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_missing_data.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_normalize.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/precog.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.align.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.cluster.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.normalize.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.plot.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.reduce.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.tools.align.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.tools.cluster.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.tools.describe_pca.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.tools.df2mat.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.tools.missing_inds.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/hypertools.tools.reduce.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/_downloads/animate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"source": [
"\n# Hyperalign a list of arrays and create an animated plot\n\n\nThe sample data is a list of 2D arrays, where each array is fMRI brain activity\nfrom one subject. The rows are timepoints and the columns are neural\n'features'. First, the matrices are hyperaligned using hyp.tools.align.\n\n"
"\n# Hyperalign a list of arrays and create an animated plot\n\n\nThe sample data is a list of 2D arrays, where each array is fMRI brain activity\nfrom one subject. The rows are timepoints and the columns are neural\n'features'. First, the matrices are hyperaligned using hyp.align. Then, the data\nare split into 2 groups of 18. and averaged. Finally the aligned data is plotted.\n\n"
],
"cell_type": "markdown",
"metadata": {}
Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/_downloads/animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
The sample data is a list of 2D arrays, where each array is fMRI brain activity
from one subject. The rows are timepoints and the columns are neural
'features'. First, the matrices are hyperaligned using hyp.tools.align.
'features'. First, the matrices are hyperaligned using hyp.align. Then, the data
are split into 2 groups of 18. and averaged. Finally the aligned data is plotted.
"""

# Code source: Andrew Heusser
Expand Down
Binary file modified docs/_build/html/_downloads/auto_examples_jupyter.zip
Binary file not shown.
Binary file modified docs/_build/html/_downloads/auto_examples_python.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/_downloads/plot_clusters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"source": [
"\n# Discovering clusters\n\n\nThe `n_clusters` kwarg can be used to discover clusters in your dataset. It\nrelies on scikit-learn's implementation of k-mean clustering to fin clusters,\nand then labels the points accordingly. You must set the number of clusters\nyourself.\n\n"
"\n# Discovering clusters\n\n\nThe `n_clusters` kwarg can be used to discover clusters in your dataset. It\nrelies on scikit-learn's implementation of k-mean clustering to find clusters,\nand then labels the points accordingly. You must set the number of clusters\nyourself.\n\n"
],
"cell_type": "markdown",
"metadata": {}
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/_downloads/plot_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
=============================
The `n_clusters` kwarg can be used to discover clusters in your dataset. It
relies on scikit-learn's implementation of k-mean clustering to fin clusters,
relies on scikit-learn's implementation of k-mean clustering to find clusters,
and then labels the points accordingly. You must set the number of clusters
yourself.
"""
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/_downloads/plot_describe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"source": [
"\n# Using describe_pca to evaluate the integrity of your visualization\n\n\nThe downside to using PCA to visualize your data is that some variance will\nlikely be removed. To help get a sense for the integrity of your low\ndimensional visualizations, we built the `describe_pca` function, which computes\nthe covariance (samples by samples) of both the raw and reduced datasets, and\nplots their correlation. The function repeats this analysis from 2:N dimensions\nuntil the correlation reaches a local maximum. Often times this will be less\nthan the total number of dimensions because the PCA model is whitened.\n\n"
"\n# Using describe_pca to evaluate the integrity of your visualization\n\n\nThe downside to using dimensionality reduction to visualize your data is that\nsome variance will likely be removed. To help get a sense for the integrity of your low\ndimensional visualizations, we built the `describe` function, which computes\nthe covariance (samples by samples) of both the raw and reduced datasets, and\nplots their correlation.\n\n"
],
"cell_type": "markdown",
"metadata": {}
Expand Down
10 changes: 4 additions & 6 deletions docs/_build/html/_downloads/plot_describe.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
Using describe_pca to evaluate the integrity of your visualization
=============================
The downside to using PCA to visualize your data is that some variance will
likely be removed. To help get a sense for the integrity of your low
dimensional visualizations, we built the `describe_pca` function, which computes
The downside to using dimensionality reduction to visualize your data is that
some variance will likely be removed. To help get a sense for the integrity of your low
dimensional visualizations, we built the `describe` function, which computes
the covariance (samples by samples) of both the raw and reduced datasets, and
plots their correlation. The function repeats this analysis from 2:N dimensions
until the correlation reaches a local maximum. Often times this will be less
than the total number of dimensions because the PCA model is whitened.
plots their correlation.
"""

# Code source: Andrew Heusser
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/_downloads/plot_normalize.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"source": [
"\n# Normalizing your features\n\n\nOften times its useful to normalize (z-score) you features before plotting, so\nthat they are on the same scale. Otherwise, some features will be weighted more\nheavily than others when doing PCA, and that may or may not be what you want.\nThe `normalize` kwarg can be passed to the plot function. If `normalize` is\nset to 'across', the zscore will be computed for the column across all of the\nlists passed. Conversely, if `normalize` is set to 'within', the z-score will\nbe computed separately for each column in each list. Finally, if `normalize` is\nset to 'row', each row of the matrix will be zscored. Alternative, you can use\nthe normalize function found in tools (see the third example).\n\n"
"\n# Normalizing your features\n\n\nOften times its useful to normalize (z-score) you features before plotting, so\nthat they are on the same scale. Otherwise, some features will be weighted more\nheavily than others when doing PCA, and that may or may not be what you want.\nThe `normalize` kwarg can be passed to the plot function. If `normalize` is\nset to 'across', the zscore will be computed for the column across all of the\nlists passed. Conversely, if `normalize` is set to 'within', the z-score will\nbe computed separately for each column in each list. Finally, if `normalize` is\nset to 'row', each row of the matrix will be zscored. Alternatively, you can use\nthe normalize function found in tools (see the third example).\n\n"
],
"cell_type": "markdown",
"metadata": {}
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/_downloads/plot_normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
set to 'across', the zscore will be computed for the column across all of the
lists passed. Conversely, if `normalize` is set to 'within', the z-score will
be computed separately for each column in each list. Finally, if `normalize` is
set to 'row', each row of the matrix will be zscored. Alternative, you can use
set to 'row', each row of the matrix will be zscored. Alternatively, you can use
the normalize function found in tools (see the third example).
"""

Expand Down
Binary file modified docs/_build/html/_images/sphx_glr_plot_clusters_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build/html/_images/sphx_glr_plot_clusters_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build/html/_images/sphx_glr_plot_normalize_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build/html/_images/sphx_glr_plot_normalize_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build/html/_images/sphx_glr_plot_normalize_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build/html/_images/sphx_glr_plot_normalize_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 640745b

Please sign in to comment.