Skip to content
CRAN requires the check problems on this package to be fixed before Nov 11 or it will be archived. See the check details

mltools

0.3.5Package record

Machine Learning Tools

4packages dependsuggested by 4
24.2Kdownloads / year
10.1%test coverage
0/13flavors OK

Overview

About

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.

Changes in 0.3.5
  • 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

CRAN checks
13NOTE
Check messages
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.

CRAN check page ↗

Slowest check: 1.8 min · r-oldrel-windows-x86_64
Status changes
  • NOTE13 NOTENow
  • NOTE14 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.3.5
READMEYes · 184 wordsVignettesNoNEWSYes · 100% structured · mentions 0.3.5Citation fileNoWebsitenot declared in DESCRIPTION
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

24.2K
CRAN downloads in the past year
Rank #3,118 · ~66/day · ~2K/mo
Daily download trend is not available in this view yet.
1.2K30 days
4K90 days
24.2K1 year
Compare downloads with other packages →
Also on1.1K r2u3 autocran1.4K conda_forge68 c2d4u

Repository

74Stars
27Forks
8Open issues
0Open PRs
0Releases
179Commits
3Commit identities
rmachine-learningexploratory-data-analysis
179 commits · Last activity 2021-09-20 · 0% stars, 30d · Default branch at 0.3.6, ahead of CRAN 0.3.5 (checked 2026-10-21)
Responsiveness
How these are sampled
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

2025-04-18 · 722026-07-07 · 74
PracticesBeta

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.

Continuous integration (1)
Travis CI (config file)
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing mltools adds 1 package (1 with compiled code, 5.7 MB of source tarballs). Heaviest: data.table 5.7 MB.

Depends (0)
none
Imports (4)
data.tableMatrixmethodsstats
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
4direct
0indirect
Depends 1 · Imports 3
Suggested by 4
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (from the free-text Author field) (1)

Maintainer since 0.1.0 (2016)

Releases (8)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.5Latest
    record
    2018-05-12 · current release · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.3.4
    record
    2017-12-05 · diff ↗ ·
    added 3 exports
    mse, msle, rmsle
  • 0.3.3
    record
    2017-09-12 · diff ↗
  • 0.3.2
    record
    2017-08-28 · diff ↗
  • 0.3.1
    record
    2017-07-11 · diff ↗
  • 0.3.0
    record
    2017-06-28 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
Show 3 earlier eventsHide 3 earlier events
  • 0.2.0
    record
    2017-01-03 · diff ↗ ·
    added 1 export
    date_factor
  • 0.1.0
    record
    2016-11-27
  • R
    R 3.3.0 released · 2016-05-03

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for mltools version 0.3.5 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy