Giter VIP home page Giter VIP logo

eql_tensorflow's Introduction

Equation Learner

By Subham S. Sahoo, Christoph H. Lampert and Georg Martius

Implemented by Anselm Paulus, Arnab Bhattacharjee and Michal Rolínek.

Autonomous Learning Group, Max Planck Institute for Intelligent Systems.

Table of Contents

  1. Introduction
  2. Usage
  3. Dependencies
  4. Notes

Introduction

This repository contains TensorFlow implementation of the architecture ftom the ICML 2018 paper "Learning Equations for Extrapolation and Control". This work proposes a neural network architecture for symbolic regression.

Usage

Prepare data

Either provide a python function to 'learn' by calling

python3 data_utils.py "{'file_name': 'F1data', 'fn_to_learn': 'F1', 'train_val_examples': 10000, 'test_examples': 5000}"

or use your own numpy arrays saved in training/evaluation data files.

Train individual model

Once the data is fixed train the model with

python3 train.py '{"train_val_file": "data/F1data_train_val", "test_file": "data/F1data_test"}'

Or possibly change some parameters with

python3 train.py '{"train_val_file": "data/F1data_train_val", "test_file": "data/F1data_test", "batch_size": 25}'

Perform model selection

In case you want to follow the model selection procedure from the paper, first generate runfiles for all the required settings with

python3 createjobs.py '{"train_val_file": "data/F1data_train_val", "test_file": "data/F1data_test"}'

Then run all scripts in the jobs folder.

Finally the model selection is performed by

python3 model_selection.py "{'results_path': 'results/model_selection'}"

Inspect the learned formulas

In each result folder one can find png files with latex and graph representations of the learned formulas.

Latex representation of function F1:
alt text
Graph representation of function F1:
alt text

Dependencies:

  • python>=3.5
  • tensorflow>=1.7
  • graphviz (including binaries)
  • latex

Notes

Disclaimer: This code is a PROTOTYPE and may contains bugs. Use at your own risk.

Contribute: If you spot some incompatibility of have some additional ideas, contribute via a pull request! Thank you!

eql_tensorflow's People

Stargazers

bigdatamath avatar

Watchers

James Cloos avatar bigdatamath 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.