From 906f5844cd6e551408bddfead9f5374c235345d3 Mon Sep 17 00:00:00 2001 From: zeio Date: Tue, 17 Jan 2023 22:50:55 +0300 Subject: [PATCH] Fixed imports --- seqlearn/_utils/transmatrix.py | 2 +- seqlearn/base.py | 2 +- seqlearn/hmm.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/seqlearn/_utils/transmatrix.py b/seqlearn/_utils/transmatrix.py index 7d83b64..f1540ae 100644 --- a/seqlearn/_utils/transmatrix.py +++ b/seqlearn/_utils/transmatrix.py @@ -3,7 +3,7 @@ import numpy as np from scipy.sparse import csr_matrix -from sklearn.externals import six +import six def make_trans_matrix(y, n_classes, dtype=np.float64): diff --git a/seqlearn/base.py b/seqlearn/base.py index d4b3db8..7153c71 100644 --- a/seqlearn/base.py +++ b/seqlearn/base.py @@ -1,7 +1,7 @@ import numpy as np from sklearn.base import BaseEstimator, ClassifierMixin from sklearn.metrics import accuracy_score -from sklearn.externals import six +import six from ._decode import DECODERS from ._utils import atleast2d_or_csr, safe_sparse_dot, validate_lengths diff --git a/seqlearn/hmm.py b/seqlearn/hmm.py index 59df882..c8a767c 100644 --- a/seqlearn/hmm.py +++ b/seqlearn/hmm.py @@ -1,7 +1,7 @@ """Hidden Markov models (HMMs) with supervised training.""" import numpy as np -from scipy.misc import logsumexp +from scipy.special import logsumexp from .base import BaseSequenceClassifier from ._utils import atleast2d_or_csr, count_trans, safe_sparse_dot