We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8bbee4 commit 30482b3Copy full SHA for 30482b3
source/train/Trainer.py
@@ -144,9 +144,10 @@ def _init_param(self, jdata):
144
# infer loss type by fitting_type
145
try :
146
loss_param = jdata['loss']
147
+ loss_type = loss_param.get('type', 'std')
148
except:
149
loss_param = None
- loss_type = loss_param.get('type', 'std')
150
+ loss_type = 'std'
151
152
if fitting_type == 'ener':
153
if loss_type == 'std':
0 commit comments