AnyModelBuilder

public class AnyModelBuilder

A type-erased model builder.

  • Declaration

    Swift

    public var testing: Bool
  • Declaration

    Swift

    public var maxConcurrency: StreamContext.Concurrency { get set }
  • Abstract representation of the stateful components from the model builder.

    Declaration

    Swift

    public var parameters: Model.Parameters { get }
  • Shortcut for weight parameter.

    Declaration

    Swift

    public var weight: Model.Parameters { get }
  • Shortcut for bias parameter.

    Declaration

    Swift

    public var bias: Model.Parameters { get }
  • Broadly speaking, you can have two types of parameters, weight and bias. You can get them in abstract fashion with this method.

    Declaration

    Swift

    public func parameters(for type: Model.ParametersType) -> Model.Parameters

    Parameters

    type

    Whether it is weight or bias.

    Return Value

    An abstract representation of parameters.