MultiSeedTrainerView
Multi-seed evaluation/plotting view for a Trainer.
Obtain via trainer.multi_seed(...). Exposes the same eval/plot methods as the
underlying trainer, running each across convergent seed checkpoints and aggregating.
Source code in gradiend/trainer/core/multi_seed.py
__getattr__
_bind_method
Source code in gradiend/trainer/core/multi_seed.py
_cleanup_model
_load_seed_model
Source code in gradiend/trainer/core/multi_seed.py
_plot_with_seed_encoder_df
Source code in gradiend/trainer/core/multi_seed.py
_prepare_seed_data
Source code in gradiend/trainer/core/multi_seed.py
_run_for_seeds
Source code in gradiend/trainer/core/multi_seed.py
564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 | |
_seed_run_metadata
Source code in gradiend/trainer/core/multi_seed.py
evaluate
Run trainer.evaluate for each selected seed and aggregate results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Forwarded to the underlying trainer method. |
{}
|
Source code in gradiend/trainer/core/multi_seed.py
evaluate_decoder
Run decoder evaluation for each selected seed and aggregate metrics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Forwarded to |
{}
|
Source code in gradiend/trainer/core/multi_seed.py
evaluate_encoder
Run encoder evaluation for each selected seed and aggregate metrics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Forwarded to |
{}
|
Source code in gradiend/trainer/core/multi_seed.py
get_model
Load the selected seed checkpoint(s) for analysis or comparison.
A single checkpoint returns the model directly. Multiple checkpoints
return a :class:~gradiend.trainer.core.seed_models.SeedModelGroup for
use with similarity / top-k overlap matrix builders.
Source code in gradiend/trainer/core/multi_seed.py
load_models
Load all seed checkpoints into memory (caller should release when done).
Source code in gradiend/trainer/core/multi_seed.py
multi_seed
Re-wrap the inner trainer (replaces view options when kwargs are passed).
plot_encoder_by_target
Create one held-out-target encoder plot with one row per selected seed.
The default selection is "all_convergent", so this method naturally
focuses the target-word analysis on convergent checkpoints.
Source code in gradiend/trainer/core/multi_seed.py
715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 | |
plot_encoder_distributions
Create encoder-distribution plots for each selected seed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Forwarded to |
{}
|
Source code in gradiend/trainer/core/multi_seed.py
plot_encoder_scatter
Create interactive encoder-scatter plots for each selected seed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Forwarded to |
{}
|
Source code in gradiend/trainer/core/multi_seed.py
plot_encoder_strip_by_split
Create encoder strip-by-split plots for each selected seed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Forwarded to |
{}
|
Source code in gradiend/trainer/core/multi_seed.py
plot_probability_shifts
Create decoder probability-shift plots for each selected seed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Forwarded to |
{}
|
Source code in gradiend/trainer/core/multi_seed.py
plot_training_convergence
Create training-convergence plots for each selected seed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Forwarded to |
{}
|
Source code in gradiend/trainer/core/multi_seed.py
seed_models
Lazy-load seed checkpoints (shared base model when possible).