Code Monkey home page Code Monkey logo

attractors's Introduction

Strange attractors

Finding beauty within chaos!

This repo contains a python script for automatically detecting "stable" chaotic systems. The script can search for them, store their initial configuration and later displaying the system after N iterations in an artistic style.

Installing

git clone [email protected]:AIRLegend/attractors.git
cd attractors
pip install -r requirements.txt

Searching

python attractors.py search --n_searches 1500 --search_out_path ./sols/

This command will spawn the search of 1500 chaotic systems and save the initial configurations next to a simple plot of the result in the sols/ directory.

Visualization

After having generated "solution files" you can use them for creating their visualizations.

python search.py display --solution_file ./sols/sol_0_1715774254.128875.json --cmap Blues --figsize 30 30 --alpha 0.7 --n_samples=200000

You can also generate an animation with the video parameter:

python attractors.py video --solution_file ./sols/sol_10_1715885863.353617.json --cmap cividis --figsize 20 20

(See help for the extra supported styling options)

Examples!

You can generate visualizations such as:

Resources

I've found these resources very interesting. Worth checking out if you want to learn more about this stuff!

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.