AnyModelBuilder

public class AnyModelBuilder

A type-erased model builder.

  • Undocumented

    Declaration

    Swift

    public var isTest: Bool
  • Abstract representation of the stateful components from the model builder.

    Declaration

    Swift

    public var parameters: 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.