Skip to content

janeyoung2018/symbolic-math

Repository files navigation

(Symbolic Math) Reimplementation of Deep Learning for Symbolic Mathematics

A reimplementation of Lample & Charton (2019) Deep Learning for Symbolic Mathematics

Codebase guide

  1. generate random math expressions in binary tree form (random_trees.py)
  2. map tree to prefix (random_trees.py)
  3. prefix to infix (infix_prefix.py)
  4. infix to prefix (infix_prefix.py)

Workflow

  1. backward_generation.ipynb - generate trees, generate target using sympy, simplify, make sequence (input & target)

Can also run

$ python generate_dataset.py --cpu 12 --num 10000 --n 8
  1. seq2seq_model.ipynb basic model

  2. transformer.ipynb trains model in google cloud.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •