SwiftstructCreateMLComponents
struct CreateMLComponents.MultivariateLinearRegressor.Model
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolCreateMLComponents.Transformer
Members 9
- field
var state: CreateMLComponents.MultivariateLinearRegressor<A>.Model.State - func
applied(to: CoreML.MLShapedArray<A>, eventHandler: (@Sendable (CreateMLComponents.Event) -> ())?) async throws -> CoreML.MLShapedArray<A> - init
init(weight: CoreML.MLShapedArray<A>, bias: CoreML.MLShapedArray<A>?) -> CreateMLComponents.MultivariateLinearRegressor<A>.Model - typealias
typealias Input = CoreML.MLShapedArray<A> - typealias
typealias Output = CoreML.MLShapedArray<A> - var
var bias: CoreML.MLShapedArray<A>? { get } - var
var inputSize: Int { get } - var
var outputSize: Int { get } - var
var weight: CoreML.MLShapedArray<A> { get }
Header
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> }