SwiftCoreMLTools Documentation Beta

Structure Model

public struct Model
%3 Model Model Codable Codable Model->Codable

Conforms To

Codable

Initializers

init(version:​short​Description:​author:​license:​user​Defined:​)

public init(version: UInt = 4, shortDescription: String? = nil, author: String? = nil, license: String? = nil, userDefined: [String : String]? = [:])

init(version:​short​Description:​author:​license:​user​Defined:​_:​)

public init(version: UInt = 4, shortDescription: String? = nil, author: String? = nil, license: String? = nil, userDefined: [String : String]? = [:], _ builder: () -> Items)

init(version:​short​Description:​author:​license:​user​Defined:​_:​)

public init(version: UInt = 4, shortDescription: String? = nil, author: String? = nil, license: String? = nil, userDefined: [String : String]? = [:], _ builder: () -> [Items])

init(from:​)

public init(from decoder: Decoder) throws

Properties

version

let version: UInt

short​Description

let shortDescription: String?

author

let author: String?

license

let license: String?

user​Defined

let userDefined: [String : String]?

inputs

var inputs: [String : Input]

outputs

var outputs: [String : Output]

training​Inputs

var trainingInputs: [String : TrainingInput]

neural​Network

var neuralNetwork: NeuralNetwork

core​MLData

var coreMLData: Data?

Methods

add​Input(_:​)

public mutating func addInput(_ input: Input)

add​Output(_:​)

public mutating func addOutput(_ output: Output)

add​Training​Input(_:​)

public mutating func addTrainingInput(_ trainingInput: TrainingInput)