We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3827b80 commit f3a04acCopy full SHA for f3a04ac
1 file changed
src/utils.jl
@@ -64,8 +64,7 @@ function microtc(
64
)
65
66
(traincorpus, trainlabels), (testcorpus, testlabels) = if sample < 1.0
67
- obs = randobs((corpus, labels), ceil(Int, length(labels) * sample))
68
- splitobs(obs; at)
+ splitobs(obs; at, shuffle=true, stratified=labels)
69
else
70
splitobs((corpus, labels); at, shuffle=true)
71
end
0 commit comments