Commit fee554b
authored
[ML] ensure the
Originally, there was the thought that the fractions provided to the bucket_count_ks_test would need some special handling to ensure appropriate perturbation of the values. This way the KS-test would provide good information.
But, this requirement was removed as the calculation was improved.
Consequently, remnants of this requirement (like requiring the caller to provide appropriately perturbed fractions) are no longer necessary.
This commit allows the fractions parameter provided in the bucket_count_ks_test to simply be the expected fraction of documents per bucket. Previously the caller would have to append 0 to the fractions parameter (undocumented, and thus troublesome).fractions and bucket doc count have the same lengths in bucket_count_ks_test (#74624)1 parent a518b8f commit fee554b
File tree
2 files changed
+43
-1
lines changed- x-pack/plugin
- ml/src/main/java/org/elasticsearch/xpack/ml/aggs/kstest
- src/yamlRestTest/resources/rest-api-spec/test/ml
2 files changed
+43
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
123 | 163 | | |
124 | 164 | | |
125 | 165 | | |
| |||
0 commit comments