MCPcopy Create free account
hub / github.com/Tencent/NeuralNLP-NeuralClassifier / ActivationType

Class ActivationType

model/loss.py:37–46  ·  view source on GitHub ↗

Standard names for activation type

Source from the content-addressed store, hash-verified

35
36
37class ActivationType(Type):
38 """Standard names for activation type
39 """
40 SOFTMAX = "Softmax"
41 SIGMOID = "Sigmoid"
42
43 @classmethod
44 def str(cls):
45 return ",".join([cls.SOFTMAX,
46 cls.SIGMOID])
47
48
49class FocalLoss(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected