josephsoo commited on
Commit
2918749
·
1 Parent(s): a2ae653

Standardize Spearman notation

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. data/release_manifest.json +1 -1
app.py CHANGED
@@ -1709,7 +1709,7 @@ def feature_spec(dataset: str) -> tuple[str, str, str, float | None]:
1709
  return (
1710
  "spearman_corr",
1711
  "Drifting-gratings gOSI",
1712
- "Spearman’s ρ",
1713
  0.0,
1714
  )
1715
  if dataset == "ratinabox":
@@ -2112,7 +2112,7 @@ def trial_retrain_figures() -> tuple[go.Figure, go.Figure, go.Figure, pd.DataFra
2112
  )
2113
  relation.add_hline(y=0, line_dash="dash", line_color="#69737D")
2114
  relation_text = (
2115
- f"Spearman ρ = {rho:.2f}; n = {len(relation_frame)}"
2116
  if pd.notna(rho)
2117
  else f"n = {len(relation_frame)}; select at least two methods for correlation"
2118
  )
@@ -3508,7 +3508,7 @@ def update_feature(dataset: str, models: list[str] | None):
3508
  _column, _target, metric, _reference = feature_spec(dataset)
3509
  if dataset == "allen_neuropixels":
3510
  definition = (
3511
- "Spearman’s ρ measures association between feature-attribution values "
3512
  "and each unit’s gOSI measured from drifting gratings."
3513
  )
3514
  elif dataset == "ratinabox":
 
1709
  return (
1710
  "spearman_corr",
1711
  "Drifting-gratings gOSI",
1712
+ "Spearman’s r",
1713
  0.0,
1714
  )
1715
  if dataset == "ratinabox":
 
2112
  )
2113
  relation.add_hline(y=0, line_dash="dash", line_color="#69737D")
2114
  relation_text = (
2115
+ f"Spearman’s r = {rho:.2f}; n = {len(relation_frame)}"
2116
  if pd.notna(rho)
2117
  else f"n = {len(relation_frame)}; select at least two methods for correlation"
2118
  )
 
3508
  _column, _target, metric, _reference = feature_spec(dataset)
3509
  if dataset == "allen_neuropixels":
3510
  definition = (
3511
+ "Spearman’s r measures association between feature-attribution values "
3512
  "and each unit’s gOSI measured from drifting gratings."
3513
  )
3514
  elif dataset == "ratinabox":
data/release_manifest.json CHANGED
@@ -6,7 +6,7 @@
6
  "manuscript_working_version": "manuscript_v8",
7
  "schema_version": 1,
8
  "source": "paper/results, active consistency and feature-attribution artifacts, benchmark dataset arrays, and Figure 5 prediction sidecars",
9
- "source_git_revision": "e8803f68d58da2e0ee43ad51782cb880731bb884",
10
  "source_repository": "https://github.com/TangLab-UBC/behavior_benchmarking",
11
  "tables": {
12
  "clean_prediction_summary.csv": {
 
6
  "manuscript_working_version": "manuscript_v8",
7
  "schema_version": 1,
8
  "source": "paper/results, active consistency and feature-attribution artifacts, benchmark dataset arrays, and Figure 5 prediction sidecars",
9
+ "source_git_revision": "b22e5c3452975fd94c455ef16639bd95f993f9f7",
10
  "source_repository": "https://github.com/TangLab-UBC/behavior_benchmarking",
11
  "tables": {
12
  "clean_prediction_summary.csv": {