qsar_ridge
Small-N standardized Ridge QSAR/ADMET regressor with exact Hat-matrix Leave-One-Out cross-validation (R², Q²_LOO, RMSE_LOO) and leverage applicability-domain checks for candidate predictions.
- Field
- Chemistry
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 0.05 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001exact linear SAR y = 2*x1 - 3*x2 + 5 -> R2 = 1.0, Q2_LOO = 1.0, predicts [3,1] = 8.0passed
r2_train1 ± 1e-061lockedunder 0.01 % of the tolerance usedq2_loo1 ± 1e-061lockedunder 0.01 % of the tolerance usedfirst_prediction8 ± 0.00018locked0.67 % of the tolerance used
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
train_x | 2D array of training feature vectors. | ||
train_y | Training target values (e.g. pIC50). | ||
alpha | 1 | 1.0 | |
predict_x | Optional 2D array of candidate feature vectors to score. |
Readings
| Name | Unit | Meaning |
|---|---|---|
n_train | 1 | |
n_features | 1 | |
r2_train | 1 | |
q2_loo | 1 | |
rmse_train | 1 | |
rmse_loo | 1 | |
first_prediction | 1 |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.