Numpy-Neuron / numpyneuron /__init__.py
Jensen Holm
loss functions now just have staticmethods
d7ea050
raw
history blame contribute delete
343 Bytes
from .loss import *
from .activation import *
from .nn import *
ACTIVATIONS: dict[str, Activation] = {
"Relu": Relu(),
"Sigmoid": Sigmoid(),
"TanH": TanH(),
"SoftMax": SoftMax(),
}
LOSSES: dict[str, Loss] = {
"MSE": MSE(),
"CrossEntropy": CrossEntropy(),
"CrossEntropyWithLogitsLoss": CrossEntropyWithLogits(),
}