GithubHelp home page GithubHelp logo

sebastianjaszczur / deepsat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mluszczyk/deepsat

0.0 1.0 0.0 34.08 MB

Solve SAT with neural networks

Python 0.52% Jupyter Notebook 99.43% Shell 0.05%

deepsat's Introduction

Generating data

dump_dataset.py -o <num_of_samples> -c <num_of_variables> -j <random_seed>

Training

Run on TPU like this:

python neurosat_tpu.py \
    --use_tpu=True \
    --tpu=$TPU_NAME \
    --train_file=$TRAINNIG_FILE \
    --test_file=$TEST_FILE \
    --train_steps=1200000 \
    --test_steps=80 \
    --model_dir=$MODEL_DIR \
    --export_dir=$EXPORT_DIR \
    --variable_number=30 \
    --clause_number=300 \   # 10 * variable_number
    --train_files_gzipped=False \
    --batch_size=128 \
    --export_model \
    --attention=$ATTENTION \
    --level_number=$LEVEL_NUMBER

Examples and hyperparameters can be read in notebooks/iclr2019/tpu_grid.sh.

Evaluation with DPLL or CDCL

  • For DPLL with 1000 step limit see notebooks/iclr2019/dpll_1000_steps.ipynb.
  • For DPLL without a step limit see notebooks/iclr2019/hybrid_dpll.ipynb.
  • For CDCL without a step limit see notebooks/iclr2019/hybrid_cdcl.ipynb.

deepsat's People

Contributors

henrykmichalewski avatar kgalias avatar mluszczyk avatar sebastianjaszczur 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.