Skip to content

Commit

Permalink
added alignment.png to align_files folder
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheusser committed Dec 11, 2017
1 parent e57889a commit aba8574
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 11 deletions.
15 changes: 8 additions & 7 deletions docs/tutorials/align.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ three distinct datasets. Each has a similar shape (an S), but are scaled
and rotated differently. Aligning these datasets finds the
transformation that minimizes the distance between them.

.. image:: align_files/alignment.png

Import Hypertools
-----------------

.. code:: ipython3
import hypertools as hyp
import numpy as np
%matplotlib inline
Load your data
Expand Down Expand Up @@ -61,7 +63,7 @@ the weights data look when plotted together.
# average into two groups
group1 = np.mean(data[:17], 0)
group2 = np.mean(data[18:], 0)
# plot
geo = hyp.plot([group1[:100, :], group2[:100, :]])
Expand All @@ -81,11 +83,11 @@ more similar to each other.
.. code:: ipython3
aligned_data = hyp.align(data)
# average into two groups
group1 = np.mean(aligned_data[:17], 0)
group2 = np.mean(aligned_data[18:], 0)
# plot
geo = hyp.plot([group1[:100, :], group2[:100, :]])
Expand All @@ -103,15 +105,14 @@ to 'SRM'.
.. code:: ipython3
aligned_data = hyp.align(data, align='SRM')
# average into two groups
group1 = np.mean(aligned_data[:17], 0)
group2 = np.mean(aligned_data[18:], 0)
# plot
geo = hyp.plot([group1[:100, :], group2[:100, :]])
.. image:: align_files/align_15_0.png

Binary file added docs/tutorials/align_files/alignment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/tutorials/cluster.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ We can further examine the number of datapoints assigned each label.
.. parsed-literal::
Counter({0: 5024, 1: 1768, 2: 1332})
Counter({0: 1768, 1: 5024, 2: 1332})
Expand Down
Binary file modified docs/tutorials/cluster_files/cluster_20_0.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: 3 additions & 3 deletions docs/tutorials/geo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ respectively.
.. parsed-literal::
<matplotlib.axes._subplots.Axes3DSubplot at 0x117f8df98>
<matplotlib.axes._subplots.Axes3DSubplot at 0x10b115710>
Expand Down Expand Up @@ -413,7 +413,7 @@ First, let's plot without making any changes.

.. parsed-literal::
<hypertools.datageometry.DataGeometry at 0x1184c1080>
<hypertools.datageometry.DataGeometry at 0x10b4d8048>
Expand All @@ -436,7 +436,7 @@ specified by the reduce model set to 2.

.. parsed-literal::
<hypertools.datageometry.DataGeometry at 0x1184a6b70>
<hypertools.datageometry.DataGeometry at 0x10ba49d30>
Expand Down
Binary file modified docs/tutorials/normalize_files/normalize_13_0.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/tutorials/normalize_files/normalize_16_0.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/tutorials/normalize_files/normalize_18_0.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/tutorials/normalize_files/normalize_8_0.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/tutorials/plot_files/plot_22_0.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/tutorials/plot_files/plot_31_1.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/tutorials/plot_files/plot_37_0.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/tutorials/plot_files/plot_43_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aba8574

Please sign in to comment.