Commit bb13d62
Add DetectSeasonality as a Helper function in TimeSeries ExtensionDialog (#5231)
* create class PeriodDetectUtils
* Test period detect
* math utils
* restore file
* update license
* 1. Add DetectSeasonality as a helper method in ExtensionsCatalog,
2. Remove the MathUtils and use MedianDblAggregator (make it BestFriend)
3. Add Unit Tests
* Change SeasonalityDetector to be internal class
* 1. Introduce randomnessThreshold as an optional parameter
2. Update comments and polish SeasonalityDetector for readability.
* minor float to double type change
* fix unit tests
* address Harish's comments:
1. Change Randomness threshold to [0, 1] range as confidence internal and map to inverse normal cumulative distribution
2. Update unit tests to use sin(2pi + x)
3. Other formatting issues
* minor format update
* update comments
* minor follow up comment update
* update threshold to p value
Co-authored-by: yuyi@microsoft.com <Yuanxiang.Ying@microsoft.com>
Co-authored-by: Lisa Hua <jinhua@microsoft.com>1 parent 1c2469f commit bb13d62
File tree
5 files changed
+463
-1
lines changed- docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/TimeSeries
- src
- Microsoft.ML.Data/Transforms
- Microsoft.ML.TimeSeries
- test/Microsoft.ML.TimeSeries.Tests
5 files changed
+463
-1
lines changedLines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| 600 | + | |
600 | 601 | | |
601 | 602 | | |
602 | 603 | | |
| |||
1213 | 1214 | | |
1214 | 1215 | | |
1215 | 1216 | | |
1216 | | - | |
| 1217 | + | |
1217 | 1218 | | |
1218 | 1219 | | |
1219 | 1220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
216 | 262 | | |
217 | 263 | | |
218 | 264 | | |
| |||
0 commit comments