Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<!-- <div style="clear: both;"></div> -->

![Python](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue)
![Python](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue)
[![PyPI](https://img.shields.io/pypi/v/ikpykit)](https://pypi.org/project/ikpykit/)
[![codecov](https://codecov.io/gh/IsolationKernel/ikpykit/branch/main/graph/badge.svg)](https://codecov.io/gh/IsolationKernel/ikpykit)
[![Build status](https://github.com/IsolationKernel/ikpykit/actions/workflows/ci.yml/badge.svg)](https://github.com/IsolationKernel/ikpykit/actions/workflows/ci.yml)
Expand Down
4 changes: 2 additions & 2 deletions ikpykit/cluster/_kcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ def delete_points(self, points, X):
if isinstance(points, Integral):
if points not in self.points_:
raise ValueError(f"Point {points} not in cluster {self.id}")
self.points_.remove(points)
self.reduce_kernel_mean_(X)
self.points_.remove(points)
elif isinstance(points, Iterable):
missing_points = [p for p in points if p not in self.points_]
if missing_points:
raise ValueError(f"Points {missing_points} not in cluster {self.id}")
self.reduce_kernel_mean_(X)
for p in points:
self.points_.remove(p)
self.reduce_kernel_mean_(X)

def reduce_kernel_mean_(self, X):
if self.kernel_mean_ is None:
Expand Down
2 changes: 0 additions & 2 deletions ikpykit/graph/tests/test_ikgod.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ def test_ikgod_h_hop_neighbors():
]
)

np.random.rand(5, 2)

# h=1 should see only direct neighbors
model_h1 = IKGOD(h=1, n_estimators=10)
model_h1._get_h_nodes_n_dict(adjacency)
Expand Down
5 changes: 2 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ remote_branch: docs_dev
site_description: Python library for Isolation Kernel Toolkit.
site_author: Isolation Kernel Team
use_directory_urls: false
copyright: Copyright &copy; 2024 - 2025 Xin Han
copyright: Copyright &copy; 2024 - 2026 Xin Han

nav:
- Home:
Expand Down Expand Up @@ -67,7 +67,7 @@ plugins:
- mkdocstrings:
handlers:
python:
import:
inventories:
- https://docs.python.org/3/objects.inv
- https://mkdocstrings.github.io/autorefs/objects.inv
- https://www.mkdocs.org/objects.inv
Expand All @@ -86,7 +86,6 @@ plugins:
members_order: source
docstring_options:
ignore_init_summary: true
show_if_no_docstring: true
- mkdocs-jupyter:
ignore_h1_titles: True
include_source: True
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ docs = [
"mike==2.1.3",
"mkdocs==1.6.1",
"mkdocs-jupyter==0.25.0",
"mkdocstrings==0.26.1",
"mkdocstrings-python==1.11.1",
"mkdocstrings==0.30.1",
"mkdocstrings-python==1.18.2",
"notebook==6.4.12",
]
lint = ["black==24.8.0", "pre-commit>=4.3.0", "ruff>=0.14.5"]
Expand Down
22 changes: 9 additions & 13 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading