Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xunzheng committed Nov 11, 2018
1 parent 6703c72 commit 3f965c5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ space of DAGs.
## Running a simple demo

The simplest way to try out NOTEARS is to run the toy demo:
```
git clone https://github.com/xunzheng/notears.git
cd notears/
pip install -r requirements.txt
python simple_demo.py
```bash
$ git clone https://github.com/xunzheng/notears.git
$ cd notears/
$ pip install -r requirements.txt
$ python simple_demo.py
```
This runs the [50-line version](simple_demo.py) of NOTEARS
without l1-regularization
Expand Down Expand Up @@ -101,16 +101,16 @@ Hence for efficiency concerns it is implemented in a C++ module `cppext`
using [Eigen](http:https://eigen.tuxfamily.org/index.php?title=Main_Page).

To install `cppext`, download Eigen submodule and compile the extension:
```
git submodule update --init --recursive
cd cppext/
python setup.py install
cd ..
```bash
$ git submodule update --init --recursive
$ cd cppext/
$ python setup.py install
$ cd ..
```

The code comes with a Jupyter notebook that runs a live demo. This allows you to monitor the progress as the algorithm runs. Type
```
jupyter notebook
```bash
$ jupyter notebook
```
and click open [`live_demo.ipynb`](live_demo.ipynb) in
the browser.
Expand Down

0 comments on commit 3f965c5

Please sign in to comment.