how can i write from scratch code to do stratified sampling by target variable?

后端 未结 0 1700
离开以前
离开以前 2020-12-11 17:15

all, i am trying to create from scratch (without use of sklearn libs) to create 5 samples (len of df / 5) such that each one has the same proportion of target variable (1\'s

相关标签:
回答
  • 消灭零回复
提交回复
热议问题