Skip to content

Commit

Permalink
final fix for py3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rbs392 committed Apr 13, 2020
1 parent b18dbef commit 1830d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adtk/detector/_detector_hd.py
Expand Up @@ -126,7 +126,7 @@ def _fit_core(self, df: pd.DataFrame) -> None:
if df.dropna().empty:
raise RuntimeError("Valid values are not enough for training.")
clustering_result = self.model.fit_predict(df.dropna())
cluster_count = Counter(clustering_result)
cluster_count = Counter(clustering_result) # type: Counter
self._anomalous_cluster_id = cluster_count.most_common()[-1][0]

def _predict_core(self, df: pd.DataFrame) -> pd.Series:
Expand Down

0 comments on commit 1830d18

Please sign in to comment.