File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 55from .consensus_cluster import ConsensusCluster # isort:skip
66from .flowsom_estimator import FlowSOMEstimator # isort:skip
77from .batch_flowsom_estimator import BatchFlowSOMEstimator # isort:skip
8+ from .pyFlowSOM_som_estimator import PyFlowSOM_SOMEstimator # isort:skip
9+ from .pyflowsom_estimator import PyFlowSOMEstimator # isort:skip
Original file line number Diff line number Diff line change 11import numpy as np
2- from pyFlowSOM import map_data_to_nodes , som
32from sklearn .utils .validation import check_is_fitted
43
54from . import BaseClusterEstimator
@@ -54,6 +53,8 @@ def fit(
5453 according to importance
5554 :type importance: np.array
5655 """
56+ from pyFlowSOM import map_data_to_nodes , som
57+
5758 alpha = self .alpha
5859 X = X .astype ("double" )
5960
@@ -77,7 +78,10 @@ def fit(
7778
7879 def predict (self , X , y = None ):
7980 """Predict labels using the model."""
81+ from pyFlowSOM import map_data_to_nodes
82+
8083 check_is_fitted (self )
84+
8185 X = X .astype ("double" )
8286 clusters , dists = map_data_to_nodes (self .codes , X )
8387 self .labels_ = clusters .astype (int ) - 1
You can’t perform that action at this time.
0 commit comments