Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SLDGroup/MERIT
/ __init__
Method
__init__
utils/utils.py:107–109 ·
view source on GitHub ↗
(self, n_classes)
Source
from the content-addressed store, hash-verified
105
106
class
DiceLoss(nn.Module):
107
def
__init__(self, n_classes):
108
super(DiceLoss, self).__init__()
109
self.n_classes = n_classes
110
111
def
_one_hot_encoder(self, input_tensor):
112
tensor_list = []
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected