paucablop / chemotools

Integrate your chemometric tools with the scikit-learn API πŸ§ͺ πŸ€–
https://paucablop.github.io/chemotools/
MIT License
45 stars 6 forks source link

Add `pybaseline` support #128

Open MothNik opened 3 months ago

MothNik commented 3 months ago

πŸšΆβž‘οΈπŸƒ Proposed Enhancement

We could add a super general purpose estimator that integrates the pybaseline package for elaborate baseline correction. The package is great and offers a variety of baseline algorithms, among them erPLS for automated selection of the smoothing parameter. However, it is purely function-based and this is where chemotools comes in.

πŸ§‘β€πŸ’» Implementation Details

If we keep a general estimator like

PyBaselineCorrection(algorithm, algorithm_kwargs)

we could integrate the full package with just a single estimator. We can make the algorithm_kwargs dictionary- and also dataclass-based because the latter does not require the user to look at two documentations of two packages at the same time πŸ€” In case we like an algorithm a lot, we can consider transitioning this to its own dedicated estimator. It will be a lof of tedious copying of specifications, but if that enables a great feature, why not?