Skip to content

Commit

Permalink
before gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasMelton committed Nov 12, 2024
1 parent f2e4ea9 commit 79a6d59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions artlib/experimental/alphashape.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
from scipy.spatial import Delaunay
import numpy as np
import math
from typing import Union, Tuple, List, Set
from collections import defaultdict
from typing import Tuple, Set

def circumcenter(points: np.ndarray) -> np.ndarray:
"""
Expand Down
4 changes: 2 additions & 2 deletions examples/demo_convex_hull_art.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def cluster_blobs():
plt.show()

def cluster_moons():
data, target = make_moons(n_samples=1000, noise=0.05, random_state=10,
data, target = make_moons(n_samples=1000, noise=0.15, random_state=10,
shuffle=False)
# vat, idx = VAT(data)
# plt.figure()
Expand All @@ -43,7 +43,7 @@ def cluster_moons():
# target = target[idx]
print("Data has shape:", data.shape)

params = {"rho": 0.2, "alpha": 1e-20, "alpha_hull": 8., "min_lambda": 1e-5, "max_lambda": 0.2}
params = {"rho": 0.2, "alpha": 1e-20, "alpha_hull": 7., "min_lambda": 1e-5, "max_lambda": 0.2}
cls = HullART(**params)

X = cls.prepare_data(data)
Expand Down

0 comments on commit 79a6d59

Please sign in to comment.