Skip to content

Commit e9312be

Browse files
authored
Update id_estimation.py
I changed the default of return_sizes and return_ranks in return_id_scaling_2NN and return_id_scaling_gride from "True" to "False." Thus, the distances will be returned by default, consistent with the outputs shown in the tutorial notebook and for backward compatibility.
1 parent f0b3fdd commit e9312be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dadapy/id_estimation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def return_id_scaling_2NN(
256256
algorithm="base",
257257
mu_fraction=0.9,
258258
set_attr=False,
259-
return_sizes=True,
259+
return_sizes=False,
260260
):
261261
"""Compute the id with the 2NN algorithm at different scales.
262262
@@ -339,7 +339,7 @@ def return_id_scaling_gride(
339339
d1=1000,
340340
eps=1e-7,
341341
set_attr=False,
342-
return_ranks=True,
342+
return_ranks=False,
343343
):
344344
"""Compute the id at different scales using the Gride algorithm.
345345

0 commit comments

Comments
 (0)