← Back to home
Comparison · Infra & APIs

midr vs tf

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

midr vs tf: at a glance

Featuremidrtf
SectorInfra & APIsInfra & APIs
Velocity score0.00.0
Sparks · 30d00
Top themesexplainable-ai, surrogate-models, shapley, survival-analysisfunctional-data-analysis, vctrs, multivariate, r-packages
Last editorial update42m ago1h ago
WebsiteVisit →Visit →

What is midr?

A black-box interpreter reaches CRAN, then learns multi-class and survival responses

midr explains black-box models by fitting an interpretable surrogate through Maximum Interpretation Decomposition — main effects plus second-order interactions, with exact Shapley values for the surrogate. Two months after its first CRAN release it can take a matrix response, which covers multi-class classification and survival models, and hold collections of fitted interpretations in midlist and midrib objects for comparison.

Read the full midr trajectory →

What is tf?

tf gave functional data a second dimension: curves whose values are vectors.

tf supplies the vector classes underneath the tidyfun stack — tfd for raw functional observations, tfb for basis-represented ones, both built on vctrs so curves sit in a data frame column and behave like any other vector. Until July that codomain was scalar. The 0.5.0 release adds tfd_mv and tfb_mv, classes for functions whose values are vectors in R^d, and rebuilds the analysis verbs to match.

Read the full tf trajectory →

midr vs tf: editorial side-by-side

M
midr
INFRA · APIS
0.0

A black-box interpreter reaches CRAN, then learns multi-class and survival responses

◆ Current state

midr explains black-box models by fitting an interpretable surrogate through Maximum Interpretation Decomposition — main effects plus second-order interactions, with exact Shapley values for the surrogate. Two months after its first CRAN release it can take a matrix response, which covers multi-class classification and survival models, and hold collections of fitted interpretations in midlist and midrib objects for comparison.

◆ Where it's heading

The releases move outward along two axes at once: what can be interpreted, and how much of it fits in memory. Version 0.5.3 rebuilt the fitting path to avoid materialising large design matrices and added a save.memory option; 0.6.0 widened the response from a vector to a matrix and added parametric link functions. Class and argument names were shortened in the same release, so the package is still willing to break itself this early.

◆ Prediction

With multiple models now held in one object and visualisation methods for them, comparison across models is the surface most likely to fill out next — the collection classes exist but the notes describe manipulation and plotting rather than any comparison metric.

T
tf
INFRA · APIS
0.0

tf gave functional data a second dimension: curves whose values are vectors.

◆ Current state

tf supplies the vector classes underneath the tidyfun stack — tfd for raw functional observations, tfb for basis-represented ones, both built on vctrs so curves sit in a data frame column and behave like any other vector. Until July that codomain was scalar. The 0.5.0 release adds tfd_mv and tfb_mv, classes for functions whose values are vectors in R^d, and rebuilds the analysis verbs to match.

◆ Where it's heading

The package is widening what a functional observation can be, then porting the toolkit onto it. Registration arrived first in 0.4.0 for univariate curves and immediately gained an srvf_mv method for aligning components jointly, and tfb_mfpc() ports principal component analysis to the multivariate case with a single set of scores shared across components. Alongside that runs steady dependency shedding — mvtnorm and pracma both replaced by inlined samplers that reproduce prior draws bit-for-bit, glue dropped for cli in the previous release — and an unusually long tail of NA-handling and edge-case fixes, several caught in pre-release review of the new classes.

◆ Prediction

The new classes ship with FPCA, registration and shape alignment but the release notes describe tidyfun::tf_unnest() as the consumer of one new export, so the visible next step is the rest of the tidyfun stack catching up to vector-valued columns. Expect follow-up patches on the vctrs casting paths, which is where most of this release's late fixes clustered.

Alternatives to midr and tf

Other Infra & APIs 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 midr or tf.

See all midr alternatives → · See all tf alternatives →

Recent activity from midr and tf

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

  1. 1mo agotfVector-valued functional data becomes a first-class type
  2. 5mo agotfCurve registration, five depth measures and sub-domain splitting
  3. 5mo agomidrMatrix responses bring multi-class and survival models in scope
  4. 7mo agomidrFirst CRAN release: MID surrogate models for black-box explanation
  5. 7mo agomidrMemory-efficient fitting for large design matrices
  6. 2y agotfFix: tf_crosscov normalization

Frequently asked questions

What is the difference between midr and tf?

They serve adjacent needs but don't currently overlap on shipped themes. midr and tf are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is midr better than tf?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. midr and tf are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). For your specific use case, the alternatives sections above list other Infra & APIs products to evaluate alongside.

What are the best alternatives to midr?

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

What are the best alternatives to tf?

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