0cf2ab94a3199517d4cf22cecce57d02295e2ab5,niftynet/layer/loss_regression.py,LossFunction,__init__,#LossFunction#Any#Any#Any#,14
Before Change
name="loss_function"):
super(LossFunction, self).__init__(name=name)
if loss_func_params is not None:
self._loss_func_params = loss_func_params
else:
self._loss_func_params = {}
self._data_loss_func = None
self.make_callable_loss_func(loss_type)
def make_callable_loss_func(self, type_str):
self._data_loss_func = LossRegressionFactory.create(type_str)
After Change
super(LossFunction, self).__init__(name=name)
// set loss function and function-specific additional params.
self._data_loss_func = LossRegressionFactory.create(loss_type)
self._loss_func_params = \
loss_func_params if loss_func_params is not None else {}
def layer_op(self,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances Project Name: NifTK/NiftyNet
Commit Name: 0cf2ab94a3199517d4cf22cecce57d02295e2ab5
Time: 2018-01-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/loss_regression.py
Class Name: LossFunction
Method Name: __init__
Project Name: NifTK/NiftyNet
Commit Name: 0cf2ab94a3199517d4cf22cecce57d02295e2ab5
Time: 2018-01-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/loss_segmentation.py
Class Name: LossFunction
Method Name: __init__
Project Name: NifTK/NiftyNet
Commit Name: 8201900250bab24c768542f80090dc6381f05af1
Time: 2018-01-26
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/loss_regression.py
Class Name: LossFunction
Method Name: __init__
Project Name: NifTK/NiftyNet
Commit Name: 8201900250bab24c768542f80090dc6381f05af1
Time: 2018-01-26
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/loss_segmentation.py
Class Name: LossFunction
Method Name: __init__