Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] refactor: parser using Symbolics #877

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/NeuralPDE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ using RuntimeGeneratedFunctions
using Statistics
using ArrayInterface
import Optim
using Symbolics: wrap, unwrap, arguments, operation
using SymbolicUtils
using Symbolics: wrap, unwrap, arguments, operation, symtype, @arrayop, Arr
using SymbolicUtils.Code
using SymbolicUtils: Prewalk, Postwalk, Chain
using AdvancedHMC, LogDensityProblems, LinearAlgebra, Functors, MCMCChains
using MonteCarloMeasurements: Particles
using ModelingToolkit: value, nameof, toexpr, build_expr, expand_derivatives, Interval,
Expand All @@ -32,7 +33,10 @@ using SciMLBase: @add_kwonly, parameterless_type
using UnPack: @unpack
import ChainRulesCore, Lux, ComponentArrays
using Lux: FromFluxAdaptor, recursive_eltype
using ChainRulesCore: @non_differentiable
using ChainRulesCore: @non_differentiable, @ignore_derivatives
using PDEBase: AbstractVarEqMapping, VariableMap, cardinalize_eqs!, get_depvars,
get_indvars, differential_order
using LuxCore: stateless_apply

RuntimeGeneratedFunctions.init(@__MODULE__)

Expand All @@ -41,13 +45,15 @@ abstract type AbstractPINN end
abstract type AbstractTrainingStrategy end

include("pinn_types.jl")
include("eq_data.jl")
include("symbolic_utilities.jl")
include("training_strategies.jl")
include("adaptive_losses.jl")
include("ode_solve.jl")
# include("rode_solve.jl")
include("dae_solve.jl")
include("transform_inf_integral.jl")
include("loss_function_generation.jl")
include("discretize.jl")
include("neural_adapter.jl")
include("advancedHMC_MCMC.jl")
Expand Down
Loading
Loading