elphick / mass-composition

Manage mass composition math operations and visualisation
https://elphick.github.io/mass-composition/
MIT License
1 stars 1 forks source link

Support for splitting with estimator #147

Closed elphick closed 5 months ago

elphick commented 5 months ago

This task is to provide a way to split a sample using an estimator/ML model. We already have a mc.split method that splits self into two new objects by mass. We also have an mc.apply_partition method that will split using a partition on the index. We should consider renaming all 3 methods similarly for consistency.

Of course the model will ideally preserve mass, however MCNetwork's job is to advise us of this. Additionally, any out-of-range estimates on the resultant 2 objects will be flagged under the status property.

elphick commented 5 months ago

NOTE - a breaking change - renamed the apply_partition method to split_by_partition for method name consistency.