From d267b2b8ff5dfe9073d2df9013a1691ff8c74978 Mon Sep 17 00:00:00 2001 From: Keisuke Ogaki Date: Sat, 14 Oct 2023 14:41:12 +0900 Subject: [PATCH] :art: lessen dependencies --- pqkmeans/evaluation.py | 5 ++++- requirements.txt | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pqkmeans/evaluation.py b/pqkmeans/evaluation.py index e91d7a7..c3b84f6 100644 --- a/pqkmeans/evaluation.py +++ b/pqkmeans/evaluation.py @@ -3,7 +3,10 @@ import os import six.moves.urllib import tarfile -import texmex_python +try: + import texmex_python +except ImportError: + pass def get_gmm_random_dataset(k, dimension=100, test_size=5000, train_size=500): diff --git a/requirements.txt b/requirements.txt index 29656d8..53751e4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ -numpy +numpy<1.21 scikit-learn -pipe +pipe<2.0 scipy six -texmex_python==1.0.0