Skip to content

Commit 00d1055

Browse files
committed
FIX HMM test failures
1 parent 77b4670 commit 00d1055

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/hmm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import numpy as np
1919

2020
from .utils import check_random_state
21-
from .utils.validation import as_float_array
2221
from .utils.extmath import logsumexp
2322
from .base import BaseEstimator
2423
from .mixture import (
@@ -475,7 +474,7 @@ def _set_startprob(self, startprob):
475474
if startprob is None:
476475
startprob = np.tile(1.0 / self.n_components, self.n_components)
477476
else:
478-
startprob = as_float_array(startprob, copy=False)
477+
startprob = np.array(startprob, dtype=np.float)
479478

480479
# check if there exists a component whose value is exactly zero
481480
# if so, add a small number and re-normalize

0 commit comments

Comments
 (0)