public static class Yolo2OutputLayer.Builder extends Layer.Builder<Yolo2OutputLayer.Builder>
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Yolo2OutputLayer.Builder |
boundingBoxPriors(org.nd4j.linalg.api.ndarray.INDArray boundingBoxes)
Bounding box priors dimensions [width, height].
|
Yolo2OutputLayer |
build() |
Yolo2OutputLayer.Builder |
lambbaNoObj(double lambdaNoObj)
Loss function coefficient for the "no object confidence" components of the loss function.
|
Yolo2OutputLayer.Builder |
lambdaCoord(double lambdaCoord)
Loss function coefficient for position and size/scale components of the loss function.
|
Yolo2OutputLayer.Builder |
lossClassPredictions(org.nd4j.linalg.lossfunctions.ILossFunction lossClassPredictions)
Loss function for the class predictions - defaults to L2 loss (i.e., sum of squared errors, as per the
paper), however Loss MCXENT could also be used (which is more common for classification).
|
Yolo2OutputLayer.Builder |
lossPositionScale(org.nd4j.linalg.lossfunctions.ILossFunction lossPositionScale)
Loss function for position/scale component of the loss function
|
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, name
public Yolo2OutputLayer.Builder lambdaCoord(double lambdaCoord)
lambdaCoord
- Lambda value for size/scale component of loss functionpublic Yolo2OutputLayer.Builder lambbaNoObj(double lambdaNoObj)
lambdaNoObj
- Lambda value for no-object (confidence) component of the loss functionpublic Yolo2OutputLayer.Builder lossPositionScale(org.nd4j.linalg.lossfunctions.ILossFunction lossPositionScale)
lossPositionScale
- Loss function for position/scalepublic Yolo2OutputLayer.Builder lossClassPredictions(org.nd4j.linalg.lossfunctions.ILossFunction lossClassPredictions)
lossClassPredictions
- Loss function for the class prediction error component of the YOLO loss functionpublic Yolo2OutputLayer.Builder boundingBoxPriors(org.nd4j.linalg.api.ndarray.INDArray boundingBoxes)
boundingBoxes
- Bounding box prior dimensions (width, height)public Yolo2OutputLayer build()
build
in class Layer.Builder<Yolo2OutputLayer.Builder>
Copyright © 2018. All rights reserved.