antonypamo commited on
Commit
79a556c
·
verified ·
1 Parent(s): fcf5c26

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +122 -1
README.md CHANGED
@@ -7,4 +7,125 @@ metrics:
7
  pipeline_tag: tabular-regression
8
  tags:
9
  - code
10
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  pipeline_tag: tabular-regression
8
  tags:
9
  - code
10
+ ---
11
+
12
+ # RRF-Savant Meta-State Logistic Regression
13
+
14
+ ## Model Summary
15
+
16
+ This repository contains a lightweight **logistic regression** classifier implemented with **scikit-learn**.
17
+ The model operates on **15-dimensional RRF-Savant meta-state features**, derived from the RRF / SavantEngine pipeline, and outputs a binary prediction with associated probabilities.
18
+
19
+ It is designed as a fast, interpretable decision layer on top of the richer RRF-Savant embedding and resonance machinery.
20
+
21
+ ---
22
+
23
+ ## Model Details
24
+
25
+ - **Model type:** Logistic Regression (binary classifier)
26
+ - **Framework:** scikit-learn
27
+ - **Input dimensionality:** 15
28
+ - **Source notebook:** `RRFSavant_AGI_Core_Colab.ipynb`
29
+ - **File format (recommended):** `joblib` (`.joblib`)
30
+
31
+ ### Input Features
32
+
33
+ Each input is a 15-dimensional feature vector:
34
+
35
+ - **RRF-Savant meta-state features**, including:
36
+ - φ / Φ phase indicators (RRF-Savant “phi” level)
37
+ - Ω / omega dynamics or cycle index
38
+ - Global coherence / resonance scores
39
+ - Spectral features:
40
+ - `S_RRF`: spectral smoothness
41
+ - `C_RRF`: spectral concentration
42
+ - Energy-like measures (e.g. `E_H`)
43
+ - Dominant frequency or harmonic index
44
+ - One-hot encoded Φ nodes / states
45
+
46
+ > Exact semantics and preprocessing are defined in the source notebook
47
+ > `RRFSavant_AGI_Core_Colab.ipynb`.
48
+
49
+ ### Outputs
50
+
51
+ - `y_pred`: binary class label (e.g. `0` vs `1`)
52
+ - `proba`: probability estimates for each class via `predict_proba`
53
+
54
+ The precise interpretation of class `0` and class `1` (e.g. baseline vs. “RRF-aligned” state, safe vs. risky, etc.) should be documented alongside your use-case.
55
+
56
+ ---
57
+
58
+ ## Intended Use
59
+
60
+ - **Primary use:**
61
+ - As a **meta-controller** for RRF-Savant systems, mapping high-level meta-state features to a simple decision (binary label).
62
+ - As a **fast screening / routing head** deciding whether to:
63
+ - escalate to a heavier RRF/Savant pipeline,
64
+ - trigger a specific operating mode,
65
+ - log / flag certain states.
66
+
67
+ - **Not intended for:**
68
+ - Standalone critical decision-making (medical, legal, safety-critical applications) without human oversight.
69
+ - Direct real-world risk scoring without proper calibration and validation.
70
+
71
+ ---
72
+
73
+ ## Training
74
+
75
+ - **Training framework:** scikit-learn `LogisticRegression`
76
+ - **Data source:**
77
+ - Internal RRF-Savant meta-state dataset, generated and curated in
78
+ `RRFSavant_AGI_Core_Colab.ipynb`.
79
+ - **Preprocessing (typical):**
80
+ - Numeric features scaled (e.g. `StandardScaler`)
81
+ - Categorical / discrete Φ nodes one-hot encoded
82
+ - Train/validation split performed inside the notebook
83
+
84
+ > For exact data splits, preprocessing, and hyperparameters, refer to the Colab notebook.
85
+
86
+ ---
87
+
88
+ ## Evaluation
89
+
90
+ Typical metrics for this model family include:
91
+
92
+ - Accuracy
93
+ - ROC-AUC
94
+ - Precision / Recall / F1
95
+ - Calibration of probabilities
96
+
97
+ You should log and report:
98
+
99
+ - Metrics on a **held-out test set**
100
+ - Any **class imbalance** handling performed (e.g. `class_weight="balanced"`)
101
+
102
+ ---
103
+
104
+ ## How to Use Assuming model is loaded
105
+ import joblib
106
+ import numpy as np
107
+
108
+ # Load model
109
+ clf = joblib.load("rrf_savant_meta_logit.joblib")
110
+
111
+ # Example: single feature vector (15 dims)
112
+ x = np.array([
113
+ 0.85087634, 0.67296168, 0.74652746,
114
+ 0.03735409, 0.72399869, 0.66076596,
115
+ 0.30312352, 0.69585885, 0.98531076,
116
+ 0.28866375, 0.99602791, 0.69072907,
117
+ 0.05884264, 0.74298728, 0.75928443
118
+ ]).reshape(1, -1)
119
+
120
+ # Prediction
121
+ y_pred = clf.predict(x)[0]
122
+ proba = clf.predict_proba(x)[0] # [P(class 0), P(class 1)]
123
+
124
+ print("Predicted label:", y_pred)
125
+ print("Probabilities:", proba)
126
+
127
+
128
+ ### Install Dependencies
129
+
130
+ ```bash
131
+ pip install scikit-learn numpy joblib