Rendered from
funcml.Rmdusingknitr::rmarkdownA compact and explicit machine learning framework for supervised learning, resampling-based evaluation, hyperparameter tuning, learner comparison, interpretation, and plug-in g-computation. The package uses standard formulas for model specification and provides stable S3 interfaces for fitting, evaluation, tuning, interpretation, and causal estimation across a learner registry with multiple backend engines. Implemented interpretation methods build on established approaches such as permutation-based variable importance, partial dependence, individual conditional expectation, accumulated local effects, SHAP, and LIME; see Friedman (2001) <doi:10.1214/aos/1013203451>, Goldstein et al. (2015) <doi:10.1080/10618600.2014.907095>, Apley and Zhu (2020) <doi:10.1111/rssb.12377>, Lundberg and Lee (2017) <doi:10.48550/arXiv.1705.07874>, and Ribeiro et al. (2016) <doi:10.48550/arXiv.1602.04938>. The framework is intentionally opinionated: preprocessing is expected to occur outside the modeling step, and the API emphasizes explicit inputs, consistent object contracts, and compact interfaces rather than feature-by-feature competition with larger machine learning ecosystems.
Authors:Imad El Badisy
funcml_0.7.2.tar.gz
funcml_0.7.2.zip(r-4.7-any)funcml_0.7.2.zip(r-4.6-any)funcml_0.7.2.zip(r-4.5-any)
funcml_0.7.2.tgz(r-4.6-any)funcml_0.7.2.tgz(r-4.5-any)
funcml_0.7.2.tar.gz(r-4.7-any)funcml_0.7.2.tar.gz(r-4.6-any)
funcml_0.7.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
funcml/json (API)
| # Install 'funcml' in R: |
| install.packages('funcml', repos = c('https://ielbadisy.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ielbadisy/funcml/issues
classificationg-computationinterpretable-machine-learningmachine-learningregressiontabular-data
4.60 score 1 stars 375 downloads 35 exports 18 dependencies
Last updated from:e8f303b7a7. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 198 | ||
| source / vignettes | OK | 266 | ||
| linux-release-x86_64 | OK | 218 | ||
| macos-release-arm64 | OK | 112 | ||
| macos-oldrel-arm64 | OK | 135 | ||
| windows-devel | OK | 145 | ||
| windows-release | OK | 147 | ||
| windows-oldrel | OK | 136 | ||
| wasm-release | OK | 135 |
Exports:accuracyaucauc_weightedbalanced_accuracybriercalibration_curvecompare_learnerscveceestimateevaluatef1fitgroup_cvholdoutinterpretlearnerslist_interpretability_methodslist_learnerslist_metricslist_tunable_learnersloglossmaemapemcemedaemseprecisionrecallrmsersqspecificitytheme_funcmltime_cvtune
Dependencies:clicpp11farverfunctionalsggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr
| Help page | Topics |
|---|---|
| Arthritis survey data | arthritis |
| Bangladesh maternal risk data | bangladeshmaternalrisk |
| Birth weight data | birthweight |
| Breast cancer diagnostic data | breastcancerdiagnostic |
| Wisconsin breast cancer data | breastcancerwisconsin |
| Cancer remission data | cancerremission |
| CD4 follow-up data | cd4counts |
| Youth tobacco survey data | cigsmoke |
| Compare multiple learners with optional tuning. | compare_learners |
| Methods for learner comparison results. | compare-methods plot.funcml_compare print.funcml_compare summary.funcml_compare |
| Resampling specification generator. | cv |
| Doctor visits data | doctorvisits |
| Causal effect estimation via plug-in g-computation. | estimate |
| Methods for causal estimand results. | estimate-methods plot.funcml_estimand print.funcml_estimand summary.funcml_estimand |
| Cross-validated evaluation. | evaluate |
| Methods for cross-validation results. | evaluate-methods plot.funcml_eval print.funcml_eval summary.funcml_eval |
| Fit a model using the funcml interface. | fit |
| Methods for fitted funcml models. | coef.funcml_fit fit-methods predict.funcml_fit print.funcml_fit summary.funcml_fit |
| Grouped cross-validation. | group_cv |
| Haberman survival data | haberman |
| Heart disease patient data | heartdisease |
| Heart failure data | heartfailure |
| Plain holdout resampling. | holdout |
| Infant mortality data | infantmortality |
| Model-agnostic interpretation (global + local). | interpret |
| ALE result methods. | interpret-ale-methods plot.funcml_ale print.funcml_ale summary.funcml_ale |
| Calibration result methods. | interpret-calibration-methods plot.funcml_calibration print.funcml_calibration summary.funcml_calibration |
| ICE result methods. | interpret-ice-methods plot.funcml_ice print.funcml_ice summary.funcml_ice |
| Interaction result methods. | interpret-interaction-methods plot.funcml_interaction print.funcml_interaction summary.funcml_interaction |
| Local surrogate result methods. | interpret-local-methods plot.funcml_local print.funcml_local summary.funcml_local |
| Local surrogate result methods for 'local_model' and 'lime'. | interpret-local-model-methods plot.funcml_iml_local_model plot.funcml_lime print.funcml_iml_local_model summary.funcml_iml_local_model |
| Partial dependence result methods. | interpret-pdp-methods plot.funcml_pdp print.funcml_pdp summary.funcml_pdp |
| Permutation importance result methods. | interpret-permute-methods plot.funcml_permute print.funcml_permute summary.funcml_permute |
| SHAP result methods. | interpret-shap-methods plot.funcml_shap print.funcml_shap summary.funcml_shap |
| Global surrogate result methods. | interpret-surrogate-methods plot.funcml_surrogate print.funcml_surrogate summary.funcml_surrogate |
| Ketamine pain management data | ketapain |
| Available learners. | learners |
| List available interpretability methods. | list_interpretability_methods |
| Learner inventory table with capabilities. | list_learners |
| List available metrics used in scoring and resampling summaries. | list_metrics |
| Shortcut for learners with tuning support. | list_tunable_learners |
| Mammography calcification data | mammography |
| Regression and classification metrics. | accuracy auc auc_weighted balanced_accuracy brier calibration_curve ece f1 logloss mae mape mce medae metrics mse precision recall rmse rsq specificity |
| Thyroid function data | newthyroid |
| Pima diabetes data | pimadiabetes |
| FuncML plotting theme. | theme_funcml |
| Time-aware rolling resampling. | time_cv |
| Hyperparameter tuning via grid or random search. | tune |
| Methods for tuning results. | plot.funcml_tune print.funcml_tune summary.funcml_tune tune-methods |
