PopCoupling#
- class ts2.models.single_session.PopCoupling(sigma=None, gamma=None)[source]#
Bases:
ts2.models.single_session.stat_baseline.base.StatBaselinePopulation coupling.
- Parameters:
- fit(train_dataset, val_dataset)[source]#
Select sigma and gamma on val.
Val feeds the full population, so a population sum including unit i would leak its own target into its prediction. Instead of leaving out only unit i, the trace leaves out a whole fold the size of the test hold-out, so selection reads the population the model reads at test; the folds tile the units, so every unit is still scored.