Machine Learning Tools
Overview
A collection of machine learning helper functions, particularly assisting in the Exploratory Data Analysis phase. Makes heavy use of the 'data.table' package for optimal speed and memory efficiency. Highlights include a versatile bin_data() function, sparsify() for converting a data.table to sparse matrix format with one-hot encoding, fast evaluation metrics, and empirical_cdf() for calculating empirical Multivariate Cumulative Distribution Functions.
- Added and organize evaluation metrics, mean square error: mse(), mean square logarithmic error: msle(), root mean square error: rmse(), and root mean square logarithmic error: rmsle(). Each metric now includes an option to pass weights and ignore NA values.
- Added unit tests
- Support for multiclass mcc() and user may now provide a confusion matrix as input
- Avoid calling utils::modifyList() on POSIXlt objects
From NEWS.md in the release
Install
Health
NOTERd filesr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
checkRd: (-1) bin_data.Rd:16: Lost braces in \itemize; meant \describe ?
checkRd: (-1) bin_data.Rd:17: Lost braces in \itemize; meant \describe ?
checkRd: (-1) bin_data.Rd:18: Lost braces in \itemize; meant \describe ?
checkRd: (-1) bin_data.Rd:22: Lost braces in \itemize; meant \describe ?
checkRd: (-1) bin_data.Rd:23: Lost braces in \itemize; meant \describe ?
checkRd: (-1) bin_data.Rd:27: Lost braces in \itemize; meant \describe ?
checkRd: (-1) bin_data.Rd:28: Lost braces in \itemize; meant \describe ?
checkRd: (-1) bin_data.Rd:29: Lost braces in \itemize; meant \describe ?
checkRd: (-1) bin_data.Rd:30: Lost braces in \itemize; meant \describe ?
checkRd: (-1) date_factor.Rd:22: Lost braces; missing escapes or markup?
22 | Map a vector of dates to a factor at one of these levels {"yearmonth", "yearquarter", "quarter", "month"}
| ^
checkRd: (-1) date_factor.Rd:13: Lost braces; missing escapes or markup?
13 | \item
...[truncated]...
12 | \item{actuals}{A vector of actuals values in {0, 1}, or {FALSE, TRUE}}
| ^
checkRd: (-1) rmse.Rd:12: Lost braces; missing escapes or markup?
12 | \item{actuals}{A vector of actuals values in {0, 1}, or {FALSE, TRUE}}
| ^
checkRd: (-1) rmsle.Rd:12: Lost braces; missing escapes or markup?
12 | \item{actuals}{A vector of actuals values in {0, 1}, or {FALSE, TRUE}}
| ^
checkRd: (-1) rmsle.Rd:12: Lost braces; missing escapes or markup?
12 | \item{actuals}{A vector of actuals values in {0, 1}, or {FALSE, TRUE}}
| ^
checkRd: (-1) sparsify.Rd:36: Lost braces; missing escapes or markup?
36 | Column names are feature_level, e.g. {"color_red", "color_blue"}
| ^NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Ben Gorman <bgorman@GormAnalysis.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Ben",
family = "Gorman",
role = c("aut", "cre"),
email = "bgorman@gormanalysis.com")
as necessary.- NOTE13 NOTENow
- NOTE14 NOTE2026-03-10
Documentation
- Help pages
- 24
- Examples that run
- 100%22 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 0%
- Help pages citing references
- 17%
Downloads
Repository
- PRs merged (all time)
- 33%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 24
Stars over time
Forks over time
Issues over time
PRs over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/ben519/mltools on 2026-10-21.
Dependencies
Installing mltools adds 1 package (1 with compiled code, 5.7 MB of source tarballs). Heaviest: data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.3.5Latest
- RR 3.5.0 released · 2018-04-23
- 0.3.4
- 0.3.32017-09-12 · diff ↗
- 0.3.22017-08-28 · diff ↗
- 0.3.12017-07-11 · diff ↗
- 0.3.02017-06-28 · diff ↗
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2016-11-27
- Total releases
- 8 / 10 yrs
- License
- MIT + file LICENSE OSI
- Bundled data
- 0.6 KB / 2 files
- Download size
- 32 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("mltools")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.