Commit 9fb1c7a
Extract get_heterogeneous_feature_mapping into MultiTaskDataset (meta-pytorch#3285)
Summary:
Pull Request resolved: meta-pytorch#3285
Extracts the shared feature-ordering and index-mapping logic from `HeterogeneousMTGP.construct_inputs` into `MultiTaskDataset.get_heterogeneous_feature_mapping()`, enabling reuse by `MultiTaskGP.construct_inputs` in the follow-up diff.
Reviewed By: sdaulton
Differential Revision: D101903471
fbshipit-source-id: 5a2c7fd85617d1f0e2eb10c7dd8f1fe0d2765d5a1 parent 8a0cbef commit 9fb1c7a
3 files changed
Lines changed: 70 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
313 | 301 | | |
314 | 302 | | |
315 | 303 | | |
316 | | - | |
| 304 | + | |
317 | 305 | | |
318 | 306 | | |
319 | 307 | | |
320 | 308 | | |
321 | 309 | | |
322 | 310 | | |
323 | 311 | | |
324 | | - | |
| 312 | + | |
325 | 313 | | |
326 | 314 | | |
327 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
545 | 585 | | |
546 | 586 | | |
547 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
494 | 519 | | |
495 | 520 | | |
496 | 521 | | |
| |||
0 commit comments