← Back to home
Comparison · Analytics

hardhat vs mlr3tuning

A side-by-side editorial comparison of hardhat and mlr3tuning — release velocity, themes, recent moves, and the top alternatives to consider.

hardhat vs mlr3tuning: at a glance

Featurehardhatmlr3tuning
SectorAnalyticsAnalytics
Velocity score0.02.5
Sparks · 30d00
Top themestidymodels, r-stats, machine-learning, infrastructuremlr3, hyperparameter-tuning, async-optimization, callbacks
Last editorial update3h ago1h ago
WebsiteVisit →Visit →

What is hardhat?

hardhat keeps adding the contracts tidymodels needs next

hardhat is the infrastructure layer under tidymodels, defining the preprocessing and extraction contracts other packages implement. Its releases read as a list of new generics and vector classes: extract_postprocessor(), extract_fit_time(), extract_tailor(), and a quantile_pred() class for quantile-regression output. The newest release is narrow warning and missing-value handling in mold().

Read the full hardhat trajectory →

What is mlr3tuning?

mlr3tuning is rebuilding its async machinery under a stable public surface

mlr3tuning provides hyperparameter optimization for the mlr3 ecosystem, and its recent history is dominated by the asynchronous tuning path: archive freezing, callback stages around queue evaluation, and version-locked compatibility with the rush backend. Releases pair a small feature with several fixes and an explicit compatibility line naming the mlr3 or rush version they track. The most recent release drops all workarounds for older rush versions, which suggests that dependency has stabilized enough to require rather than accommodate.

Read the full mlr3tuning trajectory →

hardhat vs mlr3tuning: editorial side-by-side

H
hardhat
ANALYTICS
0.0

hardhat keeps adding the contracts tidymodels needs next

◆ Current state

hardhat is the infrastructure layer under tidymodels, defining the preprocessing and extraction contracts other packages implement. Its releases read as a list of new generics and vector classes: extract_postprocessor(), extract_fit_time(), extract_tailor(), and a quantile_pred() class for quantile-regression output. The newest release is narrow warning and missing-value handling in mold().

◆ Where it's heading

Each addition here lands ahead of a user-facing feature elsewhere in tidymodels — the postprocessor and tailor generics precede the postprocessing workflow, quantile_pred() precedes quantile prediction in parsnip. The package's own surface stays deliberately small and its cadence follows what the rest of the stack is about to need.

◆ Prediction

Expect further extraction generics and prediction-type classes as tidymodels builds out postprocessing, with hardhat's own API remaining thin.

M
mlr3tuning
ANALYTICS
2.5

mlr3tuning is rebuilding its async machinery under a stable public surface

◆ Current state

mlr3tuning provides hyperparameter optimization for the mlr3 ecosystem, and its recent history is dominated by the asynchronous tuning path: archive freezing, callback stages around queue evaluation, and version-locked compatibility with the rush backend. Releases pair a small feature with several fixes and an explicit compatibility line naming the mlr3 or rush version they track. The most recent release drops all workarounds for older rush versions, which suggests that dependency has stabilized enough to require rather than accommodate.

◆ Where it's heading

Two things are being tidied at once. The async archive is converging on a consistent data.table representation across batch and async variants, so results are shaped the same regardless of how tuning ran. Separately, the package is becoming a better ecosystem citizen — unioning tuner properties on load instead of overwriting them, removing its callbacks on unload, and raising informative errors from AutoTuner accessors on an untrained model. Both are the marks of a package used as a dependency more than as a destination.

◆ Prediction

With rush pinned to 1.2.0 and the compatibility shims gone, the next release is likely to expose more of the async path through callbacks rather than change the tuning interface.

Alternatives to hardhat and mlr3tuning

Other Analytics products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either hardhat or mlr3tuning.

See all hardhat alternatives → · See all mlr3tuning alternatives →

Recent activity from hardhat and mlr3tuning

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 18d agomlr3tuningmlr3tuning 1.6.1 stops clobbering other packages' tuner properties
  2. 4mo agohardhatmold() warning and quantile missing-value fixes
  3. 4mo agomlr3tuningmlr3tuning 1.6.0 aligns archive column order across tuning classes
  4. 8mo agomlr3tuningmlr3tuning 1.5.1 tracks xgboost 3.1.2.1
  5. 8mo agomlr3tuningmlr3tuning 1.5.0 adds queue evaluation stages to async callbacks
  6. 11mo agohardhatextract_tailor() generic added
  7. 1y agomlr3tuningmlr3tuning 1.4.0 unifies logging under a base mlr3 logger
  8. 1y agohardhatquantile_pred() class for quantile regression output
  9. 1y agomlr3tuningmlr3tuning 1.3.0 adds a frozen async archive and leaner worker storage
  10. 2y agohardhatextract_postprocessor() and extract_fit_time() generics
  11. 2y agohardhatDocumentation topic renamed at CRAN's request
  12. 3y agohardhatMulti-outcome prediction helpers and one-hot factor encoding

Frequently asked questions

What is the difference between hardhat and mlr3tuning?

They serve adjacent needs but don't currently overlap on shipped themes. mlr3tuning is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is hardhat better than mlr3tuning?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. mlr3tuning is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.

What are the best alternatives to hardhat?

Top hardhat alternatives in Analytics are ranked by recent ship velocity. Browse the "hardhat alternatives" section above for the current picks, or visit /alternatives/hardhat for the full list with editorial commentary on each.

What are the best alternatives to mlr3tuning?

Top mlr3tuning alternatives in Analytics are ranked by recent ship velocity. Browse the "mlr3tuning alternatives" section above for the current picks, or visit /alternatives/mlr3tuning for the full list with editorial commentary on each.