Skip to content

Commit

Permalink
Github action: auto-update.
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 23, 2024
1 parent 6ecef3f commit aa03212
Show file tree
Hide file tree
Showing 66 changed files with 218 additions and 218 deletions.
Binary file not shown.
Binary file modified dev/_downloads/31ebe5f65fa406fbccca74ea8deb8a69/plot_IL2.zip
Binary file not shown.
Binary file modified dev/_downloads/3ca037908294af324764e4c88851b187/plot_covid.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified dev/_downloads/e2b69b698c4b4f8baba0fd4e55bfc00c/plot_tensor.zip
Binary file not shown.
Binary file not shown.
Binary file modified dev/_images/sphx_glr_plot_cp_line_search_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 dev/_images/sphx_glr_plot_cp_line_search_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 dev/_images/sphx_glr_plot_guide_for_constrained_cp_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 dev/_images/sphx_glr_plot_guide_for_constrained_cp_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 dev/_images/sphx_glr_plot_guide_for_constrained_cp_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 dev/_images/sphx_glr_plot_guide_for_constrained_cp_004.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 dev/_images/sphx_glr_plot_guide_for_constrained_cp_005.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 dev/_images/sphx_glr_plot_guide_for_constrained_cp_006.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 dev/_images/sphx_glr_plot_guide_for_constrained_cp_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 dev/_images/sphx_glr_plot_image_compression_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 dev/_images/sphx_glr_plot_image_compression_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 dev/_images/sphx_glr_plot_nn_cp_hals_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 dev/_images/sphx_glr_plot_nn_cp_hals_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 dev/_images/sphx_glr_plot_nn_tucker_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 dev/_images/sphx_glr_plot_nn_tucker_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 dev/_images/sphx_glr_plot_permute_factors_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 dev/_images/sphx_glr_plot_permute_factors_thumb.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 dev/_modules/tensorly/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ <h1>Source code for tensorly.base</h1><div class="highlight"><pre>
<span class="n">new_shape</span> <span class="o">=</span> <span class="p">[</span><span class="n">tensor</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">skip_begin</span><span class="p">)]</span> <span class="o">+</span> <span class="n">new_shape</span>

<span class="k">if</span> <span class="n">skip_end</span><span class="p">:</span>
<span class="n">new_shape</span> <span class="o">+=</span> <span class="p">[</span><span class="n">tensor</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="o">-</span><span class="n">i</span><span class="p">]</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span> <span class="o">+</span> <span class="n">skip_end</span><span class="p">)]</span>
<span class="n">new_shape</span> <span class="o">+=</span> <span class="p">[</span><span class="n">tensor</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="o">-</span><span class="n">i</span><span class="p">]</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">skip_end</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="p">)]</span>

<span class="k">return</span> <span class="n">tl</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="n">tl</span><span class="o">.</span><span class="n">moveaxis</span><span class="p">(</span><span class="n">tensor</span><span class="p">,</span> <span class="n">mode</span> <span class="o">+</span> <span class="n">skip_begin</span><span class="p">,</span> <span class="n">skip_begin</span><span class="p">),</span> <span class="n">new_shape</span><span class="p">)</span></div>

Expand Down
2 changes: 1 addition & 1 deletion dev/_sources/auto_examples/applications/plot_IL2.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ affect IL-2 signaling in immune cells.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.335 seconds)
**Total running time of the script:** (0 minutes 1.325 seconds)


.. _sphx_glr_download_auto_examples_applications_plot_IL2.py:
Expand Down
4 changes: 2 additions & 2 deletions dev/_sources/auto_examples/applications/plot_covid.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ how each component looks like on weights.
/home/runner/work/tensorly/tensorly/examples/applications/plot_covid.py:116: MatplotlibDeprecationWarning: Unable to determine Axes to steal space for Colorbar. Using gca(), but will raise in the future. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.
fig2.colorbar(ScalarMappable(norm=plt.Normalize(-1, 1), cmap="PiYG"))
<matplotlib.colorbar.Colorbar object at 0x7f5fd1f5d1c0>
<matplotlib.colorbar.Colorbar object at 0x7f3e359b9970>
Expand All @@ -244,7 +244,7 @@ References

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 3.281 seconds)
**Total running time of the script:** (0 minutes 3.387 seconds)


.. _sphx_glr_download_auto_examples_applications_plot_covid.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Example on how to use :func:`tensorly.decomposition.parafac` and :func:`tensorly
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.493 seconds)
**Total running time of the script:** (0 minutes 1.496 seconds)


.. _sphx_glr_download_auto_examples_applications_plot_image_compression.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Computation times
=================
**00:06.109** total execution time for 3 files **from auto_examples/applications**:
**00:06.208** total execution time for 3 files **from auto_examples/applications**:

.. container::

Expand All @@ -33,11 +33,11 @@ Computation times
- Time
- Mem (MB)
* - :ref:`sphx_glr_auto_examples_applications_plot_covid.py` (``plot_covid.py``)
- 00:03.281
- 00:03.387
- 0.0
* - :ref:`sphx_glr_auto_examples_applications_plot_image_compression.py` (``plot_image_compression.py``)
- 00:01.493
- 00:01.496
- 0.0
* - :ref:`sphx_glr_auto_examples_applications_plot_IL2.py` (``plot_IL2.py``)
- 00:01.335
- 00:01.325
- 0.0
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Example on how to use :func:`tensorly.decomposition.parafac` with line search to
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 3.486 seconds)
**Total running time of the script:** (0 minutes 3.419 seconds)


.. _sphx_glr_download_auto_examples_decomposition_plot_cp_line_search.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,21 +240,21 @@ a python dictionary:
.. code-block:: none
1. factor
[[5.03 0.81 1.35]
[4.88 0.6 1.17]
[3.99 0. 0. ]
[4.56 1.18 0. ]
[4.75 1.14 0.22]
[4.96 0.87 1.09]]
[[3.13 1.79 2.61]
[5.06 0.47 0. ]
[4.57 1.29 1.77]
[4.47 0.59 0. ]
[3.95 1.42 1.89]
[4.48 0.97 0.93]]
2. factor
[[ 0.41 -0.37 -0.57]
[ 0.34 -0.18 0.04]
[ 0.29 0.29 -0.27]
[ 0.51 -1.21 0.11]
[ 0.47 -0.48 -0.51]
[ 0.38 0.08 -0.64]
[ 0.35 0. -0.08]
[ 0.38 0.01 -0.51]]
[[ 0.32 0. 0.23]
[ 0.19 1.32 -0.8 ]
[ 0.31 -0.14 0.22]
[ 0.24 0.8 -0.46]
[ 0.1 0.85 -0.28]
[ 0.36 -0.23 0.22]
[ 0.22 0.72 -0.26]
[ 0.59 -1.24 0.72]]
Expand Down Expand Up @@ -366,32 +366,32 @@ only `True` depending on the selected constraint.
.. code-block:: none
1. factor
[[ 43.48 1.8 -1.64]
[ 42.58 1.42 -4.43]
[ 38.74 -43.25 -19.12]
[ 29.06 -25.46 -31.55]
[ 33.54 -66.9 -32.01]
[ 40.16 12.7 -7.38]]
[[ 18.01 18.19 -31.5 ]
[ 29.39 -20.7 17.99]
[ 25.88 22.04 -18. ]
[ 27.37 -27.54 18.35]
[ 24.12 2.3 -9.01]
[ 26.84 -4.37 2.46]]
2. factor
[[0.36 0.06 0.19]
[0.34 0. 0.42]
[0.29 0. 0.73]
[0.42 0. 0. ]
[0.39 0. 0.38]
[0.35 0. 0.5 ]
[0.38 1.98 0.91]
[0.32 0.63 0.87]]
[[0.41 0.01 0.79]
[0.4 0.57 0. ]
[0.35 0. 0.36]
[0.38 0.14 0. ]
[0.31 0.71 0.86]
[0.36 0.26 0.39]
[0.39 1.56 1.2 ]
[0.39 0. 0.32]]
3. factor
[[ 0.03 -0. -0. ]
[ 0.03 0.01 -0.02]
[ 0.03 -0. -0.01]
[ 0.02 0.01 -0.03]
[ 0.03 0. -0.01]
[ 0.02 0.01 -0.02]
[ 0.04 -0. -0.01]
[ 0.04 0. -0. ]
[ 0.03 0. -0.01]
[ 0.04 -0. -0. ]]
[[ 0.05 0. -0. ]
[ 0.04 -0.01 -0. ]
[ 0.04 -0.02 -0.03]
[ 0.05 -0. -0.01]
[ 0.05 -0.02 -0.02]
[ 0.05 0. -0.01]
[ 0.05 -0.01 -0.02]
[ 0.06 0.02 0.01]
[ 0.05 0.01 0. ]
[ 0.05 -0.01 -0.01]]
Expand All @@ -417,7 +417,7 @@ IEEE Transactions on Signal Processing 64.19 (2016): 5052-5065.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 2.965 seconds)
**Total running time of the script:** (0 minutes 2.938 seconds)


.. _sphx_glr_download_auto_examples_decomposition_plot_guide_for_constrained_cp.py:
Expand Down
28 changes: 14 additions & 14 deletions dev/_sources/auto_examples/decomposition/plot_nn_cp_hals.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ the case but the approximation is quite coarse.
.. code-block:: none
reconstructed tensor
[[[8289.61 8115.96]
[8594.8 8172.87]]
[[[8235.87 8286.18]
[8279.36 8329.65]]
[[9000.99 9158.13]
[9174.77 8973.56]]]
[[9035.42 9041.58]
[9066.47 9066.45]]]
input data tensor
[[[8210. 8211.]
Expand Down Expand Up @@ -224,11 +224,11 @@ Again, we can look at the reconstructed tensor entries.
.. code-block:: none
reconstructed tensor
[[[8211.37 8212.33]
[8231.38 8232.25]]
[[[8210.21 8208.97]
[8230.22 8229.08]]
[[9011.23 9012.23]
[9031.25 9032.16]]]
[[9010.22 9009.08]
[9030.23 9029.19]]]
input data tensor
[[[8210. 8211.]
Expand Down Expand Up @@ -296,8 +296,8 @@ First comparison option is processing time for each algorithm:
.. code-block:: none
0.04 seconds
0.69 seconds
234.12 seconds
0.81 seconds
147.32 seconds
Expand Down Expand Up @@ -331,9 +331,9 @@ In Tensorly, we provide a function to calculate Root Mean Square Error (RMSE):

.. code-block:: none
250.96066
3.0773168
2.2100787
213.86214
6.2953353
1.5346013
Expand Down Expand Up @@ -397,7 +397,7 @@ Neural computation, 24(4), 1085-1105. (Link)

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (3 minutes 54.921 seconds)
**Total running time of the script:** (2 minutes 28.243 seconds)


.. _sphx_glr_download_auto_examples_decomposition_plot_nn_cp_hals.py:
Expand Down
12 changes: 6 additions & 6 deletions dev/_sources/auto_examples/decomposition/plot_nn_tucker.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ processing time:
.. code-block:: none
time for tensorly nntucker: 0.08
time for HALS with fista: 4.07
time for HALS with as: 3.24
time for HALS with fista: 4.02
time for HALS with as: 3.27
Expand Down Expand Up @@ -246,9 +246,9 @@ to compute Root Mean Square Error (RMSE):

.. code-block:: none
RMSE tensorly nntucker: 286.4050335395595
RMSE for hals with fista: 282.0531226500528
RMSE for hals with as: 281.21791381693714
RMSE tensorly nntucker: 288.0124458865352
RMSE for hals with fista: 283.4816869093704
RMSE for hals with as: 282.50933255306825
Expand Down Expand Up @@ -312,7 +312,7 @@ Neural computation, 24(4), 1085-1105.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 7.469 seconds)
**Total running time of the script:** (0 minutes 7.432 seconds)


.. _sphx_glr_download_auto_examples_decomposition_plot_nn_tucker.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Visualize the components
.. code-block:: none
<matplotlib.legend.Legend object at 0x7f5fd84470b0>
<matplotlib.legend.Legend object at 0x7f3e35b93e90>
Expand Down Expand Up @@ -436,7 +436,7 @@ A direct fitting algorithm for the PARAFAC2 model.*

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 7.065 seconds)
**Total running time of the script:** (0 minutes 7.017 seconds)


.. _sphx_glr_download_auto_examples_decomposition_plot_parafac2.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ with the lowest reconstruction error.
.. code-block:: none
Fitting PARAFAC2 model without compression...
It took 197.4s to fit a PARAFAC2 model a tensor of shape (10, 10000, 15) without compression
It took 195.6s to fit a PARAFAC2 model a tensor of shape (10, 10000, 15) without compression
Expand Down Expand Up @@ -218,8 +218,8 @@ we just need to perform the compression once for the whole grid search as well.
.. code-block:: none
Fitting PARAFAC2 model with SVD compression...
It took 106.7s to fit a PARAFAC2 model a tensor of shape (10, 10000, 15) with lossless SVD compression
The compression took 0.0s and the fitting took 106.6s
It took 105.2s to fit a PARAFAC2 model a tensor of shape (10, 10000, 15) with lossless SVD compression
The compression took 0.0s and the fitting took 105.2s
Expand Down Expand Up @@ -280,8 +280,8 @@ removing the parts of the data matrices that have a very low "signal strength".
.. code-block:: none
Fitting PARAFAC2 model with lossy SVD compression...
It took 106.2s to fit a PARAFAC2 model a tensor of shape (10, 10000, 15) with lossy SVD compression
Of which the compression took 0.0s and the fitting took 106.2s
It took 103.9s to fit a PARAFAC2 model a tensor of shape (10, 10000, 15) with lossy SVD compression
Of which the compression took 0.0s and the fitting took 103.9s
Expand Down Expand Up @@ -359,7 +359,7 @@ Again, we start by fitting without compression as a baseline.
.. code-block:: none
Fitting PARAFAC2 model without compression...
It took 251.5s to fit a PARAFAC2 model a tensor of shape (10, 2000, 2000) without compression
It took 253.6s to fit a PARAFAC2 model a tensor of shape (10, 2000, 2000) without compression
Expand Down Expand Up @@ -413,8 +413,8 @@ Next, we fit with lossless compression.
.. code-block:: none
Fitting PARAFAC2 model with SVD compression...
It took 331.3s to fit a PARAFAC2 model a tensor of shape (10, 2000, 2000) with lossless SVD compression
Of which the compression took 0.0s and the fitting took 331.3s
It took 335.3s to fit a PARAFAC2 model a tensor of shape (10, 2000, 2000) with lossless SVD compression
Of which the compression took 0.0s and the fitting took 335.3s
Expand Down Expand Up @@ -475,8 +475,8 @@ Finally, we fit with lossy SVD compression.
.. code-block:: none
Fitting PARAFAC2 model with lossy SVD compression...
It took 105.2s to fit a PARAFAC2 model a tensor of shape (10, 2000, 2000) with lossy SVD compression
Of which the compression took 13.1s and the fitting took 92.0s
It took 103.2s to fit a PARAFAC2 model a tensor of shape (10, 2000, 2000) with lossy SVD compression
Of which the compression took 12.9s and the fitting took 90.3s
Expand All @@ -492,7 +492,7 @@ PARAFAC2.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (18 minutes 19.511 seconds)
**Total running time of the script:** (18 minutes 18.116 seconds)


.. _sphx_glr_download_auto_examples_decomposition_plot_parafac2_compression.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ before and after permuting.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.158 seconds)
**Total running time of the script:** (0 minutes 0.152 seconds)


.. _sphx_glr_download_auto_examples_decomposition_plot_permute_factors.py:
Expand Down
Loading

0 comments on commit aa03212

Please sign in to comment.