Portable Mars Runtime Replay

Loads, validates, and replays portable 'mars' ModelSpec artifacts from R. The package provides helpers for constructing design matrices, generating predictions, and, when the companion runtime helper is available, fitting portable model specifications for cross-language replay.


marsruntime

Portable R runtime replay for mars ModelSpec artifacts.

This package evaluates validated model specifications and produces design matrices and predictions through the shared runtime bridge.

Install

Install from the package source tree or from the published registry once the R release path is complete.

Usage

library(marsruntime)
spec <- list(
  spec_version = "1.0",
  basis_terms = list(),
  coefficients = list(),
  feature_schema = list(n_features = 0)
)
validate_model_spec(spec)

Training

The package also exposes fit_model(...) for Rust-backed training. It returns a portable ModelSpec that can be replayed through the same validation and prediction helpers.

Validation

Rscript tests/conformance.R

Documentation

Run R CMD check --no-manual --as-cran from the repository root to validate the package metadata, Rd help pages, and CRAN-safe test behavior.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("marsruntime")

0.0.0 by Dylan A Mordaunt, 5 months ago


https://github.com/edithatogo/mars


Report a bug at https://github.com/edithatogo/mars/issues


Browse source code at https://github.com/cran/marsruntime


Authors: Dylan A Mordaunt [aut, cre]


Documentation:   PDF Manual  


Apache License (>= 2) license


Imports jsonlite

Suggests knitr, rmarkdown


See at CRAN