dssg / triage

General Purpose Risk Modeling and Prediction Toolkit for Policy and Social Good Problems
Other
182 stars 61 forks source link

Eliminate the `matrix_type` and `is_test` concepts #855

Open ecsalomon opened 3 years ago

ecsalomon commented 3 years ago

Pulling this out into an issue. Context from my earlier comment on the retrain-and-predict PR: We decided on using matrix_type in the first version of triage to handle different label behavior in train and test in the inspections use case. It never made much conceptual sense, and introducing new code paths has re-exposed the weaknesses of that choice and is committing us to further weirdness.

I don't know if you all discussed this on Tuesday, but here are a couple of possible solutions for Triage v 5.0.0. The first is probably easier to implement, but I think it is the less good solution:

An alternative:

_Originally posted by @ecsalomon in https://github.com/dssg/triage/pull/631#discussion_r684638916_