SwiftTD code for linear function approximation. Can be combined with neural networks by applying it to only the last layer. PDF Demo