Skip to content

FFTrees v2.0.0

Compare
Choose a tag to compare
@hneth hneth released this 06 Jun 04:24
· 123 commits to master since this release
fde1f58

FFTrees version 2.0.0 was released on CRAN [on 2023-06-06].

This version adds functionality, improves consistency, and increases robustness.

Changes since last release:

Major changes

  • Enabled conversions between tree definition formats and manipulating FFT definitions:
    • tree definition and conversion functions: get_fft_df, read_fft_df, write_fft_df, add_fft_df
    • tree trimming functions: add_nodes, drop_nodes, edit_nodes, flip_exits, reorder_nodes, select_nodes
  • Growing FFTs:
    • enabled stopping.rule = "statdelta"
    • fixed a bug in fftrees_grow_fan() that prevented ifan algorithm from stopping
      when finding a perfect FFT (given the current goal.chase parameter)
  • Handling missing inputs (NA values) in data:
    • NA values in categorical (i.e., character/factor/logical) predictors are treated as <NA> factor levels
    • NA values in numeric predictors are either ignored (by default) or
      imputed (as the mean of the corresponding predictor) when creating and using FFTs to decide/predict (if possible)
    • NA values in the criterion variable are yet to be dealt with

Minor changes

  • Added utility functions (and corresponding verification functions):

    • get_best_tree() retrieves the ID of the best tree in an FFTrees object (given goal)
    • get_exit_type() converts a vector of exit descriptions into FFT exits (given exit_types)
    • get_fft_df() retrieves the tree definitions of an FFTrees object
  • Added cost information when printing FFTs (with print.FFTrees()).

  • Improved user feedback (by making quiet a list with four options).

  • Increased vocabulary for interpreting verbal FFT descriptions (using my.tree).

  • Improved documentation of included data (e.g., in FFTrees.guide()).

Details

  • Added global constants and utility functions.
  • Added progress bar of cli package (removing dependency on progress).
  • Added exit_types as global constant.
  • Improved data cleaning (consistent for training and test data).
  • Revised documentation, vignettes, and tests.

The current development version of FFTrees is available at https://github.com/ndphillips/FFTrees.

[FFTrees version 2.0.0 was released on CRAN on 2023-06-06.]