Git Product home page Git Product logo

tdatools's Introduction

TDATools

Set of tools created in order to perform some Topological Data Analysis on a point cloud or a time serie with Python 3.6.

Packages

Persentropy

from TDA.persentropy import persentropy

entropies = persentropy([[[0,4] , [3,4]]])
print(entropies)
#output: [0.5]

SlidingWindow

from TDA.slidingWindow import slidingWindow
from mpl_toolkits.mplot3d import Axes3D
from sklearn.decomposition import PCA
import numpy as np

T = 40
NPeriods = 4
N = T*NPeriods
t = np.linspace(0, 2*np.pi*NPeriods, N+1)[:N]
x = np.cos(t)

X = slidingWindow(x, 20, 1, 0.5)

pca = PCA(n_components = 3)
Y = pca.fit_transform(X)

fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')

ax.scatter(Y[:, 0], Y[:, 1], Y[:, 2])
plt.show()

Visualization tools

Script like:

  • testKMapper
  • testPersim
  • visualize2D
  • visualize3D

Are different tools that can be used to visualize a csv dataset in deifferent ways, while

  • testFFT
  • testSlidingWindow

for the moment work only on a precumputed input.

tdatools's People

Contributors

danielemarchei avatar

Watchers

James Cloos avatar  avatar

Forkers

vincenzonucci

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.