Skip to content

Commit

Permalink
fix creating folds in sdm()
Browse files Browse the repository at this point in the history
  • Loading branch information
tiemvanderdeure committed Nov 28, 2023
1 parent feda310 commit 7d79e40
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 @@ -116,7 +116,7 @@ function sdm(

trained_models = mapreduce(vcat, keys(resamplers_)) do resampler_key
resampler = resamplers_[resampler_key]
folds = MLJ.MLJBase.train_test_pairs(resampler, 1:1100, response_values) ## get indices
folds = MLJ.MLJBase.train_test_pairs(resampler, 1:n_total, response_values) ## get indices
mapreduce(vcat, keys(models_)) do model_key
model = models_[model_key]
map(enumerate(folds)) do (f, (train, test))
Expand Down

0 comments on commit 7d79e40

Please sign in to comment.