Class MLCLossDescriptor

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class MLCLossDescriptor
extends NSObject
Since:
Available in iOS 14.0 and later.
  • Constructor Details

    • MLCLossDescriptor

      protected MLCLossDescriptor()
    • MLCLossDescriptor

      protected MLCLossDescriptor​(NSObject.Handle h, long handle)
    • MLCLossDescriptor

      protected MLCLossDescriptor​(NSObject.SkipInit skipInit)
    • MLCLossDescriptor

      public MLCLossDescriptor​(MLCLossType lossType, MLCReductionType reductionType)
    • MLCLossDescriptor

      public MLCLossDescriptor​(MLCLossType lossType, MLCReductionType reductionType, float weight)
    • MLCLossDescriptor

      public MLCLossDescriptor​(MLCLossType lossType, MLCReductionType reductionType, float weight, float labelSmoothing, long classCount)
    • MLCLossDescriptor

      public MLCLossDescriptor​(MLCLossType lossType, MLCReductionType reductionType, float weight, float labelSmoothing, long classCount, float epsilon, float delta)
  • Method Details

    • getLossType

      public MLCLossType getLossType()
    • getReductionType

      public MLCReductionType getReductionType()
    • getWeight

      public float getWeight()
    • getLabelSmoothing

      public float getLabelSmoothing()
    • getClassCount

      public long getClassCount()
    • getEpsilon

      public float getEpsilon()
    • getDelta

      public float getDelta()
    • create

      protected static long create​(MLCLossType lossType, MLCReductionType reductionType)
    • create

      protected static long create​(MLCLossType lossType, MLCReductionType reductionType, float weight)
    • create

      protected static long create​(MLCLossType lossType, MLCReductionType reductionType, float weight, float labelSmoothing, long classCount)
    • create

      protected static long create​(MLCLossType lossType, MLCReductionType reductionType, float weight, float labelSmoothing, long classCount, float epsilon, float delta)