← Back to all sparks
D

desirability2

ANALYTICS
Velocity0.0

Multi-objective optimization using desirability functions for R models

desirability2 is making multi-metric model selection a first-class tidymodels step.

tidymodelsmulti-objective optimizationmodel selectiondesirability functionsr
Current state
desirability2 implements desirability functions, which map several metrics onto a common 0-1 scale so they can be combined into a single objective. The package is young: three releases, the first of which only added a NEWS file. Its substance arrived in 0.1.0 with hooks into tidymodels' tune package.
Where it's heading
The direction is integration rather than standalone use. Version 0.1.0 added select_best_desirability() and show_best_desirability() to resolve a tuning run against several metrics at once; 0.2.0 exported make_desirability_cols() so other packages can build on it and made data-driven limits the default, removing the need to state ranges by hand. Both releases move work from the user into the package.
Prediction
The exported helper and the developer-facing desirability() API point to adoption by other tidymodels packages as the next step rather than new functionality here.

Recent moves

  1. 11mo ago

    make_desirability_cols() exported; data-driven limits on by default

    Exports make_desirability_cols() for other packages to build on and flips .use_data to TRUE so limits are estimated from the data by default, with infinite values ignored and identical low/high estimates nudged apart. Follows through on 0.1.0's move to make the package something others depend on.

    View source ↗
  2. 1y ago

    Desirability-based model selection added for tune

    ⚡ SPARK

    The release that connects desirability functions to tidymodels tuning, turning multi-metric model selection into a stated objective rather than a manual read of a results table. It also introduces the developer API that 0.2.0 then builds on.

    View source ↗
  3. 3y ago

    NEWS.md added to track package changes

    Adds a NEWS.md file and nothing else. The starting point of the visible history rather than a release with content.

    View source ↗