[BUG]: deepcopy of Modules not supported
bug
### What happened?
When running in IJulia:
```julia
┌ Warning: ProgressMeter by default refresh meters with additional information in IJulia via `IJulia.clear_output`, which clears all outputs in the cell.
│ - To prevent this behaviour, do `ProgressMeter.ijulia_behavior(:append)`.
│ - To disable this warning message, do `ProgressMeter.ijulia_behavior(:clear)`.
└ @ ProgressMeter ~/.julia/packages/ProgressMeter/N660J/src/ProgressMeter.jl:607
Evolving for 200 iterations... 100%|█████████████████████| Time: 0:01:45
...
[ Info: Final population:
- outputs/20250902_130236_A8dZfC/hall_of_fame.csv
[ Info: Results saved to:
deepcopy of Modules not supported
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] deepcopy_internal(x::Module, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:36
[3] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:69
[4] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:82
[5] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:69
[6] deepcopy
@ ./deepcopy.jl:29 [inlined]
[7] fit_only!(mach::Machine{SRRegressor{DynamicQuantities.SymbolicDimensions{DynamicQuantities.FixedRational{Int32, 25200}}, Nothing}, SRRegressor{DynamicQuantities.SymbolicDimensions{DynamicQuantities.FixedRational{Int32, 25200}}, Nothing}, true}; rows::Nothing, verbosity::Int64, force::Bool, composite::Nothing)
@ MLJBase ~/.julia/packages/MLJBase/F8Zzu/src/machines.jl:737
[8] fit_only!
@ ~/.julia/packages/MLJBase/F8Zzu/src/machines.jl:617 [inlined]
[9] #fit!#66
@ ~/.julia/packages/MLJBase/F8Zzu/src/machines.jl:789 [inlined]
[10] fit!(mach::Machine{SRRegressor{DynamicQuantities.SymbolicDimensions{DynamicQuantities.FixedRational{Int32, 25200}}, Nothing}, SRRegressor{DynamicQuantities.SymbolicDimensions{DynamicQuantities.FixedRational{Int32, 25200}}, Nothing}, true})
@ MLJBase ~/.julia/packages/MLJBase/F8Zzu/src/machines.jl:786
[11] fit_sr_model(xs::Vector{Float64}, ys::Vector{Float64}, errs::Vector{Float64}; likelihood::Bool, use_template::Bool, kw::@Kwargs{niterations::Int64, deterministic::Bool, atlas_template::TemplateExpressionSpec{TemplateStructure{(:B, :E), (:p1,), typeof(__sr_template_7980901066278351854), @NamedTuple{B::Int64, E::Int64}, @NamedTuple{p1::Int64}}}, should_optimize_constants::Bool})
@ BjetTLA [~/BjetTLA/src/symbolic_regression_fit.jl:82](https://jiling-notebook-1.notebook.af.uchicago.edu/lab/workspaces/auto-L/tree/BjetTLA/notebooks/BjetTLA/src/symbolic_regression_fit.jl#line=81)
[12] fit_sr_model
@ [~/BjetTLA/src/symbolic_regression_fit.jl:78](https://jiling-notebook-1.notebook.af.uchicago.edu/lab/workspaces/auto-L/tree/BjetTLA/notebooks/BjetTLA/src/symbolic_regression_fit.jl#line=77) [inlined]
[13] fit_sr_model(hist::Hist1D{Float64}; ghost_injection::Bool, kw::@Kwargs{likelihood::Bool, niterations::Int64, deterministic::Bool, atlas_template::TemplateExpressionSpec{TemplateStructure{(:B, :E), (:p1,), typeof(__sr_template_7980901066278351854), @NamedTuple{B::Int64, E::Int64}, @NamedTuple{p1::Int64}}}, should_optimize_constants::Bool})
@ BjetTLA [~/BjetTLA/src/symbolic_regression_fit.jl:96](https://jiling-notebook-1.notebook.af.uchicago.edu/lab/workspaces/auto-L/tree/BjetTLA/notebooks/BjetTLA/src/symbolic_regression_fit.jl#line=95)
[14] top-level scope
@ In[26]:1
```
### Version
v2.0.0-alpha.8
### Operating System
Linux
### Interface
Jupyter Notebook
### Relevant log output
```shell
```
### Extra Info
_No response_
关闭于 2025-09-03 6 条评论