Skip to content

Commit

Permalink
log info about normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
katosh committed Oct 3, 2023
1 parent 99bb40f commit cae38a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mellon/density_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,14 @@ def __init__(
def _compute_d(self):
x = self.x
if self.d_method == "fractal":
logger.warning("Using EXPERIMENTAL fractal dimensionality selection.")
d = compute_d_factal(x)
logger.info(f"Using d={d}.")
else:
d = compute_d(x)
logger.info(
f"Using embedding dimensionality d={d}. "
'Use d_method="fractal" instead to enable effective density normalization.'
)
if d > 50:
message = f"""The detected dimensionality of the data is over 50,
which is likely to cause numerical instability issues.
Expand Down

0 comments on commit cae38a9

Please sign in to comment.