Skip to content

Commit

Permalink
now fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-alt committed Nov 8, 2024
1 parent 295b4d0 commit 5597c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_preprocessing/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function train_test_split(data::CounterfactualData; test_size=0.2, keep_class_ra
class_samples = [
sample(
findall(vec(y .== cls)),
Int(floor(test_size * cls_ratio * n_per_class * 10));
Int(floor(test_size * cls_ratio * N));
replace=false,
) for (cls, cls_ratio) in zip(classes_, class_ratios)
]
Expand Down

0 comments on commit 5597c7a

Please sign in to comment.