Skip to content

Commit

Permalink
feat: added deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLapous committed Sep 26, 2024
1 parent 8859a26 commit bb007e6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions multipers/ml/point_clouds.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,37 @@ def transform(self, X):
delayed(self._get_sts)(x) for x in data
)
return stss


class PointCloud2SimplexTree(PointCloud2FilteredComplex):
def __init__(
self,
bandwidths=[],
masses=[],
threshold: float = np.inf,
complex: Literal["alpha", "rips", "delaunay"] = "rips",
sparse: float | None = None,
num_collapses: int = -2,
kernel: available_kernels = "gaussian",
log_density: bool = True,
expand_dim: int = 1,
progress: bool = False,
n_jobs: Optional[int] = None,
fit_fraction: float = 1,
verbose: bool = False,
safe_conversion: bool = False,
output_type: Optional[
Literal["slicer", "simplextree", "slicer_vine", "slicer_novine"]
] = None,
reduce_degrees: Optional[Iterable[int]] = None,
) -> None:
stuff = locals()
stuff.pop("self")
keys = list(stuff.keys())
for key in keys:
if key.startswith("__"):
stuff.pop(key)
super().__init__(**stuff)
from warnings import warn

warn("This class is deprecated, use PointCloud2FilteredComplex instead.")

0 comments on commit bb007e6

Please sign in to comment.