NEWS (original) (raw)
2.3.0
- Fix new package doc format.
- Carli et al. 2022 JSS citation added in DESCRIPTION.
- Added functions for random generation of staged trees:
random_sevtandrandom_parentslist. - Added new function
depsubtreewhich build the dependency subtree. - New functions to translate
sevtandcegobjects to graphs (edge lists and igraph). - Fix #98; fixed handling of NAs.
- fix bug on
plot.sevtand on graph conversion methods when ignoring stage “1” which is assigned to root - Fix #80;
sevt_fitearns thescopeargument, it is now possible to do partial re-fit of staged tree models. Moreover, with thecompute_logLikargument, the user can decide if the log-likelihood should be computed when fitting the model. stages_hclustcan now search the best cut of the hierarchical cluster with respect to somescorefunction to be maximized.- various minor fixes in colors specification for visualization functions.
stages_simplebhcimplements a new stage structure search by iterative joining of positions, thus searching in the space of simple staged trees.sevt_simplifyreturn the simplified staged tree, that is a stage tree where positions and stages are equivalent.- fix problem with positions computation in
cegwhen model has less than two variables. - Fix #113; use
clipackage for errors and warnings. - improve arguments checks in various functions.
- improve specific checks for
sevtobjects. - fix minor coding style problems (some argument names have changed).
- improve test coverage.
- new return value of
stagesfunction and new indexing of stages via a new dedicated classsevt.stgs. - use faster and unsafe functions internally, speedup in various functions (up to 10x).
- implemented
stages_csbhc, a new stages learning algorithm which iteratively add context specific independencies. Additionally functionsci_matricesandjoin_allhave been added.
2.2.1
inst/CITATIONfile added as requested by JSS.- The DOI in the CITATION is for a new JSS publication that will be registered after publication on CRAN.
- broken badge url fixed in README.
- update documentation.
2.2.0
plot.cegnew plotting functions usingigraphplotting.- new util function
make_stages_colwhich help computing stages colors forsevtandcegplotting. sample_fromnow returns a data.frame of factors.probearns a new argumentconditional_on, that makes easier to compute conditional probabilities.confint.sevt, implement a method for confidence intervals for the parameters of a model of classsevt.lr_testnew function, implementing likelihood-ratio test.- functions to search optimal staged trees among different orders:
search_bestandsearch_greedy. cidfunction that implements context intervention discrepancy.- more and better testing and documentation.
2.1.0
- implemented various conversion algorithms between
sevtand DAG representations. - improve implementation of
as_sevt.bn.fit. - use instead of for package names in documentation.
- fix
find_stage. - fix problems with single-variable staged trees.
- fix
summary.sevtfor objects withoutctables. - fix bug in
path_probabilityandprobfor sevt objects with not ordered$prob. - more tests.
2.0.1
fix color assignment consistency between plot.sevt andbarplot.sevt
2.0.0
This version introduces major changes, in functions capabilities and in functions naming. These changes are almost surely breaking any previous code using older versions of the package. In particular, all functions named *.sevt but class methods are now called differently. Moreover, various improvements and functionalities are added to better deal with unobserved situations and to improve computations. Additional model selection methods based on clustering are now available.
COMPLETE CHANGELOG:
- DESCRIPTION updated.
- documentation updated.
- improve code comments.
- reduced exported functions.
- removed the
fitparameter fromfull,indep. Nowfullandindepalways fit the model whilesevtis just the basic constructor of thesevtclass. - in
fullandindepby default unobserved situations are joined usingjoin_unobserved, and probabilities are fitted only after the unobserved situations are joined, improving speed. Moreover, the name of the unobserved stages are stored asname_unobservedin the staged tree object. - update internal function
new_labelto improve speed. plot.sevtallows now to set edges color withcol_edges.- In
plot.sevtandbarplot.sevtit is possible to specify stages that should be ignored and not plotted via theignoreargument, by default thename_unobservedstages are ignored. plot.sevtadds variables names by default (var_namesargument).- fix in
compare_stages: because of changes inplot.sevtwe need to specify that the root is always considered identical. - internal function
stndnamingaccepts nowuniq,prefixandignorearguments, which control how stage names are generated and if some stage names should be left untouched (default: thename_unobservedstages). - in
stages_bj(previouslybj.sevt) distance is now passed with a character and no longer as a function. - two new model selection function:
stages_hclustandstages_kmeans, to learn stage structure using hierarchical or k-means clustering. - all model selection functions accept
scopeandignoreparameters that allow to specify among which variables run the algorithm and which stages should be left untouched (default: thename_unobservedstages). - replace
1:length(x)with the suggestedseq_alongin all code. - distance names in
stages_bjandstages_hclustare compatibles. - fixed bug in some probability distance functions when 0 probabilities.
- Conversion generic function
as.sevt, only implemented one method forbn.fitclass from bnlearn package - fix
inclusions_stagesand provide better output.
1.0.2
- fix bug in
summary, stages were wrongly matched to probabilities - new function
barplot_stagesto draw barplots of the floret probabilities. Implemented relative tests. - new example in
plot.sevt. - now
ordercan be passed tostaged_ev_tree.bn.fit join_zeroalias forjoin_zero_counts- more tests
1.0.1
- fix
indep, probabilities should not be of class table (it was triggering a bug in summary) - fix
subtree, now removing unused probabilities (it was triggering a bug in summary) - fixing testing without long double
- fixing some errors in testing
- update some tests with unquoted expression
- new functions
get_stageandget_pathand relative tests
1.0.0
- Minor doc fix and references added
xoris renamed asnoisy_xor- test added for
noisy_xor - more util functions marked as internal
- fixed return problem with
NaNlog-probabilities inpredict.sevt summary.sevtfunction addedsubtree.sevtworks now for fitted objects
0.9.5
- Add
inclusion.stagesfunction - Fix #28;
predict.sevtnow returns conditional probabilities P(C|X) - Fix #62;
predict.sevtworks also ifnewdatadoes not include the class
0.9.4
- Fix #40;
compare.sevtworks with three different methods. - Fix #37;
join_stagesthrows error with bad stages. - Fix #51; tests for model selection functions.
0.9.3
- Fix #39;
lambda = 0does not induce errors inlogLik,join_stagesand thus in the model selection algorithms. - Fix #41;
nvar.sevtbug - Fix #34; order of elements in positions list of
ceg.sevt - Fix #38 subtree and colors in plot bugs
- Fix #46; removed Trump dataset
0.9.1
- New functions:
varnames.sevtandnvar.sevt - Improved codecov
fit.sevtis replaced bysevt.fit(following thelm.fitnaming).fit.sevtis still available but marked as (DEPRECATED) in doc.- minor bug fixing
- Doc for
compare.sevtis updated with info on the capabilities.
0.9.0
First released version of the package