We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77b4670 commit 00d1055Copy full SHA for 00d1055
sklearn/hmm.py
@@ -18,7 +18,6 @@
18
import numpy as np
19
20
from .utils import check_random_state
21
-from .utils.validation import as_float_array
22
from .utils.extmath import logsumexp
23
from .base import BaseEstimator
24
from .mixture import (
@@ -475,7 +474,7 @@ def _set_startprob(self, startprob):
475
474
if startprob is None:
476
startprob = np.tile(1.0 / self.n_components, self.n_components)
477
else:
478
- startprob = as_float_array(startprob, copy=False)
+ startprob = np.array(startprob, dtype=np.float)
479
480
# check if there exists a component whose value is exactly zero
481
# if so, add a small number and re-normalize
0 commit comments