rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-capitalstrategy/src/hindsight.rs
Items
const RING_CAPACITY_PER_ENVELOPE const MIN_SAMPLES_FOR_FEEDBACK struct KindEnvelopeStats const ROLLING_WINDOW const LOSING_HIT_RATE const MIN_SAMPLES_FOR_DEMOTION static KIND_ENV_STATS const HINDSIGHT_FEEDBACK_SCALE struct SolverEnvelopeStats impl Default for SolverEnvelopeStats static SOLVER_ENV_STATS static SOLVER_ENV_REGIME_STATS const MIN_SOLVER_SAMPLES_FOR_EXPLOIT const ALL_SOLVERS const REWARD_BAND const DIRICHLET_WIN_THRESHOLD const UCB_EXPLORATION_C const BANDIT_WINDOW const THOMPSON_PRIOR_SE_FLOOR enum BanditMode impl BanditMode static BANDIT_MODE static RAND_COUNTER struct HindsightRing static HINDSIGHT const ABLATION_SIGNALS static SIGNAL_ENV_STATS static SOLVER_ASSET_ENV_STATS static KIND_SOLVER_ASSET_ENV_STATS const DEFAULT_PREDICTED_SIGMA const SIGMA_Z_CLAMP
Functions
By call-graph weight (PageRank; 1.0 is the average function). 71 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| sanitizesrc/hindsight.rs:1892 | fn | 3 | 2 | 9 | 0 | 4.5 | |
| pseudo_randomsrc/hindsight.rs:858 | fn | 5 | 1 | 6 | 3 | 4.2 | |
| solver_env_statssrc/hindsight.rs:173 | fn | 3 | 1 | 8 | 0 | 3.3 | |
| all_solver_env_statssrc/hindsight.rs:874 | fn | 4 | 1 | 14 | 2 | 2.8 | |
| sample_gammasrc/hindsight.rs:544 | fn | 28 | 7 | 4 | 2 | 2.5 | |
| record_solver_outcome_weightedsrc/hindsight.rs:335 | fn | 15 | 5 | 3 | 4 | 2.4 | |
| kind_env_statssrc/hindsight.rs:58 | fn | 3 | 1 | 6 | 0 | 2.3 | |
| mix_to_unitsrc/hindsight.rs:867 | fn | 4 | 1 | 2 | 0 | 2.1 | |
| record_solver_outcomesrc/hindsight.rs:325 | fn | 3 | 1 | 10 | 1 | 2 | |
| exp3_probabilitysrc/hindsight.rs:445 | fn | 7 | 2 | 2 | 0 | 1.9 | |
| compute_realized_value_forsrc/hindsight.rs:1873 | fn | 18 | 6 | 5 | 1 | 1.7 | |
| gaussian_samplesrc/hindsight.rs:816 | fn | 8 | 1 | 2 | 1 | 1.7 | |
| windowed_stats_ofsrc/hindsight.rs:519 | fn | 16 | 4 | 1 | 0 | 1.5 | |
| bar_close_atsrc/hindsight.rs:1822 | fn | 5 | 3 | 5 | 0 | 1.5 | |
| hindsightsrc/hindsight.rs:1074 | fn | 3 | 1 | 5 | 0 | 1.5 | |
| BanditMode::from_envsrc/hindsight.rs:283 | method | 3 | 1 | 1 | 1 | 1.5 | |
| hindsight_multiplier_forsrc/hindsight.rs:78 | fn | 11 | 2 | 2 | 3 | 1.4 | |
| evaluate_pendingsrc/hindsight.rs:1324 | fn | 138 | 6 | 6 | 17 | 1.3 | |
| apply_outcome_to_entrysrc/hindsight.rs:356 | fn | 47 | 6 | 2 | 1 | 1.2 | |
| record_solver_outcome_with_regime_weightedsrc/hindsight.rs:477 | fn | 28 | 5 | 2 | 5 | 1.2 | |
| solver_env_regime_statssrc/hindsight.rs:188 | fn | 3 | 1 | 3 | 0 | 1.2 | |
| memory_usage_snapshotsrc/hindsight.rs:1081 | fn | 31 | 2 | 4 | 5 | 1.2 | |
| current_bandit_modesrc/hindsight.rs:311 | fn | 3 | 1 | 5 | 1 | 1.1 | |
| signal_flags_forsrc/hindsight.rs:1132 | fn | 29 | 12 | 2 | 0 | 1.1 | |
| rehydrate_solver_env_statssrc/hindsight.rs:888 | fn | 61 | 6 | 2 | 2 | 1.1 | |
| all_solver_env_regime_statssrc/hindsight.rs:508 | fn | 4 | 1 | 2 | 2 | 1 | |
| solver_env_exp3_termssrc/hindsight.rs:404 | fn | 19 | 3 | 1 | 1 | 1 | |
| rehydrate_kind_env_statssrc/hindsight.rs:954 | fn | 37 | 4 | 1 | 2 | 1 | |
| rehydrate_stored_decisionssrc/hindsight.rs:1003 | fn | 19 | 4 | 1 | 3 | 1 | |
| all_kind_env_statssrc/hindsight.rs:91 | fn | 4 | 1 | 1 | 2 | 1 | |
| solver_asset_env_stats_cellsrc/hindsight.rs:1603 | fn | 3 | 1 | 2 | 0 | 1 | |
| arm_statssrc/hindsight.rs:714 | fn | 10 | 2 | 2 | 0 | 0.9 | |
| signal_env_statssrc/hindsight.rs:1182 | fn | 3 | 1 | 2 | 0 | 0.9 | |
| store_decision_with_alternatives_and_regimesrc/hindsight.rs:1274 | fn | 41 | 2 | 2 | 4 | 0.9 | |
| store_decision_with_alternativessrc/hindsight.rs:1260 | fn | 13 | 1 | 1 | 2 | 0.9 | |
| kind_solver_asset_env_stats_cellsrc/hindsight.rs:1611 | fn | 4 | 1 | 2 | 0 | 0.9 | |
| demotion_threshold_multipliersrc/hindsight.rs:1049 | fn | 16 | 3 | 2 | 3 | 0.9 | |
| signal_bucketssrc/hindsight.rs:1164 | fn | 13 | 2 | 2 | 0 | 0.8 | |
| sample_dirichletsrc/hindsight.rs:573 | fn | 7 | 2 | 2 | 1 | 0.8 | |
| all_solver_asset_env_statssrc/hindsight.rs:1724 | fn | 6 | 1 | 4 | 2 | 0.8 | |
| select_solver_forsrc/hindsight.rs:665 | fn | 11 | 5 | 2 | 9 | 0.8 | |
| solver_env_regime_exp3_termssrc/hindsight.rs:424 | fn | 20 | 3 | 1 | 1 | 0.7 | |
| all_kind_solver_asset_env_statssrc/hindsight.rs:1733 | fn | 7 | 1 | 2 | 2 | 0.7 | |
| refresh_signal_statssrc/hindsight.rs:1209 | fn | 20 | 6 | 2 | 4 | 0.7 | |
| signal_ablation_rowssrc/hindsight.rs:1232 | fn | 15 | 1 | 2 | 2 | 0.7 | |
| kind_env_stats_rowsrc/hindsight.rs:1577 | fn | 22 | 5 | 1 | 1 | 0.7 | |
| price_at_timesrc/hindsight.rs:1789 | fn | 22 | 4 | 1 | 4 | 0.7 | |
| record_counterfactual_solver_feedbacksrc/hindsight.rs:1517 | fn | 40 | 5 | 2 | 2 | 0.6 | |
| rolling_stats_fromsrc/hindsight.rs:1186 | fn | 19 | 5 | 1 | 1 | 0.6 | |
| BanditMode::is_windowedsrc/hindsight.rs:298 | method | 3 | 1 | 2 | 0 | 0.6 | |
| BanditMode::is_thompsonsrc/hindsight.rs:302 | method | 3 | 1 | 2 | 0 | 0.6 | |
| select_solver_dirichlet_thompson_innersrc/hindsight.rs:581 | fn | 29 | 5 | 2 | 2 | 0.6 | |
| select_solver_exp3_innersrc/hindsight.rs:611 | fn | 33 | 6 | 2 | 1 | 0.6 | |
| select_solver_ucb_innersrc/hindsight.rs:727 | fn | 37 | 5 | 2 | 2 | 0.6 | |
| select_solver_thompson_innersrc/hindsight.rs:773 | fn | 38 | 5 | 2 | 3 | 0.6 | |
| select_solver_for_with_regimesrc/hindsight.rs:677 | fn | 33 | 9 | 2 | 11 | 0.6 | |
| snapshot_stored_decisionssrc/hindsight.rs:1025 | fn | 10 | 3 | 1 | 2 | 0.6 | |
| pending_hindsight_entrysrc/hindsight.rs:1467 | fn | 19 | 1 | 1 | 0 | 0.6 | |
| envelope_hindsight_statssrc/hindsight.rs:1487 | fn | 18 | 4 | 1 | 1 | 0.6 | |
| global_hindsight_statssrc/hindsight.rs:1506 | fn | 10 | 2 | 1 | 0 | 0.6 | |
| refresh_kind_env_statssrc/hindsight.rs:1558 | fn | 18 | 5 | 1 | 3 | 0.6 | |
| refresh_cross_tab_statssrc/hindsight.rs:1616 | fn | 104 | 17 | 1 | 4 | 0.6 | |
| hindsight_decision_scoresrc/hindsight.rs:1746 | fn | 9 | 3 | 1 | 0 | 0.6 | |
| hindsight_verdictsrc/hindsight.rs:1756 | fn | 10 | 3 | 1 | 0 | 0.6 | |
| compute_actual_returnssrc/hindsight.rs:1767 | fn | 17 | 5 | 1 | 3 | 0.6 | |
| compute_realized_valuesrc/hindsight.rs:1830 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| SolverEnvelopeStats::defaultsrc/hindsight.rs:149 | trait impl | 20 | 1 | 0 | 0 | 0.5 | |
| BanditMode::as_strsrc/hindsight.rs:287 | method | 10 | 6 | 0 | 0 | 0.5 | |
| record_solver_outcome_with_regimesrc/hindsight.rs:464 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| best_solver_forsrc/hindsight.rs:828 | fn | 18 | 5 | 0 | 3 | 0.5 | |
| store_decisionsrc/hindsight.rs:1250 | fn | 3 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.