Skip to content

Commit

Permalink
version increase; documentation example updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hkraemer committed Jan 19, 2021
1 parent 08c083b commit 7f9704a
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ it is well documented and embedded in the
`DynamicalSystems.jl <https://juliadynamics.github.io/DynamicalSystems.jl/dev/>`_ ecosystem.
For instance, the compuations made in the `Univariate example <https://hkraemer.github.io/PECUZAL_python/univariate_example.html>`_
and the `Multivariate example <https://hkraemer.github.io/PECUZAL_python/multivariate_example.html>`_
in this documentation took approximately `1500s` (approx. 25 mins) and `7500s` (approx. 2 hours!), respectively. In the Julia implementation
the exact same computation took `3s` and `20s`, respectively! (running on a 2.8GHz Quad-Core i7, 16GB 1600 MHz DDR3)
in this documentation took approximately `800s` (approx. 13 mins) and `7500s` (approx. 1 hour and 10 mins!), respectively, even when
using the `econ` option in the function call, for a In the Julia implementation
the exact same computation took `4s` and `25s`, respectively! (running on a 2.8GHz Quad-Core i7, 16GB 1600 MHz DDR3)


Documentation
Expand Down
13 changes: 8 additions & 5 deletions docs/compute_documentation_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from scipy.integrate import odeint

import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
from pecuzal_embedding import pecuzal_embedding, mi

# integrate Roessler system on standard parameters
Expand Down Expand Up @@ -49,7 +50,7 @@ def roessler(x,t):
plt.subplots_adjust(hspace=.3)
plt.savefig('mi_and_timeseries_y_comp.png')

Y_reconstruct, tau_vals, ts_vals, Ls, eps = pecuzal_embedding(y, taus = range(100), theiler = 7)
Y_reconstruct, tau_vals, ts_vals, Ls, eps = pecuzal_embedding(y, taus = range(100), theiler = 7, econ = True)

fig = plt.figure(figsize=(14., 8.))
ax = plt.subplot(121, projection='3d')
Expand Down Expand Up @@ -86,6 +87,8 @@ def roessler(x,t):
plt.savefig('continuity_univariate.png')

print(Ls)
L_total_uni = np.sum(Ls)
print(L_total_uni)


## Multivariate example
Expand Down Expand Up @@ -119,14 +122,14 @@ def roessler(x,t):
plt.subplots_adjust(hspace=.3)
plt.savefig('mi_and_timeseries_multi.png')

Y_reconstruct, tau_vals, ts_vals, Ls, eps = pecuzal_embedding(data, taus = range(100), theiler = 7)
Y_reconstruct, tau_vals, ts_vals, Ls, eps = pecuzal_embedding(data, taus = range(100), theiler = 7, econ = True)

print(tau_vals)
print(ts_vals)

print(Ls)
L_total = np.sum(Ls[:-1])
print(L_total)
L_total_multi = np.sum(Ls)
print(L_total_multi)

ts_labels = ['x','y','z']

Expand Down Expand Up @@ -173,4 +176,4 @@ def ar_process(u0, alpha, p, N):
plt.grid()
plt.savefig('ar_ts.png')

Y_reconstruct, tau_vals, ts_vals, Ls, eps = pecuzal_embedding(data)
Y_reconstruct, tau_vals, ts_vals, Ls, eps = pecuzal_embedding(data, econ = True)
4 changes: 0 additions & 4 deletions docs/source/README.md

This file was deleted.

Binary file modified docs/source/images/ar_ts.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/source/images/continuity_univariate.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/source/images/mi_and_timeseries_multi.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/source/images/mi_and_timeseries_y_comp.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/source/images/reconstruction_multi.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/source/images/reconstruction_y_comp.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 setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pecuzal_embedding",
version="1.2.1",
version="1.3.0",
author="K.H.Kraemer",
author_email="[email protected]",
description="PECUZAL automatic embedding of uni- and multivariate time series",
Expand Down
Binary file modified src/__pycache__/pecuzal_embedding.cpython-37.pyc
Binary file not shown.

0 comments on commit 7f9704a

Please sign in to comment.