From 3da221b7ab84795526be11886efd9b70ca391c86 Mon Sep 17 00:00:00 2001 From: Ashish Peruri Date: Wed, 7 Aug 2024 10:42:54 -0700 Subject: [PATCH 1/5] Update requirements and bump version --- CHANGELOG.txt | 6 ++++++ mab2rec/_version.py | 2 +- requirements.txt | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 81aaa18..d9816c2 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -2,6 +2,12 @@ CHANGELOG ========= +------------------------------------------------------------------------------- +February, 22, 2024 1.3.1 +------------------------------------------------------------------------------- +Minor: +- Updated requirements to use mabwiser>=2.7.3 to reflect changes in mabwiser tests. + ------------------------------------------------------------------------------- February, 22, 2024 1.3.0 ------------------------------------------------------------------------------- diff --git a/mab2rec/_version.py b/mab2rec/_version.py index f426661..4c12c7d 100644 --- a/mab2rec/_version.py +++ b/mab2rec/_version.py @@ -4,5 +4,5 @@ __author__ = "FMR LLC" __email__ = "opensource@fmr.com" -__version__ = "1.3.0" +__version__ = "1.3.1" __copyright__ = "Copyright (C), FMR LLC" diff --git a/requirements.txt b/requirements.txt index e4ed6ef..429a69e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,5 @@ scikit-learn>=0.24.0 scipy matplotlib seaborn>=0.1.0 -mabwiser>=2.7.0 +mabwiser>=2.7.3 jurity>=1.3.2 \ No newline at end of file From 95fc78de44aa3d3195f69d926ee229945aa727a8 Mon Sep 17 00:00:00 2001 From: Ashish Peruri Date: Fri, 30 Aug 2024 20:44:41 -0400 Subject: [PATCH 2/5] Updating mabwiser version --- CHANGELOG.txt | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d9816c2..9d3162c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -6,7 +6,7 @@ CHANGELOG February, 22, 2024 1.3.1 ------------------------------------------------------------------------------- Minor: -- Updated requirements to use mabwiser>=2.7.3 to reflect changes in mabwiser tests. +- Updated requirements to use mabwiser>=2.7.4 to reflect changes in mabwiser tests. ------------------------------------------------------------------------------- February, 22, 2024 1.3.0 diff --git a/requirements.txt b/requirements.txt index 429a69e..b6077b9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,5 @@ scikit-learn>=0.24.0 scipy matplotlib seaborn>=0.1.0 -mabwiser>=2.7.3 +mabwiser>=2.7.4 jurity>=1.3.2 \ No newline at end of file From b4c80d469ade8fcf08fe8e03855fa1b27d81c776 Mon Sep 17 00:00:00 2001 From: Ashish Peruri Date: Tue, 3 Sep 2024 11:33:56 -0400 Subject: [PATCH 3/5] Update changelog Signed-off-by: Ashish Peruri --- CHANGELOG.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 9d3162c..a609f4b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -6,7 +6,7 @@ CHANGELOG February, 22, 2024 1.3.1 ------------------------------------------------------------------------------- Minor: -- Updated requirements to use mabwiser>=2.7.4 to reflect changes in mabwiser tests. +- Updated requirements to use mabwiser>=2.7.4 to reflect change from np.Inf to np.inf in mabwiser. ------------------------------------------------------------------------------- February, 22, 2024 1.3.0 From 5a72b479ad239c6ba847b1d19fc9806306f47688 Mon Sep 17 00:00:00 2001 From: Ashish Peruri Date: Tue, 3 Sep 2024 20:50:10 -0400 Subject: [PATCH 4/5] fix n_init to default values used in scikit-learn < 1.4 --- CHANGELOG.txt | 1 + tests/test_visualization.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a609f4b..29061eb 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -7,6 +7,7 @@ February, 22, 2024 1.3.1 ------------------------------------------------------------------------------- Minor: - Updated requirements to use mabwiser>=2.7.4 to reflect change from np.Inf to np.inf in mabwiser. +- Fixed default KMeans n_init parameters in tests instead of using 'auto' used in scikit-learn>=1.4 ------------------------------------------------------------------------------- February, 22, 2024 1.3.0 diff --git a/tests/test_visualization.py b/tests/test_visualization.py index d392e7d..2e66f01 100644 --- a/tests/test_visualization.py +++ b/tests/test_visualization.py @@ -93,7 +93,7 @@ def test_plot_num_items_per_recommendation(self, mock_show): def test_plot_personalization_heatmap(self, mock_show): # Create clusters based on user features X = user_features_df.iloc[:, 1:] - kmeans = KMeans(n_clusters=5, random_state=1652) + kmeans = KMeans(n_clusters=5, n_init=10, random_state=1652) kmeans.fit(X) user_clusters = dict(zip(user_features_df['user_id'], kmeans.labels_)) cmap = sns.diverging_palette(220, 10, as_cmap=True) From 6269a5a0bc3af0a9c611940697aec9f62a8bf596 Mon Sep 17 00:00:00 2001 From: Ashish Peruri Date: Tue, 3 Sep 2024 20:52:29 -0400 Subject: [PATCH 5/5] Update changelog date --- CHANGELOG.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 29061eb..342b08a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,7 +3,7 @@ CHANGELOG ========= ------------------------------------------------------------------------------- -February, 22, 2024 1.3.1 +September, 03, 2024 1.3.1 ------------------------------------------------------------------------------- Minor: - Updated requirements to use mabwiser>=2.7.4 to reflect change from np.Inf to np.inf in mabwiser.