... | ... | @@ -16,23 +16,7 @@ |
|
|
- pytorch : `conda install pytorch`
|
|
|
- gpytorch : `conda install gpytorch`
|
|
|
- Karoo-GP : `pip install karoo-gp`
|
|
|
7. Karoo-gp in current version has a small issue. It will be fixed in the upcoming version. A minor change is required.
|
|
|
- Using text editor open `~/.conda/envs/{name}/lib/python3.{8/9}/site-packages/karoo_gp/base_class.py`. Current line 427 of base_class.py
|
|
|
```
|
|
|
### PART 4 - create a unique directory and initialise all .csv files ###
|
|
|
self.datetime = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
|
|
|
self.path = os.path.join(os.getcwd(), 'runs', filename.split('.')[0] + '_' + self.datetime + '/') # generate a unique directory name
|
|
|
if not os.path.isdir(self.path): os.makedirs(self.path) # make a unique directory
|
|
|
```
|
|
|
Change to:
|
|
|
```
|
|
|
### PART 4 - create a unique directory and initialise all .csv files ###
|
|
|
self.datetime = datetime.now().strftime('%Y-%m-%d_%H-%M-%S-%f')
|
|
|
filename_body = filename.split('/')[-1]
|
|
|
self.path = os.path.join(os.getcwd(), 'runs', filename_body.split('.')[0] + '_' + self.datetime + '/') # generate a unique directory name
|
|
|
if not os.path.isdir(self.path): os.makedirs(self.path) # make a unique directory
|
|
|
```
|
|
|
After this minor fix, one can start the training process.
|
|
|
|
|
|
## Training classifier
|
|
|
1. Change configurations for training in `etc/conf.ini`
|
|
|
2. Creating condor jobs for training:
|
... | ... | |