(x: Sequence[Sequence[float]])
| 455 | table = _importance_table(names, per_feature) |
| 456 | payload = viz.prepare_feature_importance_payload( |
| 457 | table["feature"].to_list(), table["mean"].to_list(), std=table["stderr"].to_list() |
| 458 | ) |
| 459 | return { |
| 460 | "method": "sfi", |
| 461 | "table": table, |
| 462 | "records": table.to_dicts(), |
| 463 | "viz_payload": payload, |
| 464 | "cv": { |
| 465 | "method": "purged_kfold" if event_end_indices is not None else "kfold_embargo_only", |
| 466 | "purged": event_end_indices is not None, |
| 467 | "n_splits": n_splits, |
| 468 | "pct_embargo": pct_embargo, |
| 469 | "fold_count": len(splits), |
| 470 | "scoring": scoring, |
no test coverage detected