Skip to content

yardstick 1.3.0

Compare
Choose a tag to compare
@EmilHvitfeldt EmilHvitfeldt released this 20 Jan 01:11

New Metrics

  • The Brier score for survival data was added with brier_survival().

  • The Integrated Brier score for survival data was added with brier_survival_integrated().

  • The Concordance index for survival data was added with concordance_survival().

  • Time-Dependent ROC curves estimation for right-censored data can now be
    calculated with roc_curve_survival().

  • Time-Dependent ROC AUC estimation for right-censored data can now be
    calculated with roc_auc_survival().

Improvements

  • demographic_parity(), equalized_odds(), and equal_opportunity() are new metrics for measuring model fairness. Each is implemented with the new_groupwise_metric() constructor, a general interface for defining group-aware metrics that allows for quickly and flexibly defining fairness metrics with the problem context in mind.

  • metric_set() can now be used with a combination of dynamic and static survival metrics.

  • Added a print method for metrics and metric sets (#435).

  • All warnings and errors have been updated to use the cli package for increased clarity and consistency. (#456, #457, #458)

  • brier_survival_integrated() now throws an error if input data only includes 1 evalution time point. (#460)

  • Clarifying documentation about how event_level always default to "first. (#432)

Bug Fixes

  • Metrics now throw more informative error if estimate argument is wrongly used. (#443)

Breaking Changes

  • Curve metrics now throw an informative error instead of returning NA when missing values are found and na_rm = FALSE. (#344)