├── .gitignore ├── DESCRIPTION ├── NAMESPACE ├── R ├── functions_EM.R ├── functions_EM_helper.R ├── functions_active.R ├── functions_active_helper.R ├── functions_analysis.R └── functions_tuning.R ├── README.md ├── data ├── FirstImage.PNG └── bbc_data_all.rda ├── logo.png ├── man ├── EM.Rd ├── E_step.Rd ├── E_step_multi.Rd ├── KL.Rd ├── active_initial_messages.Rd ├── active_label.Rd ├── active_label_from_saved.Rd ├── active_label_wrapper.Rd ├── agg_helper_convert.Rd ├── aggregate_model_predictions.Rd ├── balancing_data.Rd ├── check_extreme_words_inlabel.Rd ├── check_lr_convergence.Rd ├── choose_best_model.Rd ├── classification_gui.Rd ├── clean_data.Rd ├── gen_results_tbl.Rd ├── generate_lambda_vec.Rd ├── get_alpha_m.Rd ├── get_class_matrix.Rd ├── get_class_prob.Rd ├── get_class_prob_NB.Rd ├── get_class_prob_log.Rd ├── get_classes.Rd ├── get_clusters.Rd ├── get_conf_matrix_weight.Rd ├── get_dfm.Rd ├── get_empirical_dist.Rd ├── get_entropy.Rd ├── get_fixed_words_mtx.Rd ├── get_index.Rd ├── get_initial_documents.Rd ├── get_keywords.Rd ├── get_label_prop_fig.Rd ├── get_maximand.Rd ├── get_mean_mpe.Rd ├── get_mean_mpes.Rd ├── get_model_diff.Rd ├── get_model_weights.Rd ├── get_predict_prop_fig.Rd ├── get_results_matrix.Rd ├── get_tune_lambda_fig.Rd ├── get_uncertain_docs.Rd ├── get_weighted_prediction.Rd ├── get_word_prob.Rd ├── get_word_prob_NB.Rd ├── get_word_prob_log.Rd ├── initialize_beta_tbl.Rd ├── log_ratio_sample.Rd ├── match_EM_to_docs.Rd ├── match_clusters_to_docs.Rd ├── multiEM.Rd ├── process_metadata.Rd ├── query_eta.Rd ├── query_label.Rd ├── region_sample.Rd ├── region_sample_edge.Rd ├── reshapedocs.Rd ├── reshapedocs_helper.Rd ├── run_unsupervised_EM.Rd ├── sample_data.Rd ├── split_dfm.Rd ├── split_sparsemat.Rd ├── tune_lambda.Rd ├── tune_lambda_helper.Rd ├── tune_lambda_in_active.Rd ├── tuning_algorithm.Rd └── update_results.Rd ├── tests ├── testthat.R └── testthat │ ├── test_comparison_all_pol.RDS │ └── test_wrapper.R └── vignettes ├── .gitignore ├── activeText_vignette-woven.md └── activeText_vignette.Rmd /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/.gitignore -------------------------------------------------------------------------------- /DESCRIPTION: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/DESCRIPTION -------------------------------------------------------------------------------- /NAMESPACE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/NAMESPACE -------------------------------------------------------------------------------- /R/functions_EM.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/R/functions_EM.R -------------------------------------------------------------------------------- /R/functions_EM_helper.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/R/functions_EM_helper.R -------------------------------------------------------------------------------- /R/functions_active.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/R/functions_active.R -------------------------------------------------------------------------------- /R/functions_active_helper.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/R/functions_active_helper.R -------------------------------------------------------------------------------- /R/functions_analysis.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/R/functions_analysis.R -------------------------------------------------------------------------------- /R/functions_tuning.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/R/functions_tuning.R -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/README.md -------------------------------------------------------------------------------- /data/FirstImage.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/data/FirstImage.PNG -------------------------------------------------------------------------------- /data/bbc_data_all.rda: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/data/bbc_data_all.rda -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/logo.png -------------------------------------------------------------------------------- /man/EM.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/EM.Rd -------------------------------------------------------------------------------- /man/E_step.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/E_step.Rd -------------------------------------------------------------------------------- /man/E_step_multi.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/E_step_multi.Rd -------------------------------------------------------------------------------- /man/KL.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/KL.Rd -------------------------------------------------------------------------------- /man/active_initial_messages.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/active_initial_messages.Rd -------------------------------------------------------------------------------- /man/active_label.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/active_label.Rd -------------------------------------------------------------------------------- /man/active_label_from_saved.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/active_label_from_saved.Rd -------------------------------------------------------------------------------- /man/active_label_wrapper.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/active_label_wrapper.Rd -------------------------------------------------------------------------------- /man/agg_helper_convert.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/agg_helper_convert.Rd -------------------------------------------------------------------------------- /man/aggregate_model_predictions.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/aggregate_model_predictions.Rd -------------------------------------------------------------------------------- /man/balancing_data.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/balancing_data.Rd -------------------------------------------------------------------------------- /man/check_extreme_words_inlabel.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/check_extreme_words_inlabel.Rd -------------------------------------------------------------------------------- /man/check_lr_convergence.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/check_lr_convergence.Rd -------------------------------------------------------------------------------- /man/choose_best_model.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/choose_best_model.Rd -------------------------------------------------------------------------------- /man/classification_gui.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/classification_gui.Rd -------------------------------------------------------------------------------- /man/clean_data.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/clean_data.Rd -------------------------------------------------------------------------------- /man/gen_results_tbl.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/gen_results_tbl.Rd -------------------------------------------------------------------------------- /man/generate_lambda_vec.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/generate_lambda_vec.Rd -------------------------------------------------------------------------------- /man/get_alpha_m.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_alpha_m.Rd -------------------------------------------------------------------------------- /man/get_class_matrix.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_class_matrix.Rd -------------------------------------------------------------------------------- /man/get_class_prob.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_class_prob.Rd -------------------------------------------------------------------------------- /man/get_class_prob_NB.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_class_prob_NB.Rd -------------------------------------------------------------------------------- /man/get_class_prob_log.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_class_prob_log.Rd -------------------------------------------------------------------------------- /man/get_classes.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_classes.Rd -------------------------------------------------------------------------------- /man/get_clusters.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_clusters.Rd -------------------------------------------------------------------------------- /man/get_conf_matrix_weight.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_conf_matrix_weight.Rd -------------------------------------------------------------------------------- /man/get_dfm.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_dfm.Rd -------------------------------------------------------------------------------- /man/get_empirical_dist.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_empirical_dist.Rd -------------------------------------------------------------------------------- /man/get_entropy.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_entropy.Rd -------------------------------------------------------------------------------- /man/get_fixed_words_mtx.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_fixed_words_mtx.Rd -------------------------------------------------------------------------------- /man/get_index.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_index.Rd -------------------------------------------------------------------------------- /man/get_initial_documents.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_initial_documents.Rd -------------------------------------------------------------------------------- /man/get_keywords.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_keywords.Rd -------------------------------------------------------------------------------- /man/get_label_prop_fig.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_label_prop_fig.Rd -------------------------------------------------------------------------------- /man/get_maximand.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_maximand.Rd -------------------------------------------------------------------------------- /man/get_mean_mpe.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_mean_mpe.Rd -------------------------------------------------------------------------------- /man/get_mean_mpes.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_mean_mpes.Rd -------------------------------------------------------------------------------- /man/get_model_diff.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_model_diff.Rd -------------------------------------------------------------------------------- /man/get_model_weights.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_model_weights.Rd -------------------------------------------------------------------------------- /man/get_predict_prop_fig.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_predict_prop_fig.Rd -------------------------------------------------------------------------------- /man/get_results_matrix.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_results_matrix.Rd -------------------------------------------------------------------------------- /man/get_tune_lambda_fig.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_tune_lambda_fig.Rd -------------------------------------------------------------------------------- /man/get_uncertain_docs.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_uncertain_docs.Rd -------------------------------------------------------------------------------- /man/get_weighted_prediction.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_weighted_prediction.Rd -------------------------------------------------------------------------------- /man/get_word_prob.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_word_prob.Rd -------------------------------------------------------------------------------- /man/get_word_prob_NB.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_word_prob_NB.Rd -------------------------------------------------------------------------------- /man/get_word_prob_log.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/get_word_prob_log.Rd -------------------------------------------------------------------------------- /man/initialize_beta_tbl.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/initialize_beta_tbl.Rd -------------------------------------------------------------------------------- /man/log_ratio_sample.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/log_ratio_sample.Rd -------------------------------------------------------------------------------- /man/match_EM_to_docs.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/match_EM_to_docs.Rd -------------------------------------------------------------------------------- /man/match_clusters_to_docs.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/match_clusters_to_docs.Rd -------------------------------------------------------------------------------- /man/multiEM.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/multiEM.Rd -------------------------------------------------------------------------------- /man/process_metadata.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/process_metadata.Rd -------------------------------------------------------------------------------- /man/query_eta.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/query_eta.Rd -------------------------------------------------------------------------------- /man/query_label.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/query_label.Rd -------------------------------------------------------------------------------- /man/region_sample.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/region_sample.Rd -------------------------------------------------------------------------------- /man/region_sample_edge.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/region_sample_edge.Rd -------------------------------------------------------------------------------- /man/reshapedocs.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/reshapedocs.Rd -------------------------------------------------------------------------------- /man/reshapedocs_helper.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/reshapedocs_helper.Rd -------------------------------------------------------------------------------- /man/run_unsupervised_EM.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/run_unsupervised_EM.Rd -------------------------------------------------------------------------------- /man/sample_data.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/sample_data.Rd -------------------------------------------------------------------------------- /man/split_dfm.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/split_dfm.Rd -------------------------------------------------------------------------------- /man/split_sparsemat.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/split_sparsemat.Rd -------------------------------------------------------------------------------- /man/tune_lambda.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/tune_lambda.Rd -------------------------------------------------------------------------------- /man/tune_lambda_helper.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/tune_lambda_helper.Rd -------------------------------------------------------------------------------- /man/tune_lambda_in_active.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/tune_lambda_in_active.Rd -------------------------------------------------------------------------------- /man/tuning_algorithm.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/tuning_algorithm.Rd -------------------------------------------------------------------------------- /man/update_results.Rd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/man/update_results.Rd -------------------------------------------------------------------------------- /tests/testthat.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/tests/testthat.R -------------------------------------------------------------------------------- /tests/testthat/test_comparison_all_pol.RDS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/tests/testthat/test_comparison_all_pol.RDS -------------------------------------------------------------------------------- /tests/testthat/test_wrapper.R: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/tests/testthat/test_wrapper.R -------------------------------------------------------------------------------- /vignettes/.gitignore: -------------------------------------------------------------------------------- 1 | *.html 2 | *.R 3 | -------------------------------------------------------------------------------- /vignettes/activeText_vignette-woven.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/vignettes/activeText_vignette-woven.md -------------------------------------------------------------------------------- /vignettes/activeText_vignette.Rmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/activetext/activeText/HEAD/vignettes/activeText_vignette.Rmd --------------------------------------------------------------------------------