diff --git a/docs/tutorials/align.rst b/docs/tutorials/align.rst index 59c43bcb..b39308de 100644 --- a/docs/tutorials/align.rst +++ b/docs/tutorials/align.rst @@ -21,6 +21,8 @@ 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 ----------------- @@ -28,7 +30,7 @@ Import Hypertools import hypertools as hyp import numpy as np - + %matplotlib inline Load your data @@ -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, :]]) @@ -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, :]]) @@ -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 - diff --git a/docs/tutorials/align_files/alignment.png b/docs/tutorials/align_files/alignment.png new file mode 100644 index 00000000..2d4dfafe Binary files /dev/null and b/docs/tutorials/align_files/alignment.png differ diff --git a/docs/tutorials/cluster.rst b/docs/tutorials/cluster.rst index a0dd1c00..413f7bdc 100644 --- a/docs/tutorials/cluster.rst +++ b/docs/tutorials/cluster.rst @@ -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}) diff --git a/docs/tutorials/cluster_files/cluster_20_0.png b/docs/tutorials/cluster_files/cluster_20_0.png index 61888a00..245e2005 100644 Binary files a/docs/tutorials/cluster_files/cluster_20_0.png and b/docs/tutorials/cluster_files/cluster_20_0.png differ diff --git a/docs/tutorials/geo.rst b/docs/tutorials/geo.rst index 22a57361..040fa6f4 100644 --- a/docs/tutorials/geo.rst +++ b/docs/tutorials/geo.rst @@ -381,7 +381,7 @@ respectively. .. parsed-literal:: - + @@ -413,7 +413,7 @@ First, let's plot without making any changes. .. parsed-literal:: - + @@ -436,7 +436,7 @@ specified by the reduce model set to 2. .. parsed-literal:: - + diff --git a/docs/tutorials/normalize_files/normalize_13_0.png b/docs/tutorials/normalize_files/normalize_13_0.png index 9b657c91..424fbfd2 100644 Binary files a/docs/tutorials/normalize_files/normalize_13_0.png and b/docs/tutorials/normalize_files/normalize_13_0.png differ diff --git a/docs/tutorials/normalize_files/normalize_16_0.png b/docs/tutorials/normalize_files/normalize_16_0.png index 114798a2..38b2b251 100644 Binary files a/docs/tutorials/normalize_files/normalize_16_0.png and b/docs/tutorials/normalize_files/normalize_16_0.png differ diff --git a/docs/tutorials/normalize_files/normalize_18_0.png b/docs/tutorials/normalize_files/normalize_18_0.png index ea2b1034..1a18260a 100644 Binary files a/docs/tutorials/normalize_files/normalize_18_0.png and b/docs/tutorials/normalize_files/normalize_18_0.png differ diff --git a/docs/tutorials/normalize_files/normalize_8_0.png b/docs/tutorials/normalize_files/normalize_8_0.png index 606772d7..e7009be9 100644 Binary files a/docs/tutorials/normalize_files/normalize_8_0.png and b/docs/tutorials/normalize_files/normalize_8_0.png differ diff --git a/docs/tutorials/plot_files/plot_22_0.png b/docs/tutorials/plot_files/plot_22_0.png index cf25e385..73056790 100644 Binary files a/docs/tutorials/plot_files/plot_22_0.png and b/docs/tutorials/plot_files/plot_22_0.png differ diff --git a/docs/tutorials/plot_files/plot_31_1.png b/docs/tutorials/plot_files/plot_31_1.png index edbdac3c..b522ea0a 100644 Binary files a/docs/tutorials/plot_files/plot_31_1.png and b/docs/tutorials/plot_files/plot_31_1.png differ diff --git a/docs/tutorials/plot_files/plot_37_0.png b/docs/tutorials/plot_files/plot_37_0.png index 22039ec9..e5f4345d 100644 Binary files a/docs/tutorials/plot_files/plot_37_0.png and b/docs/tutorials/plot_files/plot_37_0.png differ diff --git a/docs/tutorials/plot_files/plot_43_0.png b/docs/tutorials/plot_files/plot_43_0.png index 55009b66..0499a1e1 100644 Binary files a/docs/tutorials/plot_files/plot_43_0.png and b/docs/tutorials/plot_files/plot_43_0.png differ