GithubHelp home page GithubHelp logo

alex-louvet / nnexpy Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 221 KB

A bunch of python script and classes to experiment with homology, knot theory and neural networks

License: MIT License

Python 100.00%
nnexpy homology nn-expressiveness knots

nnexpy's Introduction

NNexpy (A bunch of python script and classes to experiment with homology, knot theory and neural networks)

Introduction

This repository is a compilation of my work during my master course at Kyushu Institute of Technology. A clone of the repository is also available on KIT Honda Lab's github. The purpose of this repository is to provide with some python code to get started with homology and knot theory as a mean to evaluate neural networks' expressiveness.

Requirement

To run this code you need python3 as well as some libraries. They can be installed using Conda and I personally used a conda environment which environment file is available in this repository.

To setup a functional conda environment with conda cli you simply need to use the following command:

conda env create -f environment.yml
conda activate nexpy

For more information refer to conda documentation and in particular the section about managing environment

Usage

To use this code, copy the nnexpy folder in your python project and import nnexpy

import nnexpy

NNexpy contains the following classes:

Examples

The examples folder is a collection of the various scripts I have been creating during my research. Here follows a short description of all of them.

  • ai_playground.py: Generates a few DataInstance with different homology and then call rasScript to train batch of networks on these different datasets.
  • analyse_network.py: Computes betti numbers and makes the PCA to obtain a trajectory from Keras + Tensorflow neural network.
  • bettiScript.py: Computes Betti numbers of Keras + Tensorflow neural networks on a DataDescriptor
  • oldBottleneckScript.py: Computes Betti numbers of Keras + Tensorflow neural networks on a DataDescriptor
  • compare_results.py: Script to use bettiScript, oldBettiScript and oldBottleneckScript as subprocesses
  • oldBettiScript.py: Another version of betti number computation of Keras + Tensorflow neural networks on a DataDescriptor
  • rasScript.py: Trains a Keras + Tensorflow neural network on a given DataInstance
  • test_random_networks.py: Generate PCA of random networks with an input trajectory
  • visualize_results.py: Plot the predicted data of Keras + Tensorflow networks on a DataInstance

nnexpy's People

Stargazers

 avatar  avatar

Watchers

 avatar

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.