Giter VIP home page Giter VIP logo

eca_complexity_metrics's Introduction

1. Generate Dataset

python generate_data.py

Generated spacetime evolutions will be stored in data

View a generated spacetime

from numpy import load
from matplotlib.pyplot import imshow, show

with open("data/rule110_ic8932_identity.npy", 'rb') as spacetime_file:
    spacetime_evolution=load(spacetime_file)

imshow(spacetime_evolution,cmap="gray")
show()


2. Measure Complexity of Dataset

python measure_complexity.py

Measured Complexities will be stored in results

View novel metric on a specific spacetime

from metrics.lossless_fourier_compression_metric import LosslessFourierCompression

LosslessFourierCompression(spacetime_evolution=spacetime_evolution,verbose=True)


3. Quality Evaluations of Metrics

python quality_evaluations.py

Evaluation results will be stored in results


4. Display Evaluation Summaries

python show_summaries.py
\begin{tabular}{lrrrrrr}
 & identity & inversion & shift & rotation & reflection & total \\
RunLengthEncoding & 0.000000 & 0.000000 & 0.000968 & 0.227389 & 0.000770 & 0.229128 \\
Test & 0.000000 & 0.000000 & 0.000000 & 0.000000 & 0.000000 & 0.000000 \\
\end{tabular}

eca_complexity_metrics's People

Contributors

mohammedterryjack 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.