Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
num
v1.1.1
Array
ARROW
CPU
Num
ArrayFlags
Einsum
Exceptions
AxisError
IndexError
LinAlgError
ValueError
Grad
Context
Variable
NN
AdamOptimizer
ConvolutionalLayer
Distribution
DropoutLayer
EluLayer
FanMode
FlattenLayer
InputLayer
Layer
LeakyReluLayer
LinearLayer
Loss
MaxPoolLayer
MSELoss
Network
NetworkInfo
Optimizer
ReluLayer
SGDMomentumOptimizer
SGDOptimizer
SigmoidCrossEntropyLoss
SigmoidLayer
SoftmaxCrossEntropyLoss
OrderType
Rand
Number
OCL
Tensor
Built with Crystal 1.9.2
2023-10-08 08:17:24 UTC
class
Num::NN::Loss(T)
Num::NN::Loss(T)
Reference
Object
Direct Known Subclasses
Num::NN::MSELoss(T)
Num::NN::SigmoidCrossEntropyLoss(T)
Num::NN::SoftmaxCrossEntropyLoss(T)
Defined in:
nn/primitives/loss.cr
Instance Method Summary
#loss
(input : Num::Grad::Variable(T), target : T) : Num::Grad::Variable(T)
Instance Method Detail
def
loss
(input :
Num::Grad::Variable
(T), target : T) :
Num::Grad::Variable
(T)
#
[
View source
]