Coverage for lasso/dimred/svd/keyword_types.py: 100%
16 statements
« prev ^ index » next coverage.py v7.2.4, created at 2023-04-28 18:42 +0100
« prev ^ index » next coverage.py v7.2.4, created at 2023-04-28 18:42 +0100
1import typing
4class ClusterType:
5 """Specifies names of specific clustering algorithms
7 Attributes
8 ----------
9 OPTICS: str
10 OPTICS
11 DBSCAN: str
12 DBSCAN
13 KMeans: str
14 KMeans
15 SpectralClustering: str
16 SpectralClustering
17 """
19 OPTICS = "OPTICS"
20 DBSCAN = "DBSCAN"
21 KMeans = "KMeans"
22 SpectralClustering = "SpectralClustering"
24 @staticmethod
25 def get_cluster_type_name() -> typing.List[str]:
26 """Get the name of the clustering algorithms"""
27 return [
28 ClusterType.OPTICS,
29 ClusterType.DBSCAN,
30 ClusterType.KMeans,
31 ClusterType.SpectralClustering,
32 ]
35class DetectorType:
36 """Specifies names of different outlier detector algorythms
38 Attributes
39 ----------
40 IsolationForest: str
41 IsolationForest
42 OneClassSVM: str
43 OneClassSVM
44 LocalOutlierFactor: str
45 LocalOutlierFactor
46 """
48 IsolationForest = "IsolationForest"
49 OneClassSVM = "OneClassSVM"
50 LocalOutlierFactor = "LocalOutlierFactor"
51 # Experimental = "Experimental"
53 @staticmethod
54 def get_detector_type_name() -> typing.List[str]:
55 """Get the name of the detector algorithms"""
56 return [
57 DetectorType.IsolationForest,
58 DetectorType.OneClassSVM,
59 DetectorType.LocalOutlierFactor,
60 ]