SwiftstructCreateMLComponents

struct CreateMLComponents.MultivariateLinearRegressor.Model

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 9

  1. fieldvar state: CreateMLComponents.MultivariateLinearRegressor<A>.Model.State
  2. funcapplied(to: CoreML.MLShapedArray<A>, eventHandler: (@Sendable (CreateMLComponents.Event) -> ())?) async throws -> CoreML.MLShapedArray<A>
  3. initinit(weight: CoreML.MLShapedArray<A>, bias: CoreML.MLShapedArray<A>?) -> CreateMLComponents.MultivariateLinearRegressor<A>.Model
  4. typealiastypealias Input = CoreML.MLShapedArray<A>
  5. typealiastypealias Output = CoreML.MLShapedArray<A>
  6. varvar bias: CoreML.MLShapedArray<A>? { get }
  7. varvar inputSize: Int { get }
  8. varvar outputSize: Int { get }
  9. varvar weight: CoreML.MLShapedArray<A> { get }
struct CreateMLComponents.MultivariateLinearRegressor.Model {
    struct Storage {
        enum CodingKeys {
            case weight
            case bias
        }
        var weight: CoreML.MLShapedArray<Swift.Float>
        var bias: CoreML.MLShapedArray<Swift.Float>?
    }
    enum State {
        case trainingWithNN(NeuralNetworks.Dense, NeuralNetworks.Adam<NeuralNetworks.Dense>)
        case inference(weight: CoreML.MLShapedArray<A>, bias: CoreML.MLShapedArray<A>?)
    }
    var state: CreateMLComponents.MultivariateLinearRegressor<A>.Model.State

    init(weight: CoreML.MLShapedArray<A>, bias: CoreML.MLShapedArray<A>?)

    var bias: CoreML.MLShapedArray<A>? {
        get
    }
    var inputSize: Swift.Int {
        get
    }
    var outputSize: Swift.Int {
        get
    }
    var weight: CoreML.MLShapedArray<A> {
        get
    }

    func applied(to: CoreML.MLShapedArray<A>, eventHandler: (@Sendable (_: CreateMLComponents.Event) -> ())?) async throws -> CoreML.MLShapedArray<A>
}