From 7c127c4446eae95672403c4ae0e000b31d20c1d7 Mon Sep 17 00:00:00 2001 From: KAI MAURIN-JONES Date: Sun, 18 Feb 2024 13:32:46 -0500 Subject: [PATCH] changelog added --- AllMeans/all_means.py | 2 -- CHANGELOG.md | 13 +++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/AllMeans/all_means.py b/AllMeans/all_means.py index 8e70a7a..9d1c95b 100644 --- a/AllMeans/all_means.py +++ b/AllMeans/all_means.py @@ -166,7 +166,6 @@ def model_topics(self, early_stop = 2, verbose = False, model = "distilbert-base if verbose: print("-" * 50) print(f"Early stop triggered. Logged scores: {[round(scr, 4) for scr in self.avg_scores]}") # rounded for readability - # print("-" * 50) break order_centroids = kmeans.cluster_centers_.argsort()[:, ::-1] @@ -187,7 +186,6 @@ def model_topics(self, early_stop = 2, verbose = False, model = "distilbert-base if best_selection: if verbose: print(f"Best selection before assigning clusters: {best_selection}") - # print("-" * 50) self._assign_clusters_to_sentences(clusters, best_selection, verbose) return self.clusters diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b2f6d3f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog + +All notable changes to this AllMeans will be documented in this file. + +## [Future Additions] + +- AllMeans.model_topics() to also take arg 'exclusions' (name unconfirmed) that will allow the user to pass a list of strings to be excluded from considered topics. + +## [Unreleased] + +### Added + +- Initial features and documentation. AllMeans.model_topics() is currently the main method, with args 'early_stop', 'verbose', and 'model'. \ No newline at end of file