README.md 880 Bytes
Newer Older
Jean-Marie Lepioufle's avatar
typo    
Jean-Marie Lepioufle committed
1
2
# mtsaq

Jean-Marie Lepioufle's avatar
Jean-Marie Lepioufle committed
3
A package for testing DNN models on AQ.
Jean-Marie Lepioufle's avatar
typo    
Jean-Marie Lepioufle committed
4
5
6

Package under dev: changes might occur at anytime.

Jean-Marie Lepioufle's avatar
Jean-Marie Lepioufle committed
7

Jean-Marie Lepioufle's avatar
Jean-Marie Lepioufle committed
8
## install
Jean-Marie Lepioufle's avatar
Jean-Marie Lepioufle committed
9
10
11
12
13
14
```bash
cd /tmp
git clone https://git.nilu.no/aqdl/mtsaq_pkg.git
cd mtsaq_pkg
pip3 install -e .
```
Jean-Marie Lepioufle's avatar
Jean-Marie Lepioufle committed
15
16
17

Package 'mtsaq' has been tested on python 3.8 and 3.9

Jean-Marie Lepioufle's avatar
Jean-Marie Lepioufle committed
18
19
20
21
22
23
Running 'mtsaq' with CUDA (v11.1), requires a manual installation of pytorch:
```bash
pip3 install torch==1.8.1+cu111
```


Jean-Marie Lepioufle's avatar
Jean-Marie Lepioufle committed
24
25
## Usage
```python
Jean-Marie Lepioufle's avatar
Jean-Marie Lepioufle committed
26
27
28
 py -3.8 mtsaq/k_fold_train.py -w "/path/to/workdir" -c "config_train.json" -d "/path/to/data.csv"
 py -3.8 mtsaq/k_fold_eval.py -w "/path/to/workdir" -c "config_eval.json" -s "key_of_a_session" -d "/path/to/data.csv"
 py -3.8 mtsaq/prediction.py -w "/path/to/workdir" -c "config_pred.json" -s "key_of_a_session" -m "core_name_model" -d "path/to/last_data.csv"
Jean-Marie Lepioufle's avatar
Jean-Marie Lepioufle committed
29
30
31
32
33
 ```

 ## Examples

 Have a look at our [case studies](https://git.nilu.no/aqdl/case_studies) repository.