SchlossLab/mikropml

Factor levels in outcome column are not preserved

kelly-sovacool opened this issue · 0 comments

Currently, the positive outcome is just whichever is the first row in the test data, which is random. This throws off performance metrics! We need to ensure the user's preferred positive class is preserved. We should probably add an argument for this to specify the "positive" label in case the outcome isn't a factor? This issue only applies to binary classification.