Structure
NeuralNetwork
public struct NeuralNetwork: Items
Relationships
Conforms To
Items
Codable
Initializers
init(losses:optimizer:epochDefault:epochSet:shuffle:)
public init(losses: [Loss]? = nil, optimizer: Optimizer? = nil, epochDefault: UInt? = nil, epochSet: [UInt]? = nil, shuffle: Bool? = nil)
init(losses:optimizer:epochDefault:epochSet:shuffle:_:)
public init(losses: [Loss]? = nil, optimizer: Optimizer? = nil, epochDefault: UInt? = nil, epochSet: [UInt]? = nil, shuffle: Bool? = nil, _ builder: () -> BaseLayer)
init(losses:optimizer:epochDefault:epochSet:shuffle:_:)
public init(losses: [Loss]? = nil, optimizer: Optimizer? = nil, epochDefault: UInt? = nil, epochSet: [UInt]? = nil, shuffle: Bool? = nil, _ builder: () -> [BaseLayer])
init(from:)
public init(from decoder: Decoder) throws
Properties
losses
let losses: [Loss]?
optimizer
let optimizer: Optimizer?
epochDefault
let epochDefault: UInt?
epochSet
let epochSet: [UInt]?
shuffle
let shuffle: Bool?
layers
var layers: [BaseLayer]
Methods
addLayer(_:)
public mutating func addLayer(_ layer: BaseLayer)
encode(to:)
public func encode(to encoder: Encoder) throws