-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain.py
53 lines (33 loc) · 1008 Bytes
/
train.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Image Classification Deep Learning Tool.
This script runs trainingsessions to classify image.
Revision History:
2020-07-12 (Animesh): Baseline Software.
Example:
$ python train.py
"""
#___Import Modules:
from _train_test import NNTools
#___Global Variables:
TRAIN_DATA = 'data/train.csv'
VAL_DATA = 'data/val.csv'
# TRAIN_DATA = 'data/train_aug.csv'
# VAL_DATA = 'data/val_aug.csv'
SETTINGS = 'settings.json'
#___Main Method:
def main():
"""This is the Main Method.
This method contains training session for image classification.
"""
# creates NNTools object dedicated for running training and tesing
# completes training session
Train = NNTools(settings=SETTINGS, types='train')
Train.train(TRAIN_DATA, VAL_DATA)
return None
#___Driver Program:
if __name__ == "__main__":
main()
#
# end of file
"""ANI717"""