RubixML / ML

A high-level machine learning and deep learning library for the PHP language.
https://rubixml.com
MIT License
2k stars 177 forks source link

Add a Median strategy #337

Closed 27pchrisl closed 4 weeks ago

27pchrisl commented 1 month ago

Hi,

This PR contributes the Median strategy for the Imputer.

andrewdalpino commented 4 weeks ago

Hey thanks @27pchrisl, unfortunately we already have a Strategy that covers the median use-case that is the Percentile strategy. A 50th percentile is equivalent to the median.

https://github.com/RubixML/ML/blob/master/src/Strategies/Percentile.php