Releases: LudvigOlsen/cvms
Release list
cvms 2.0.1
-
Now extracts model coefficients with a suitable environment containing the training data. This restores extraction of
nnet::multinomcoefficients and coefficients from mixed models whoseparameters/insightmethods need access to the original model data. -
Uses
reformulas::findbars()for detecting random effects, following the move offindbars()fromlme4toreformulas. Addsreformulasandmethodsas dependencies. -
Fixes a few minor bugs with no real impact.
cvms 2.0.0
-
Breaking: Fixes bug in all functions that takes
fold_cols. When passing non-sequential fold indices (or sequential but not starting at 1), or string fold IDs, these were not properly matched with the fold index when extracting training and testing data for a cross-validation iteration. Now checks current iteration index against the fold ID's level index instead of its raw value. Fold column factor levels are reset to avoid levels with no observations. NOTE: Users ofgroupdata2::foldshould not be affected by this, unless you sampled the already folded data and ended up with non-sequential (i.e., not1:num_folds) fold IDs. -
combine_predictors()now handles whenmax_effect_frequencyisNULL. -
Removes deprecated arguments:
link,models,model_verbose. These were deprecated inv/1.0.0. -
Improves code formatting for readability.
cvms 1.8.1
-
Removes unnecessary test of the
pROCROC curve contents. Thanks @xrobin. -
Fixes test for compatibility with
pROC 1.19.0.1. Thanks @xrobin. -
plot_confusion_matrix(): Fixes deprecation warning when enablingadd_sums=TRUEwithout specifying non-defaultsums_settings. Thanks @lucasxteixeira.
cvms 1.8.0
plot_confusion_matrix():
-
Adds
arrow_colorargument for choosing between black and white arrow icons. -
Deprecates
font_colorargument insum_tile_settings()in favor offont_counts_colorandfont_normalized_color.
Dynamic font settings:
-
Adds
dynamic_font_colorsargument and the associateddynamic_font_color_settings()helper function for specifying colors below and above a given value threshold. This, for instance, allows changing the color of higher numbers when the tile background color is very dark. It also allows inverting colors of arrow icons below/above the threshold. The argument is also added tosum_tile_settings(). -
Most arguments in
font()(and thefont_*_colorarguments insum_tile_settings()) now also accepts a function that decides the setting based on the values (counts, normalized, etc.).
cvms 1.7.0
plot_confusion_matrix():
-
Adds option to set intensities of main tiles by
row_percentagesorcol_percentages. Sum tiles cannot be set by these. Idea from Elliot. -
Fixes error when the input has been filtered (for asymmetrical plotting) and
add_sums=TRUEand/ordiag_percentages_only=TRUE. Thanks @jwang-lilly for reporting.
cvms 1.6.3
- Fixes extraction of
nnet::multinomcoefficients after change inparameters. Thanks @strengejacke for reporting the issue.
cvms 1.6.2
- Fixes tests after changes to
ggnewscale. Thanks @eliocamp for the PR.
cvms 1.6.1
-
plot_confusion_matrix()now shows total count whenadd_normalized=FALSE. Thanks @JianWang2016 for reporting the issue. -
Makes it more clear in the documentation that the
Balanced Accuracymetric in multiclass classification is the macro-averaged metric, not the average recall metric that is sometimes used. -
Removes defunct tests after
ggplot2update.
cvms 1.6.0
plot_confusion_matrix():
-
Breaking: Adds slight 3D tile effect to help separate tiles with the same count.
Not tested in all many-class scenarios. -
Fixes image sizing (arrows and zero-shading) when there are different
numbers of unique classes in targets and predictions. -
Fixes bug with
class_orderargument when there are different
numbers of unique classes in targets and predictions.
cvms 1.5.0
plot_confusion_matrix():
-
NEW: We created a Plot Confusion Matrix web application!
It allows usingplot_confusion_matrix()without code. Select from multiple
design templates or make your own. -
For
(palette=, sums_settings(palette=))arguments, tile color
palettes can now be a custom gradient. Simply supply a named list with hex
colors for "low" and "high" (e.g.list("low"="#B1F9E8", "high"="#239895")). -
Adds
intensity_by,intensity_lims, andintensity_beyond_lims
arguments tosum_tile_settings()to allow setting them separately
for sum tiles. -
Adds
intensity_limsargument which allows setting a custom
range for the tile color intensities. Makes it easier to
compare plots for different prediction sets. -
Adds
intensity_beyond_limsfor specifying how to handle counts / percentages
outside the specifiedintensity_lims. Default is to truncate the intensities. -
Fixes bug where arrow size was not taking
add_sumsinto account.