PPO
public struct PPO
-
Declaration
Swift
public struct ContinuousState
-
Declaration
Swift
public init(graph: DynamicGraph, critic: @escaping (Tensor<Float>) -> Tensor<Float>)
-
Declaration
Swift
public struct Statistics
-
Declaration
Swift
public var statistics: Statistics { get }
-
Declaration
Swift
public func distributions( scale: Tensor<Float>, from batch: [CollectedData<Float, ContinuousState>] ) -> [[Tensor<Float>]]
-
Declaration
Swift
public mutating func computeReturns(from batch: [CollectedData<Float, ContinuousState>]) -> (returns: [[Float]], advantages: [[Float]])
-
Declaration
Swift
public static func samples<T: RandomNumberGenerator>( from collectedData: [CollectedData<Float, ContinuousState>], episodeCount: Int, using generator: inout T, returns: [[Float]], advantages: [[Float]], oldDistributions: [[Tensor<Float>]] ) -> DataFrame
-
Declaration
Swift
public struct ClipLoss