e2treeclass now properly listed as first in the class vector (c("e2tree", "list")).- New S3 methods for
e2tree:predict(),fitted(),residuals(). predict.e2tree()replacesePredTree()as the standard prediction interface. For regression, returns a data frame withfitandsd(node-level standard deviation). For classification, returns a data frame withfit,accuracy, andscore.fitted.e2tree()returns fitted values for training data.residuals.e2tree()returns residuals for regression E2Trees.methods(class = "e2tree")now shows:as.rpart,e2splits,fitted,nodes,plot,predict,print,residuals,summary.methods(class = "eValidation")now shows:measures,plot,print,proximity,summary.
nodes(): Extract tree node data frame from ane2treeobject, with optionalterminalfilter.e2splits(): Extract split and categorical split information.measures(): Extract validation measures from aneValidationobject.proximity(): Extract proximity matrices (ensemble, e2tree, or both) from aneValidationobject.
as.rpart(): Generic and method for convertinge2treetorpartformat.as.party(): Method for convertinge2treetopartykit'sconstpartyformat (registered conditionally when partykit is installed). Produces proper bar plots in terminal nodes for classification trees.rpart2Tree()retained for backward compatibility with a deprecation note.
eValidation()gains atestargument:"mantel"(Mantel test only),"measures"(divergence/similarity measures only), or"both"(default). This allows choosing between association testing and agreement testing.print.eValidation(),summary.eValidation(), andplot.eValidation()updated to handle all three test modes gracefully.
vimp(): Auto-detects classification/regression from thee2treeobject;typeargument now optional.- Fixed incorrect y-axis label ("Variance" instead of "Variable") in variable importance plots.
- Regression variable importance bars now sorted by importance (previously unsorted).
- Consistent column naming (
Variable,MeanImpurityDecrease) across classification and regression. - Internal logic refactored into
.vimp_classification()and.vimp_regression().
- All man page titles standardized to Title Case.
\dontrun{}replaced with\donttest{}in all examples; interactive-only examples wrapped inif (interactive()).- Examples updated to use accessor functions and
predict()instead of direct$access. - New vignette
e2tree-introductioncovering classification, regression, validation (Mantel test, divergence measures, LoI decomposition), and comparison with partykit/stablelearner. ePredTree()documentation updated with deprecation note pointing topredict.e2tree().
- Added
partykit,knitr,rmarkdownto Suggests. - Added
VignetteBuilder: knitrto DESCRIPTION. e2treeobject now storesfitted.values,y, anddatafor S3 method support.- Conditional
.onLoadhook for registeringas.party.e2treewhen partykit is loaded.
goi(): Goodness of Interpretability (GoI) index measuring how well the E2Tree-estimated proximity matrix reconstructs the original ensemble proximity matrix.goi_perm(): Permutation test for the GoI index to assess statistical significance.goi_analysis(): Combined GoI analysis returning both the observed statistic and permutation results.plot.goi_perm(): Plot method forgoi_permobjects displaying the permutation distribution.plot_e2tree_vis(): Interactive E2Tree visualization usingvisNetworkwith draggable nodes, zoom/pan, and multiple layout options.plot_e2tree_click(): Interactive E2Tree plot in the R graphics device with click-to-inspect node details.save_e2tree_html(): Save an interactivevisNetworktree plot as a standalone HTML file.print_e2tree_summary(): Print a formatted summary of an e2tree object.
createDisMatrix: C++ backend (CoOccurrences.cpp) with OpenMP thread-level parallelism replaces the R-levelforeach/doParallelloop; co-occurrence normalization also moved to C++.e2tree: vectorizedWtcomputation usingvapply; simplified internalget_classeshelper.ePredTree: split rules are now pre-parsed once (parse_all_splits+apply_split_rule), eliminating repeatedregex/eval(parse())calls during prediction.vimp: threegroup_byoperations consolidated into one;eval/parseremoved.split:ordSplitandcatSplitvectorized withouter().eImpurity: single-step integer matrix conversion.
- Fixed Rcpp type conversion (
NumericVector+static_cast<int>) for ranger compatibility (ranger returns double columns for tree node assignments). - Fixed
ePredTreereturning character instead of double for regression trees. - Fixed bare
filter()call inproximity_longer.Rcausing namespace conflict withdplyr. - Added missing
NAMESPACEimports forgraphics,grDevices, andutils.
- New
aaa_utils.Rwith shared internal helpers:e2_variance(),get_ensemble_type(),check_package(). - Refactored
eValidation,eImpurity, andeStoppingRulesfor consistency and performance.
- Added support for 'ranger' models
- Several improvements in e2tree plots
- Added a
NEWS.mdfile to track changes to the package.