This repository was archived by the owner on Dec 6, 2023. It is now read-only.
Commit 15faf82
committed
Modified score_samples to keep predictions and actual labels the same shape with unidimensional outputs.
Replace denominator of scoring function with np.var(y). This means samples with equal error will have equal score. It also allows the average value of the samples to equal the r2_score for the entire set in the case of unidimensional data.1 parent 2deb260 commit 15faf82
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
1319 | | - | |
1320 | | - | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
1321 | 1326 | | |
1322 | 1327 | | |
1323 | 1328 | | |
| |||
0 commit comments