Home
last modified time | relevance | path

Searched refs:smoothing_rate (Results 1 – 3 of 3) sorted by relevance

/third_party/mindspore/mindspore/dataset/transforms/
Dpy_transforms.py107 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)
Dvalidators.py62 [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/
Dtest_mixup_label_smoothing.py40 transforms = [f.OneHotOp(num_classes=num_classes, smoothing_rate=epsilon_para)]