Giter Club home page Giter Club logo

deepmath-rs's Introduction

Deep Learning for Symbolic Mathematics in Rust

A reimplementation of Lample & Charton (2019) Deep Learning for Symbolic Mathematics, using Rust instead of Python. This attempts to be an idiomatic port to Rust; while the core functionality is preserved, the implementation is very different.

Usage

Make sure you have the Rust build tools first. Get them here.

Compiling

cargo build --release

Get dataset

The original repository provided tools to generate data on the fly. However, because data generation can take quite a long time, I've decided to skip this and use the original paper's publicly-available dataset instead.

./target/release/deepmath --prepare

Note that this does not generate the data set from scratch, it instead downloads the pre-built dataset tarball from Facebook AI to a deepmath_data folder in your current directory.

Train model

./target/release/deepmath --train

This saves the trained model to a .dat file in ./deepmath_model/model.dat, which will also be in your current directory. Note that the training will be CPU-only. Training parameters cannot be modified.

Run model and predict

./target/release/deepmath --predict

This loads the built model, and if loading is successful, it starts the WebView UI for using the model with a Jupyter-style interface. The UI will allow you to inspect the model, as well as using the model to solve integration problems and differential equations.

There is a default set of problems that Deepmath will try to solve; in addition to those, you can choose to input custom ODEs and functions to solve, using the Web UI.

deepmath-rs's People

Contributors

songtech-0912 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.