5858)
5959
6060
61- def mapper_labels (X , y , cover , clustering , n_jobs = 1 ):
61+ def mapper_labels (X , y , cover , clustering , n_jobs = - 1 ):
6262 """
6363 Identify the nodes of the Mapper graph.
6464
@@ -87,7 +87,7 @@ def mapper_labels(X, y, cover, clustering, n_jobs=1):
8787 interface, typically from :mod:`sklearn.cluster`.
8888 :param n_jobs: The maximum number of parallel clustering jobs. This
8989 parameter is passed to the constructor of :class:`joblib.Parallel`.
90- Defaults to 1.
90+ Defaults to - 1.
9191 :type n_jobs: int
9292 :return: A list of node labels for each point in the dataset.
9393 :rtype: list[list[int]]
@@ -112,7 +112,7 @@ def _run_clustering(local_ids):
112112 return itm_lbls
113113
114114
115- def mapper_connected_components (X , y , cover , clustering , n_jobs = 1 ):
115+ def mapper_connected_components (X , y , cover , clustering , n_jobs = - 1 ):
116116 """
117117 Identify the connected components of the Mapper graph.
118118
@@ -139,7 +139,7 @@ def mapper_connected_components(X, y, cover, clustering, n_jobs=1):
139139 interface, typically from :mod:`sklearn.cluster`.
140140 :param n_jobs: The maximum number of parallel clustering jobs. This
141141 parameter is passed to the constructor of :class:`joblib.Parallel`.
142- Defaults to 1.
142+ Defaults to - 1.
143143 :type n_jobs: int
144144 :return: A list of labels. The label at position i identifies the connected
145145 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):
162162 return labels
163163
164164
165- def mapper_graph (X , y , cover , clustering , n_jobs = 1 ):
165+ def mapper_graph (X , y , cover , clustering , n_jobs = - 1 ):
166166 """
167167 Create the Mapper graph.
168168
@@ -189,7 +189,7 @@ def mapper_graph(X, y, cover, clustering, n_jobs=1):
189189 interface, typically from :mod:`sklearn.cluster`.
190190 :param n_jobs: The maximum number of parallel clustering jobs. This
191191 parameter is passed to the constructor of :class:`joblib.Parallel`.
192- Defaults to 1.
192+ Defaults to - 1.
193193 :type n_jobs: int
194194 :return: The Mapper graph.
195195 :rtype: :class:`networkx.Graph`
@@ -378,7 +378,7 @@ def __init__(
378378 clustering = None ,
379379 failsafe = True ,
380380 verbose = True ,
381- n_jobs = 1 ,
381+ n_jobs = - 1 ,
382382 ):
383383 self .cover = cover
384384 self .clustering = clustering
0 commit comments