Coverage for aether_quant/training.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.17.3, created at 2026-11-22 12:55 +0000

1"""Training without the training stack: splits, purges, purged folds, yearly windows, ranked inputs, the walk-forward linear model, signal recipes, and what the models could know. 

2Also training on a small machine (V6.6.10): memory profiles and their estimate, lazy sequence windows, a float32 chunked reader and the process's peak memory, 

3and resumable runs: a run folder with its record and finished steps, the run to continue, and the list of runs.""" 

4 

5from evaluation.model_audit import audit_trial_ids, feature_group_ic, fundamental_coverage, group_table 

6from evaluation.walk_forward_linear import fama_macbeth_ridge, monthly_slope 

7from features.training_splits import annual_windows, assign_split, assign_split_series, centred_label, purge_label_overlap, purge_label_overlap_calendar, purged_embargoed_folds, rank_inputs 

8from portfolio.signal_construction import build_table, residualise_signal 

9from retraining.run_resume import done_steps, find_resumable, is_finished, list_runs, mark_done, render_runs, start_record, update_record 

10from retraining.slicing import ( 

11 MemoryProfile, 

12 estimate_peak_gb, 

13 gather_windows, 

14 log_peak, 

15 memory_profile, 

16 process_memory_mb, 

17 profile_summary, 

18 read_csv_float32, 

19 sequence_window_index, 

20) 

21 

22__all__ = [ 

23 "MemoryProfile", 

24 "annual_windows", 

25 "assign_split", 

26 "assign_split_series", 

27 "audit_trial_ids", 

28 "build_table", 

29 "centred_label", 

30 "done_steps", 

31 "estimate_peak_gb", 

32 "fama_macbeth_ridge", 

33 "feature_group_ic", 

34 "find_resumable", 

35 "fundamental_coverage", 

36 "gather_windows", 

37 "group_table", 

38 "is_finished", 

39 "list_runs", 

40 "log_peak", 

41 "mark_done", 

42 "memory_profile", 

43 "monthly_slope", 

44 "process_memory_mb", 

45 "profile_summary", 

46 "purge_label_overlap", 

47 "purge_label_overlap_calendar", 

48 "purged_embargoed_folds", 

49 "rank_inputs", 

50 "read_csv_float32", 

51 "render_runs", 

52 "residualise_signal", 

53 "sequence_window_index", 

54 "start_record", 

55 "update_record", 

56]