Skip to content

Commit

Permalink
Update ensemble.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Aug 1, 2024
1 parent b9764b0 commit 3fd05fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ensemble.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dataset on which the ensembler should be trained on.
function ensemble_weights(sol::EnsembleSolution, data_ensem)
obs = first.(data_ensem)
predictions = reduce(
vcat, reduce(hcat, [sol[i][s] for i in 1:length(sol)]) for s in obs)
vcat, reduce(hcat, [sol.u[i][s] for i in 1:length(sol)]) for s in obs)
data = reduce(vcat,
[data_ensem[i][2] isa Tuple ? data_ensem[i][2][2] : data_ensem[i][2]
for i in 1:length(data_ensem)])
Expand Down

0 comments on commit 3fd05fc

Please sign in to comment.