Source-domain probability ensemble
neureptrace.decoding.source_ensemble trains one classifier per source domain and combines held-out target probabilities.
Uniform weighting is Category 1 because target rows are only scored. Non-uniform weighting modes are Category 2 because unlabeled target predictions or target feature distributions affect the source-domain weights.
Supported weighting modes are uniform, target_confidence, target_entropy, and target_feature_similarity.
The public API intentionally has no target_labels argument.
neureptrace.decoding.source_ensemble
Source-domain probability ensembles for cross-subject decoding.
SourceDomainModel
dataclass
One fitted source-domain classifier and its provenance.
Source code in src/neureptrace/decoding/source_ensemble.py
23 24 25 26 27 28 29 30 | |
SourceDomainEnsembleResult
dataclass
Target probabilities from a source-domain classifier ensemble.
Source code in src/neureptrace/decoding/source_ensemble.py
33 34 35 36 37 38 39 40 41 42 43 | |
fit_source_domain_probability_ensemble(*, source_features, source_labels, source_domains, target_features, estimator=None, weighting='uniform', temperature=DEFAULT_TEMPERATURE, min_classes_per_domain=2, epsilon=DEFAULT_EPSILON)
Fit per-source-domain classifiers and ensemble their target probabilities.
Source code in src/neureptrace/decoding/source_ensemble.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
normalize_ensemble_weighting(value)
Normalize public source-domain ensemble weighting aliases.
Source code in src/neureptrace/decoding/source_ensemble.py
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |