Skip to content

Providing gradients and automatic differentiation #1182

Open
@Affie

Description

@Affie

A lot of the factors' gradients can be analytically computed. For others, automatic differentiation can be done with packages such as Zygote or ForwardDiff.

I'm starting this broad issue to look at what can be done and if it is worth it.

Analytic gradients

  • We can have an optionally defined gradient function for every factor with fallback to finite AD
  • I tried it, but function lambdas are not currently created to support it. Perhaps we can keep it in mind with the upcoming refactor CCW --- XXX --- CF

Automatic differntiation.

  • I tried forward and it has the same DualNumber issue parametric had as values are fixed to Float64.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions