Switch to unified view

a b/Tuning_hyperparameters/README.md
1
DNNGP Auto Hyperparameters Optimization Script
2
3
This directory contains the DNNGP auto hyperparameters tuning script, which accomplishes two main functions:
4
1. It automatically optimizes the hyperparameters of DNNGP and outputs the best results as a JSON file.
5
2. It automatically tunes hyperparameters for multiple phenotypic traits.
6
7
This script has certain requirements for package versions, so it is necessary to recreate the conda environment for DNNGP3. Two YAML files are provided in this directory, corresponding to the runtime environments for Linux and Windows respectively. You can use the command `conda env create -f DNNGP_Linux_OPN.yaml` to create the corresponding environment.
8
9
Regarding the use of the script:
10
You can create a directory that contains a pkl file (genotype file) and multiple corresponding tsv files (each tsv file contains one phenotype), and then specify the directory within this script to the newly created directory to run the script. The generated best parameters json file will also be output in this directory. The file directory structure is as follows:
11
12
```
13
Inputfiles/
14
15
├── genotype.pkl
16
├── phenotype1.tsv
17
├── phenotype2.tsv
18
├── phenotype3.tsv
19
├──...
20
└── phenotypeN.tsv
21
```
22
:star2:Tips:
23
After experiments, it was found that some users may encounter the issue of being unable to use the GPU after installing the environment. After activating the `DNNGP3` environment, you can try the following command to solve the problem:
24
```
25
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH
26
export PATH=$CONDA_PREFIX/bin:$PATH
27
```
28
We strongly recommend using the call GPU for tuning, otherwise it will take too long. 
29
30
:star2:`Best_fold_info.py`
31
This script is used to deal with the problem that the best parameter json file and the running log are difficult to correspond.
32
You only need to change the path of the last line to your directory, and the script will automatically find the lowest directory, 
33
automatically read the unique json file and the.log file inside, and update the best parameter fold information to the json file.
34
  
35
More information about the script is described in the script file in the form of comments.  
36
:telephone_receiver:If there are problems with use, please contact us.