守则如下:
def stratified_subsampling(arr, n_strata, n_points, srand)
<<-DOC
The function samples "n_points" points from an array "arr".
It preserves the original distribution of the data. "n_strata"
is the number of strata to devide the values in. Have to find a
trade-off for this value, but I think that as a rule of thumb,
10 bins should be fair enough in most cases.
DOC
vs = arr.sort
...鲁博克说:
W: Lint/Void: Literal <<-DOC used in void context.
<<-DOC
^^^^^^ 我不明白这意味着什么,我应该如何解决它。
谢谢!
发布于 2020-09-09 11:43:59
这意味着您这里有一个字符串文本,您完全不使用它。它需要是字符串文字吗?一个评论应该是很好的。
https://stackoverflow.com/questions/63810893
复制相似问题