Skip to content
Open

WIP #152

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
90bcdbb
Update _pkgdown.yml
juniperlsimonis Jan 22, 2020
77fea7e
building out the structure of meta_LDA_TS
juniperlsimonis Jan 22, 2020
06276ca
in progress work
juniperlsimonis Feb 5, 2020
1317017
ongoing work in multi
juniperlsimonis Feb 18, 2020
85a207c
very much a workin in progress
juniperlsimonis Feb 26, 2020
242400e
working draftish of full LDA code
juniperlsimonis Feb 26, 2020
07ed32f
explains and tidies
juniperlsimonis Feb 26, 2020
d7638d8
in prog
juniperlsimonis Mar 10, 2020
6861802
Create testing_example.R
juniperlsimonis Mar 12, 2020
7b93bf6
Update testing_example.R
juniperlsimonis Mar 12, 2020
dfdd5ea
in progress
juniperlsimonis Mar 17, 2020
726825a
Create TS (DESKTOP-S3UUDRM's conflicted copy 2020-03-17).R
juniperlsimonis Mar 17, 2020
de5d1dd
in prog
juniperlsimonis Mar 19, 2020
faf72e7
ldats classic
juniperlsimonis Mar 19, 2020
49f9274
in progress but working
juniperlsimonis Mar 19, 2020
0debbbf
working version of ilr_TS
juniperlsimonis Mar 20, 2020
2694542
much work lots of docs
juniperlsimonis Mar 20, 2020
b0d493e
lots in prog
juniperlsimonis Mar 20, 2020
bd639c3
lots of doc work
juniperlsimonis Mar 20, 2020
690f802
more doc
juniperlsimonis Mar 21, 2020
15fe90a
plugging along
juniperlsimonis Mar 21, 2020
b8a6e56
ongoing
juniperlsimonis Mar 21, 2020
225d2b7
more ongoing work
juniperlsimonis Mar 22, 2020
1eb88c7
pin in it
juniperlsimonis Mar 22, 2020
a993a0d
documentation trimming
juniperlsimonis Mar 22, 2020
81a3426
tidying docs and streamlining
juniperlsimonis Mar 22, 2020
25e882f
organizationals
juniperlsimonis Mar 23, 2020
297f67c
lda plots
juniperlsimonis Mar 23, 2020
cf8c95b
TS plots
juniperlsimonis Mar 23, 2020
c3484d3
ldats plot
juniperlsimonis Mar 23, 2020
3078f44
tidier
juniperlsimonis Mar 23, 2020
9843c66
documents
juniperlsimonis Mar 23, 2020
ab3a3a8
rodents example vignette
juniperlsimonis Mar 23, 2020
30a4169
streamline testing
juniperlsimonis Mar 23, 2020
eec3374
Update data_preparation.R
juniperlsimonis Mar 28, 2020
c301ef8
Update TS_responses.R
juniperlsimonis Apr 2, 2020
34a2ae2
Update TS_responses.R
juniperlsimonis Apr 5, 2020
fa2ce0e
0cps
juniperlsimonis Apr 20, 2020
137ee26
addressing v-cov for weighted mlm
juniperlsimonis Apr 20, 2020
a2c2b8d
Update notes.R
juniperlsimonis Apr 20, 2020
d7c804d
codebase vignette
juniperlsimonis Apr 21, 2020
a9be910
handling non weighteds
juniperlsimonis Apr 24, 2020
06fde93
patch for bad starting values
juniperlsimonis Apr 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
^doc$
^docs$
^LDATS_model.pdf$
^working.R$
^notes.R$
^tempering.R$
^.travis.yml$
^.*\.Rproj$
^\.Rproj\.user$
Expand Down
11 changes: 3 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,18 @@ Encoding: UTF-8
LazyData: true
Imports:
coda,
compositions,
digest,
dplyr,
extraDistr,
graphics,
grDevices,
here,
lubridate,
magrittr,
mcmc,
memoise,
methods,
mvtnorm,
nnet,
progress,
reshape,
stats,
topicmodels,
viridis
Expand All @@ -58,10 +56,7 @@ Suggests:
pkgdown,
rmarkdown,
testthat,
vdiffr,
clue,
RCurl,
tidyr
vdiffr
VignetteBuilder:
knitr
RoxygenNote: 6.1.1
95 changes: 62 additions & 33 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,58 +1,65 @@
# Generated by roxygen2: do not edit by hand

S3method(logLik,LDA_VEM)
S3method(AIC,LDA)
S3method(logLik,LDA)
S3method(logLik,TS)
S3method(logLik,TS_fit)
S3method(logLik,multinom_TS_fit)
S3method(logLik,mlm)
S3method(plot,LDA)
S3method(plot,LDA_TS)
S3method(plot,LDA_VEM)
S3method(plot,LDA_set)
S3method(plot,TS_fit)
S3method(print,LDA_TS)
S3method(print,TS_fit)
S3method(print,TS_on_LDA)
S3method(plot,TS)
S3method(plot,TS_set)
S3method(print,TS)
export(AICc)
export(LDA)
export(LDA_TS)
export(LDA_TS_control)
export(LDA_call)
export(LDA_control)
export(LDA_msg)
export(LDA_plot_bottom_panel)
export(LDA_plot_top_panel)
export(LDA_set)
export(LDA_set_control)
export(TS)
export(TS_call)
export(TS_control)
export(TS_diagnostics_plot)
export(TS_on_LDA)
export(TS_msg)
export(TS_summary_plot)
export(autocorr_plot)
export(check_LDA_TS_inputs)
export(check_LDA_models)
export(check_LDA_set_inputs)
export(check_TS_inputs)
export(check_TS_on_LDA_inputs)
export(check_changepoints)
export(check_LDA)
export(check_LDAs)
export(check_TS)
export(check_class)
export(check_control)
export(check_document_covariate_table)
export(check_document_term_table)
export(check_formula)
export(check_formulas)
export(check_multinom_TS_inputs)
export(check_nchangepoints)
export(check_seeds)
export(check_nonneg_integer)
export(check_nonneg_integer_matrix)
export(check_pos_integer)
export(check_replicates)
export(check_timename)
export(check_topics)
export(check_weights)
export(conform_LDA_TS_data)
export(conform_data)
export(count_trips)
export(diagnose_ptMCMC)
export(document_weights)
export(ecdf_plot)
export(est_changepoints)
export(est_regressors)
export(eta_diagnostics_plots)
export(eval_step)
export(expand_TS)
export(identity_LDA)
export(iftrue)
export(ldats_classic)
export(ldats_classic_control)
export(leave_p_out)
export(list_depth)
export(logsumexp)
export(measure_LDA)
export(measure_TS)
export(measure_eta_vcov)
export(measure_rho_vcov)
export(memoise_fun)
Expand All @@ -61,16 +68,16 @@ export(mirror_vcov)
export(modalvalue)
export(multinom_TS)
export(multinom_TS_chunk)
export(multinom_TS_control)
export(normalize)
export(null_rule)
export(package_LDA)
export(package_LDA_TS)
export(package_LDA_set)
export(package_TS)
export(package_TS_on_LDA)
export(package_chunk_fits)
export(package_sequential_TS)
export(posterior_plot)
export(pred_gamma_TS_plot)
export(prep_LDA_control)
export(prep_TS_data)
export(prep_chunks)
export(prep_cpts)
export(prep_ids)
Expand All @@ -79,40 +86,61 @@ export(prep_proposal_dist)
export(prep_ptMCMC_inputs)
export(prep_saves)
export(prep_temp_sequence)
export(print_model_run_message)
export(prepare_LDA)
export(prepare_TS)
export(process_saves)
export(propose_step)
export(proposed_step_mods)
export(random_loo)
export(rho_diagnostics_plots)
export(rho_hist)
export(rho_lines)
export(run_LDA)
export(run_TS)
export(select_LDA)
export(select_TS)
export(set_LDA_TS_plot_cols)
export(sequential_TS)
export(sequential_TS_control)
export(set_LDA_TS_plot_colors)
export(set_LDA_plot_colors)
export(set_TS_summary_plot_cols)
export(set_gamma_colors)
export(set_rho_hist_colors)
export(sim_LDA_TS_data)
export(sim_LDA_data)
export(sim_TS_data)
export(simplex_TS)
export(simplex_TS_chunk)
export(simplex_TS_control)
export(simulate_LDA_TS_data)
export(simulate_LDA_data)
export(simulate_TS_data)
export(soft_call)
export(softmax)
export(step_chains)
export(summarize_etas)
export(summarize_rhos)
export(swap_chains)
export(systematic_loo)
export(take_step)
export(topicmodels_LDA)
export(trace_plot)
export(update_cpts)
export(update_ids)
export(update_list)
export(update_pbar)
export(update_saves)
export(verify_changepoint_locations)
import(mvtnorm)
importFrom(coda,HPDinterval)
importFrom(coda,as.mcmc)
importFrom(coda,autocorr)
importFrom(coda,autocorr.diag)
importFrom(coda,effectiveSize)
importFrom(compositions,acomp)
importFrom(compositions,alr)
importFrom(compositions,alrInv)
importFrom(compositions,clr)
importFrom(compositions,clrInv)
importFrom(compositions,ilr)
importFrom(compositions,ilrInv)
importFrom(digest,digest)
importFrom(extraDistr,rcat)
importFrom(extraDistr,rdirichlet)
Expand All @@ -128,9 +156,10 @@ importFrom(graphics,points)
importFrom(graphics,rect)
importFrom(graphics,text)
importFrom(lubridate,is.Date)
importFrom(magrittr,"%>%")
importFrom(mcmc,temper)
importFrom(memoise,memoise)
importFrom(methods,is)
importFrom(mvtnorm,dmvnorm)
importFrom(mvtnorm,rmvnorm)
importFrom(nnet,multinom)
importFrom(progress,progress_bar)
Expand All @@ -139,6 +168,7 @@ importFrom(stats,acf)
importFrom(stats,as.formula)
importFrom(stats,coef)
importFrom(stats,ecdf)
importFrom(stats,lm)
importFrom(stats,logLik)
importFrom(stats,median)
importFrom(stats,rgeom)
Expand All @@ -148,5 +178,4 @@ importFrom(stats,sd)
importFrom(stats,terms)
importFrom(stats,var)
importFrom(stats,vcov)
importFrom(topicmodels,LDA)
importFrom(viridis,viridis)
38 changes: 37 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,43 @@

Version numbers follow [Semantic Versioning](https://semver.org/).

# LDATS 0.2.5(https://github.com/weecology/ldats/releases/tag/v0.2.5)
# LDATS 0.3.0
*Ongoing*

## Generalization of "LDA"
* The phrase "LDA" could be any of the Linquistic Decomposition Analyses including any of a number of true Latent Dirichlet Allocation functions or models, so LDA is no longer fully imported from topicmodels but keeping topicmodels the package imported to allow calling of topicmodels::LDA from inside LDA as the default.
* Existing functionality allows a simple switching to the Gibbs sampler version of the topicmodels LDA or an entirely different modeling function.

## Additional renamings and small things
* seed is now replicate

## Function renamings/restructuring
* LDA_set is now LDA and TS_on_LDA is now TS
* LDA and TS are both structured similarly (see pipeline doc) with "prepare", "run", "package" as the workflow.

## Introduction of soften logical variable
* Designed to help soften errors in pipelines through wrapping in tryCatch.


## Expansion of control lists
* The functions that can be toggled via control list is expanded (from measuror and selector) to now include base LDA and TS model functions, TS response and method functions, and arguments for all functions.

## Allowance of single-topic models
* As a placeholder/identity model for comparison to models that include decomposition.

## Data conforming
* Data can come into LDA_TS LDA TS in a variety of forms, and depending on usages, might take a variety of different forms.
* The purpose of this the new conform_data function is to generalize and extract the code used to shuddle between data formats from functions and replace it with a single line.
* Currently its not saving the test/train split explicitly, just implicitly via the data encoding that exists.

## Data subsetting
* New facilities for subsetting the data for purposes such as cross validation
* Generalized functions for random and systematic leave-outs, with flexible number left out and (potentially) asymmetric buffers.
* Specific functions for typical use (systematic leave 1 out with no buffer, e.g.).



# [LDATS 0.2.5](https://github.com/weecology/ldats/releases/tag/v0.2.5)
*2019-12-22*

## General editing of simulation functions
Expand Down
Loading