58
58
)
59
59
60
60
61
- def mapper_labels (X , y , cover , clustering , n_jobs = 1 ):
61
+ def mapper_labels (X , y , cover , clustering , n_jobs = - 1 ):
62
62
"""
63
63
Identify the nodes of the Mapper graph.
64
64
@@ -87,7 +87,7 @@ def mapper_labels(X, y, cover, clustering, n_jobs=1):
87
87
interface, typically from :mod:`sklearn.cluster`.
88
88
:param n_jobs: The maximum number of parallel clustering jobs. This
89
89
parameter is passed to the constructor of :class:`joblib.Parallel`.
90
- Defaults to 1.
90
+ Defaults to - 1.
91
91
:type n_jobs: int
92
92
:return: A list of node labels for each point in the dataset.
93
93
:rtype: list[list[int]]
@@ -112,7 +112,7 @@ def _run_clustering(local_ids):
112
112
return itm_lbls
113
113
114
114
115
- def mapper_connected_components (X , y , cover , clustering , n_jobs = 1 ):
115
+ def mapper_connected_components (X , y , cover , clustering , n_jobs = - 1 ):
116
116
"""
117
117
Identify the connected components of the Mapper graph.
118
118
@@ -139,7 +139,7 @@ def mapper_connected_components(X, y, cover, clustering, n_jobs=1):
139
139
interface, typically from :mod:`sklearn.cluster`.
140
140
:param n_jobs: The maximum number of parallel clustering jobs. This
141
141
parameter is passed to the constructor of :class:`joblib.Parallel`.
142
- Defaults to 1.
142
+ Defaults to - 1.
143
143
:type n_jobs: int
144
144
:return: A list of labels. The label at position i identifies the connected
145
145
component of the point at position i in the dataset.
@@ -162,7 +162,7 @@ def mapper_connected_components(X, y, cover, clustering, n_jobs=1):
162
162
return labels
163
163
164
164
165
- def mapper_graph (X , y , cover , clustering , n_jobs = 1 ):
165
+ def mapper_graph (X , y , cover , clustering , n_jobs = - 1 ):
166
166
"""
167
167
Create the Mapper graph.
168
168
@@ -189,7 +189,7 @@ def mapper_graph(X, y, cover, clustering, n_jobs=1):
189
189
interface, typically from :mod:`sklearn.cluster`.
190
190
:param n_jobs: The maximum number of parallel clustering jobs. This
191
191
parameter is passed to the constructor of :class:`joblib.Parallel`.
192
- Defaults to 1.
192
+ Defaults to - 1.
193
193
:type n_jobs: int
194
194
:return: The Mapper graph.
195
195
:rtype: :class:`networkx.Graph`
@@ -378,7 +378,7 @@ def __init__(
378
378
clustering = None ,
379
379
failsafe = True ,
380
380
verbose = True ,
381
- n_jobs = 1 ,
381
+ n_jobs = - 1 ,
382
382
):
383
383
self .cover = cover
384
384
self .clustering = clustering
0 commit comments