Commit 65efe4c
fix: resolve production issues in time series models
InformerModel:
- Fixed options divergence using constructor chaining pattern
- Added seed parameter to encoder/decoder blocks for unique weights per layer
- Made _embeddingDim non-readonly for deserialization compatibility
- Encoder Forward() now uses both attention and FFN weights
- Decoder Forward() now uses both self-attention and cross-attention weights
- Set _embeddingDim from deserialized matrix size in both blocks
- Fixed layer initialization to pass different seeds per layer
DeepARModel:
- UpdateWeights now updates ALL mean weights, mean bias, scale weights, and scale bias
- Previously only updated 5 out of 64+ weights per batch (tiny subset)
DeepANT:
- Fixed options divergence using constructor chaining pattern
- Fixed copy constructor to copy all base class properties
- Fixed ConvLayer kernel shape from [out, in*k] to [out, k] - was wasting weights
- Added seed parameter to ConvLayer for unique weights per layer
ChronosFoundationModel:
- Fixed options divergence using constructor chaining pattern
- Fixed copy constructor to copy all base class properties
- Added seed parameter to TransformerBlock for unique weights per layer
- Fixed layer initialization to pass different seeds per layer
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0cb9224 commit 65efe4c
4 files changed
Lines changed: 180 additions & 50 deletions
File tree
- src/TimeSeries
- AnomalyDetection
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
54 | | - | |
| 62 | + | |
| 63 | + | |
55 | 64 | | |
56 | 65 | | |
57 | 66 | | |
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
61 | | - | |
| 70 | + | |
62 | 71 | | |
63 | | - | |
64 | | - | |
| 72 | + | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| |||
322 | 331 | | |
323 | 332 | | |
324 | 333 | | |
| 334 | + | |
325 | 335 | | |
326 | 336 | | |
327 | 337 | | |
328 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
329 | 351 | | |
330 | 352 | | |
331 | 353 | | |
| |||
335 | 357 | | |
336 | 358 | | |
337 | 359 | | |
338 | | - | |
339 | 360 | | |
340 | 361 | | |
341 | 362 | | |
342 | 363 | | |
343 | 364 | | |
344 | 365 | | |
345 | 366 | | |
346 | | - | |
| 367 | + | |
347 | 368 | | |
348 | 369 | | |
349 | | - | |
350 | 370 | | |
351 | 371 | | |
352 | 372 | | |
353 | | - | |
354 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
355 | 376 | | |
356 | | - | |
| 377 | + | |
357 | 378 | | |
358 | 379 | | |
359 | 380 | | |
| |||
379 | 400 | | |
380 | 401 | | |
381 | 402 | | |
382 | | - | |
| 403 | + | |
383 | 404 | | |
384 | 405 | | |
385 | | - | |
386 | | - | |
| 406 | + | |
387 | 407 | | |
388 | 408 | | |
389 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
53 | | - | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
73 | 82 | | |
74 | 83 | | |
75 | 84 | | |
76 | | - | |
| 85 | + | |
77 | 86 | | |
78 | 87 | | |
79 | | - | |
| 88 | + | |
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
| |||
422 | 431 | | |
423 | 432 | | |
424 | 433 | | |
| 434 | + | |
425 | 435 | | |
426 | 436 | | |
427 | 437 | | |
| |||
430 | 440 | | |
431 | 441 | | |
432 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
433 | 455 | | |
434 | 456 | | |
435 | 457 | | |
| |||
443 | 465 | | |
444 | 466 | | |
445 | 467 | | |
446 | | - | |
| 468 | + | |
447 | 469 | | |
448 | 470 | | |
449 | | - | |
| 471 | + | |
450 | 472 | | |
451 | 473 | | |
452 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
184 | 185 | | |
185 | | - | |
186 | | - | |
| 186 | + | |
| 187 | + | |
187 | 188 | | |
188 | | - | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 201 | + | |
205 | 202 | | |
206 | 203 | | |
207 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 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 | + | |
208 | 259 | | |
209 | 260 | | |
210 | 261 | | |
| |||
0 commit comments