Skip to content

ForestDisc

0.1.0

Forest Discretization

0packages depend
2.3Kdownloads / year
test coverage
11/13checks pass

Overview

About
Maintained by Haddouchi MaïssaeFirst published 2020-03-191 releasesCRAN page ↗

Supervised, multivariate, and non-parametric discretization algorithm based on tree ensembles learning and moment matching optimization. This version of the algorithm relies on random forest algorithm to learn a large set of split points that conserves the relationship between attributes and the target class, and on moment matching optimization to transform this set into a reduced number of cut points matching as well as possible statistical properties of the initial set of split points. For each attribute to be discretized, the set S of its related split points extracted through random forest is mapped to a reduced set C of cut points of size k. This mapping relies on minimizing, for each continuous attribute to be discretized, the distance between the four first moments of S and the four first moments of C subject to some constraints. This non-linear optimization problem is performed using k values ranging from 2 to 'max_splits', and the best solution returned correspond to the value k which optimum solution is the lowest one over the different realizations. ForestDisc is a generalization of RFDisc discretization method initially proposed by Berrado and Runger (2009) <doi:10.1109/AICCSA.2009.5069327>, and improved by Berrado et al. in 2012 by adopting the idea of moment matching optimization related by Hoyland and Wallace (2001) <doi: 10.1287/mnsc.47.2.295.9834>.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Code health
None
Tests · ratio 0.00
not tracked
Coverage
None
Vignettes
No
README
4
Dependencies · direct
Check history
  • NOTE2026-03-10
    9 OK · 5 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

2.3K
CRAN downloads in the past year
Rank #20,259 · ~6/day · ~190/mo
25030 days
59390 days
2.3K1 year
Also on96 r2u6 autocran
Source & community

Repository stars, issues, and contributor activity are not tracked yet.

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
indirect (not tracked)

Nothing depends on this yet.

Code

495Lines of code
4Exported functions

Line coverage

Expression

Tests / Examples

Functions

4 0 exported

Complexity

7.8 avg / 11 max

Call network

4 nodes / 3 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (0)

Author records are not tracked yet for this package.

Release timeline

1 releases. Pick two to compare their code metrics; R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2026-03-10 · current release

Package metadata

First published
2020-03-19
Total releases
1 / 6 yrs
License
GPL (>= 3) OSI
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet