Basic Usage example fails
I am symbolically fitting a function using DataDrivenProblem, which is part of the DataDrivenDiffEq ecosystem. I am using the documentation of version 0.8.6 (the documentation of versions 1.0 and 1.0.1 is mostly missing) (URL: https://docs.juliahub.com/DataDrivenDiffEq/EZBji/0.8.6/).
From the simplest example Getting Started, I come across the line
problem = DirectDataDrivenProblem(X, Y, name = :Test)
However, this function does not exist. Executing methods on the function, I find the following:
# 4 methods for type constructor:
[1] DataDrivenProblem(sol::T; use_interpolation, kwargs...) where T<:Union{DESolution, SciMLSolution} in DataDrivenDiffEq at /Users/erlebach/.julia/packages/DataDrivenDiffEq/Yfvcd/src/problem/type.jl:468
[2] DataDrivenProblem(X::AbstractMatrix; t, DX, Y, U, p, probtype, kwargs...) in DataDrivenDiffEq at /Users/erlebach/.julia/packages/DataDrivenDiffEq/Yfvcd/src/problem/type.jl:150
[3] DataDrivenProblem(probtype, X, t, DX, Y, U::F, p; kwargs...) where F<:Function in DataDrivenDiffEq at /Users/erlebach/.julia/packages/DataDrivenDiffEq/Yfvcd/src/problem/type.jl:140
[4] DataDrivenProblem(probType, X, t, DX, Y, U, p; name, kwargs...) in DataDrivenDiffEq at /Users/erlebach/.julia/packages/DataDrivenDiffEq/Yfvcd/src/problem/type.jl:115
I have only included two modules via
using DataDrivenDiffEq
using DataDrivenSparse
I am using Julia 1.8.2, and DataDrivenDiffeq 1.01 .
Thanks for any help!
The DirectDataDriven is indeed just a wrapper for the functions above and can be found here. Edit And within the docs.
The regression / usage within the example is on my radar. It seems that constructing either a DataDrivenProblem before using Optimization helps (sometimes).
I am also on a M1 ;).
For reference : The discourse discussion