Skip to content

Commit

Permalink
Move experiments
Browse files Browse the repository at this point in the history
jbcdnr committed Sep 14, 2018
1 parent 838e106 commit 8d9b58f
Showing 9 changed files with 22 additions and 33 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -40,15 +40,15 @@ with open('epsilon.pickle', 'wb') as f:
pickle.dump((X, y), f)
```

After updating the path to the data files in `experiment.py` , you can run the baseline
You can run the baseline

```bash
python3 baselines.py ./data results/baselines
python3 experiments/baselines.py ./data results/baselines
```

and then run our experiments, for example

```bash
python3 experiment.py rcv1-th ./data results/rcv1-th --nproc 10
python3 experiments/rcv1-th.py ./data results/rcv1-th
```

30 changes: 0 additions & 30 deletions eps-quant.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@
import multiprocessing as mp
import os
import pickle
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))

import matplotlib.pyplot as plt
import numpy as np
4 changes: 4 additions & 0 deletions eps-quantized.py → experiments/eps-quantized.py
Original file line number Diff line number Diff line change
@@ -2,9 +2,13 @@
import multiprocessing as mp
import os
import pickle
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))

import matplotlib.pyplot as plt

sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))

from logistic import LogisticSGD
from parameters import Parameters
from utils import pickle_it
2 changes: 2 additions & 0 deletions eps-th.py → experiments/eps-th.py
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@
import multiprocessing as mp
import os
import pickle
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))

import matplotlib.pyplot as plt

Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@
import multiprocessing as mp
import os
import pickle
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))

import matplotlib.pyplot as plt
import numpy as np
2 changes: 2 additions & 0 deletions rcv-quantizedd.py → experiments/rcv-quantized.py
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@
import multiprocessing as mp
import os
import pickle
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))

import matplotlib.pyplot as plt
import numpy as np
2 changes: 2 additions & 0 deletions rcv-th.py → experiments/rcv-th.py
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@
import multiprocessing as mp
import os
import pickle
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))

import matplotlib.pyplot as plt

5 changes: 5 additions & 0 deletions experiments/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))

import logistic

0 comments on commit 8d9b58f

Please sign in to comment.