|
a |
|
b/inst/md/LM.md |
|
|
1 |
### Evaluating a Linear model |
|
|
2 |
|
|
|
3 |
|
|
|
4 |
Please clone this repo in the **DeepGP** folder. |
|
|
5 |
|
|
|
6 |
`git clone https://github.com/lauzingaretti/DeepGP.git DeepGP` |
|
|
7 |
|
|
|
8 |
Make sure you have the dependencies installed. To install dependencies, please run in bash the following command: |
|
|
9 |
|
|
|
10 |
`pip3 install -r requirements.txt` |
|
|
11 |
|
|
|
12 |
usually as sudoer. |
|
|
13 |
|
|
|
14 |
Go to the Project main folder: |
|
|
15 |
|
|
|
16 |
`cd DeepGP` |
|
|
17 |
|
|
|
18 |
Prepare the output folder where results should be stored: |
|
|
19 |
|
|
|
20 |
`mkdir /path/to/output/Folder` |
|
|
21 |
|
|
|
22 |
Runing Ridge regression by type in bash: |
|
|
23 |
|
|
|
24 |
`python3 Deep_genomic.py --Xtr /dataset_wheat/XWheatTrain.csv --ytr /dataset_wheat/YWheatTrain.csv --Xval /dataset_wheat/XWheatVal.csv --yval /dataset_wheat/YWheatVal.csv --ridge |
|
|
25 |
` |
|
|
26 |
Alternatively, you can run lasso by: |
|
|
27 |
|
|
|
28 |
`python3 Deep_genomic.py --Xtr /dataset_wheat/XWheatTrain.csv --ytr /dataset_wheat/YWheatTrain.csv --Xval /dataset_wheat/XWheatVal.csv --yval /dataset_wheat/YWheatVal.csv --lasso |
|
|
29 |
` |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
Once the running process finished, go to `/path/to/output/Folder` and in a folder called **ridge** or **lasso** respectively you can find the figures and predictive abilities. |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
Note that it can evaluate both diploids and polyploids organisms and although we are not interested in linear models themselves, we implement them in order to compare them with Dep architectures. |