Searched refs:smoothing_rate (Results 1 – 3 of 3) sorted by relevance
/third_party/mindspore/mindspore/dataset/transforms/ |
D | py_transforms.py | 107 def __init__(self, num_classes, smoothing_rate=0.0): argument 109 self.smoothing_rate = smoothing_rate 122 return util.one_hot_encoding(label, self.num_classes, self.smoothing_rate)
|
D | validators.py | 62 [num_classes, smoothing_rate], _ = parse_user_args(method, *args, **kwargs) 63 type_check(smoothing_rate, (int, float), "smoothing_rate") 67 if smoothing_rate is not None: 68 check_value(smoothing_rate, [0., 1.], "smoothing_rate")
|
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_mixup_label_smoothing.py | 40 transforms = [f.OneHotOp(num_classes=num_classes, smoothing_rate=epsilon_para)]
|