uio-bmi / immuneML

immuneML is a platform for machine learning analysis of adaptive immune receptor repertoire data.
https://immuneml.uio.no
GNU Affero General Public License v3.0
62 stars 29 forks source link

Bugfix: label positive_class could not be defined in exploratory analysis #105

Closed LonnekeScheffer closed 3 years ago

LonnekeScheffer commented 3 years ago

I moved the label processing code from TrainMLModelParser to a common LabelHelper class, so it can be used by multiple instructions. The original label processing code in ExploratoryAnalysis was too simple to deal with label positive_class definitions (necessary when testing SequenceAbundance encoder in expl. analysis). Now both TrainMLModelParser and ExploratoryAnalysisParser use LabelHelper to construct their LabelConfiguration.