Skip to content

Commit eb79a88

Browse files
committed
[ci skip] Merge pull request #4 from IsolationKernel/develop
fix pip install and readme 46c0587
1 parent 86732a4 commit eb79a88

File tree

7 files changed

+85
-35
lines changed

7 files changed

+85
-35
lines changed

README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77

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

10+
![Python](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue)
11+
[![PyPI](https://img.shields.io/pypi/v/pyikt)](https://pypi.org/project/pyikt/)
12+
[![codecov](https://codecov.io/gh/IsolationKernel/pyikt/branch/master/graph/badge.svg)](https://codecov.io/gh/IsolationKernel/pyikt)
13+
[![Build status](https://github.com/IsolationKernel/pyikt/actions/workflows/python-app.yml/badge.svg)](https://github.com/IsolationKernel/pyikt/actions/workflows/python-app.yml/badge.svg)
14+
[![Project Status: Active](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
15+
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/IsolationKernel/pyikt/graphs/commit-activity)
16+
[![Downloads](https://static.pepy.tech/badge/pyikt)](https://pepy.tech/project/pyikt)
17+
[![Downloads](https://static.pepy.tech/badge/pyikt/month)](https://pepy.tech/project/pyikt)
18+
[![License](https://img.shields.io/github/license/IsolationKernel/pyikt)](https://github.com/IsolationKernel/pyikt/blob/master/LICENSE)
19+
20+
21+
1022
## About The Project
1123

1224
**PyIKT** (Python for Isolation Kernel Toolkit) is an intuitive Python library designed for a variety of machine learning tasks including kernel similarity calculation, anomaly detection, clustering, and change detection—all powered by the innovative **Isolation Kernel (IK)** . Isolation Kernel is a data-dependent kernel that measures similarity by isolating data points using an isolation mechanism. It uniquely adapts to the data distribution, with the property that points in sparse regions are more similar than those in dense regions. Notably, it requires no learning or closed-form expression, making it efficient and scalable.
@@ -49,6 +61,19 @@ For more installation options, including dependencies and additional features, c
4961

5062
---
5163

64+
## Example
65+
66+
```py
67+
# Anomaly Detection using inne.
68+
import numpy as np
69+
from pyikt.anomaly import INNE
70+
X = np.array([[-1.1, 0.2], [0.3, 0.5], [0.5, 1.1], [100, 90]])
71+
clf = INNE(contamination=0.25).fit(X)
72+
clf.predict([[0.1, 0.3], [0, 0.7], [90, 85]])
73+
```
74+
75+
---
76+
5277
## Implemented Algorithms
5378

5479
#### Summary
@@ -138,7 +163,7 @@ Explore our extensive list of examples and tutorials (English and Spanish) to ge
138163

139164
Primarily, PyIKT development consists of adding and creating new *Forecasters*, new validation strategies, or improving the performance of the current code. However, there are many other ways to contribute:
140165

141-
- Submit a bug report or feature request on [GitHub Issues](https://github.com/pyikt/pyikt/issues).
166+
- Submit a bug report or feature request on [GitHub Issues](https://github.com/IsolationKernel/pyikt/issues).
142167
- Contribute a Jupyter notebook to our [examples](./examples/examples_english.html).
143168
- Write [unit or integration tests](https://docs.pytest.org/en/latest/) for our project.
144169
- Answer questions on our issues, Stack Overflow, and elsewhere.
@@ -173,4 +198,4 @@ url = {https://github.com/IsolationKernel/pyikt}
173198

174199
## License
175200

176-
[BSD-3-Clause License](https://github.com/pyikt/pyikt/blob/master/LICENSE)
201+
[BSD-3-Clause License](https://github.com/IsolationKernel/pyikt/blob/master/LICENSE)

index.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,15 @@
573573
</span>
574574
</a>
575575

576+
</li>
577+
578+
<li class="md-nav__item">
579+
<a href="#example" class="md-nav__link">
580+
<span class="md-ellipsis">
581+
Example
582+
</span>
583+
</a>
584+
576585
</li>
577586

578587
<li class="md-nav__item">
@@ -1876,6 +1885,15 @@ <h1>Welcome to PyIKT</h1>
18761885

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

1888+
<p><img alt="Python" src="https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue" />
1889+
<a href="https://pypi.org/project/pyikt/"><img alt="PyPI" src="https://img.shields.io/pypi/v/pyikt" /></a>
1890+
<a href="https://codecov.io/gh/IsolationKernel/pyikt"><img alt="codecov" src="https://codecov.io/gh/IsolationKernel/pyikt/branch/master/graph/badge.svg" /></a>
1891+
<a href="https://github.com/IsolationKernel/pyikt/actions/workflows/python-app.yml/badge.svg"><img alt="Build status" src="https://github.com/IsolationKernel/pyikt/actions/workflows/python-app.yml/badge.svg" /></a>
1892+
<a href="https://www.repostatus.org/#active"><img alt="Project Status: Active" src="https://www.repostatus.org/badges/latest/active.svg" /></a>
1893+
<a href="https://github.com/IsolationKernel/pyikt/graphs/commit-activity"><img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" /></a>
1894+
<a href="https://pepy.tech/project/pyikt"><img alt="Downloads" src="https://static.pepy.tech/badge/pyikt" /></a>
1895+
<a href="https://pepy.tech/project/pyikt"><img alt="Downloads" src="https://static.pepy.tech/badge/pyikt/month" /></a>
1896+
<a href="https://github.com/IsolationKernel/pyikt/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/github/license/IsolationKernel/pyikt" /></a></p>
18791897
<h2 id="about-the-project">About The Project<a class="headerlink" href="#about-the-project" title="Permanent link">&para;</a></h2>
18801898
<p><strong>PyIKT</strong> (Python for Isolation Kernel Toolkit) is an intuitive Python library designed for a variety of machine learning tasks including kernel similarity calculation, anomaly detection, clustering, and change detection—all powered by the innovative <strong>Isolation Kernel (IK)</strong> . Isolation Kernel is a data-dependent kernel that measures similarity by isolating data points using an isolation mechanism. It uniquely adapts to the data distribution, with the property that points in sparse regions are more similar than those in dense regions. Notably, it requires no learning or closed-form expression, making it efficient and scalable.</p>
18811899
<hr />
@@ -1905,6 +1923,15 @@ <h2 id="installation-dependencies">Installation &amp; Dependencies<a class="head
19051923
</code></pre></div>
19061924
<p>For more installation options, including dependencies and additional features, check out our <a href="./quick-start/how-to-install.html">Installation Guide</a>.</p>
19071925
<hr />
1926+
<h2 id="example">Example<a class="headerlink" href="#example" title="Permanent link">&para;</a></h2>
1927+
<div class="language-py highlight"><pre><span></span><code><span class="c1"># Anomaly Detection using inne.</span>
1928+
<span class="kn">import</span><span class="w"> </span><span class="nn">numpy</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">np</span>
1929+
<span class="kn">from</span><span class="w"> </span><span class="nn">pyikt.anomaly</span><span class="w"> </span><span class="kn">import</span> <span class="n">INNE</span>
1930+
<span class="n">X</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([[</span><span class="o">-</span><span class="mf">1.1</span><span class="p">,</span> <span class="mf">0.2</span><span class="p">],</span> <span class="p">[</span><span class="mf">0.3</span><span class="p">,</span> <span class="mf">0.5</span><span class="p">],</span> <span class="p">[</span><span class="mf">0.5</span><span class="p">,</span> <span class="mf">1.1</span><span class="p">],</span> <span class="p">[</span><span class="mi">100</span><span class="p">,</span> <span class="mi">90</span><span class="p">]])</span>
1931+
<span class="n">clf</span> <span class="o">=</span> <span class="n">INNE</span><span class="p">(</span><span class="n">contamination</span><span class="o">=</span><span class="mf">0.25</span><span class="p">)</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">X</span><span class="p">)</span>
1932+
<span class="n">clf</span><span class="o">.</span><span class="n">predict</span><span class="p">([[</span><span class="mf">0.1</span><span class="p">,</span> <span class="mf">0.3</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mf">0.7</span><span class="p">],</span> <span class="p">[</span><span class="mi">90</span><span class="p">,</span> <span class="mi">85</span><span class="p">]])</span>
1933+
</code></pre></div>
1934+
<hr />
19081935
<h2 id="implemented-algorithms">Implemented Algorithms<a class="headerlink" href="#implemented-algorithms" title="Permanent link">&para;</a></h2>
19091936
<h4 id="summary">Summary<a class="headerlink" href="#summary" title="Permanent link">&para;</a></h4>
19101937
<table>
@@ -2186,7 +2213,7 @@ <h2 id="examples-and-tutorials">Examples and tutorials<a class="headerlink" href
21862213
<h2 id="how-to-contribute">How to contribute<a class="headerlink" href="#how-to-contribute" title="Permanent link">&para;</a></h2>
21872214
<p>Primarily, PyIKT development consists of adding and creating new <em>Forecasters</em>, new validation strategies, or improving the performance of the current code. However, there are many other ways to contribute:</p>
21882215
<ul>
2189-
<li>Submit a bug report or feature request on <a href="https://github.com/pyikt/pyikt/issues">GitHub Issues</a>.</li>
2216+
<li>Submit a bug report or feature request on <a href="https://github.com/IsolationKernel/pyikt/issues">GitHub Issues</a>.</li>
21902217
<li>Contribute a Jupyter notebook to our <a href="./examples/examples_english.html">examples</a>.</li>
21912218
<li>Write <a href="https://docs.pytest.org/en/latest/">unit or integration tests</a> for our project.</li>
21922219
<li>Answer questions on our issues, Stack Overflow, and elsewhere.</li>
@@ -2211,7 +2238,7 @@ <h2 id="citation">Citation<a class="headerlink" href="#citation" title="Permanen
22112238
</code></pre></div>
22122239
<hr />
22132240
<h2 id="license">License<a class="headerlink" href="#license" title="Permanent link">&para;</a></h2>
2214-
<p><a href="https://github.com/pyikt/pyikt/blob/master/LICENSE">BSD-3-Clause License</a></p>
2241+
<p><a href="https://github.com/IsolationKernel/pyikt/blob/master/LICENSE">BSD-3-Clause License</a></p>
22152242

22162243

22172244

quick-start/how-to-install.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,7 +1777,7 @@ <h2 id="basic-installation"><strong>Basic installation</strong><a class="headerl
17771777
<div class="language-bash highlight"><pre><span></span><code>pip<span class="w"> </span>install<span class="w"> </span>pyikt
17781778
</code></pre></div>
17791779
<p>Specific version:</p>
1780-
<div class="language-bash highlight"><pre><span></span><code>pip<span class="w"> </span>install<span class="w"> </span><span class="nv">pyikt</span><span class="o">==</span><span class="m">0</span>.01.0
1780+
<div class="language-bash highlight"><pre><span></span><code>pip<span class="w"> </span>install<span class="w"> </span><span class="nv">pyikt</span><span class="o">==</span><span class="m">0</span>.1.0
17811781
</code></pre></div>
17821782
<p>Latest (unstable):</p>
17831783
<div class="language-bash highlight"><pre><span></span><code>pip<span class="w"> </span>install<span class="w"> </span>git+https://github.com/pyikt/pyikt@master
@@ -1788,7 +1788,6 @@ <h2 id="basic-installation"><strong>Basic installation</strong><a class="headerl
17881788
<li>pandas&gt;=1.5</li>
17891789
<li>tqdm&gt;=4.57</li>
17901790
<li>scikit-learn&gt;=1.2</li>
1791-
<li>optuna&gt;=2.10</li>
17921791
<li>joblib&gt;=1.1</li>
17931792
<li>numba&gt;=0.59</li>
17941793
</ul>

quick-start/how-to-install.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pip install pyikt
1515
Specific version:
1616

1717
```bash
18-
pip install pyikt==0.01.0
18+
pip install pyikt==0.1.0
1919
```
2020

2121
Latest (unstable):
@@ -30,6 +30,5 @@ The following dependencies are installed with the default installation:
3030
+ pandas>=1.5
3131
+ tqdm>=4.57
3232
+ scikit-learn>=1.2
33-
+ optuna>=2.10
3433
+ joblib>=1.1
3534
+ numba>=0.59

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

sitemap.xml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,106 +2,106 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://isolationkernel.github.io/pyikt/index.html</loc>
5-
<lastmod>2025-03-02</lastmod>
5+
<lastmod>2025-03-05</lastmod>
66
</url>
77
<url>
88
<loc>https://isolationkernel.github.io/pyikt/api/anomaly/idkd.html</loc>
9-
<lastmod>2025-03-02</lastmod>
9+
<lastmod>2025-03-05</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://isolationkernel.github.io/pyikt/api/anomaly/iforest.html</loc>
13-
<lastmod>2025-03-02</lastmod>
13+
<lastmod>2025-03-05</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://isolationkernel.github.io/pyikt/api/anomaly/inne.html</loc>
17-
<lastmod>2025-03-02</lastmod>
17+
<lastmod>2025-03-05</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://isolationkernel.github.io/pyikt/api/cluster/idkc.html</loc>
21-
<lastmod>2025-03-02</lastmod>
21+
<lastmod>2025-03-05</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://isolationkernel.github.io/pyikt/api/cluster/ikahc.html</loc>
25-
<lastmod>2025-03-02</lastmod>
25+
<lastmod>2025-03-05</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://isolationkernel.github.io/pyikt/api/cluster/pskc.html</loc>
29-
<lastmod>2025-03-02</lastmod>
29+
<lastmod>2025-03-05</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://isolationkernel.github.io/pyikt/api/graph/IsoGraphKernel.html</loc>
33-
<lastmod>2025-03-02</lastmod>
33+
<lastmod>2025-03-05</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://isolationkernel.github.io/pyikt/api/graph/ikgod.html</loc>
37-
<lastmod>2025-03-02</lastmod>
37+
<lastmod>2025-03-05</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://isolationkernel.github.io/pyikt/api/group/ikgad.html</loc>
41-
<lastmod>2025-03-02</lastmod>
41+
<lastmod>2025-03-05</lastmod>
4242
</url>
4343
<url>
4444
<loc>https://isolationkernel.github.io/pyikt/api/kernel/isolation_dis_kernel.html</loc>
45-
<lastmod>2025-03-02</lastmod>
45+
<lastmod>2025-03-05</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://isolationkernel.github.io/pyikt/api/kernel/isolation_kernel.html</loc>
49-
<lastmod>2025-03-02</lastmod>
49+
<lastmod>2025-03-05</lastmod>
5050
</url>
5151
<url>
5252
<loc>https://isolationkernel.github.io/pyikt/api/stream/icid.html</loc>
53-
<lastmod>2025-03-02</lastmod>
53+
<lastmod>2025-03-05</lastmod>
5454
</url>
5555
<url>
5656
<loc>https://isolationkernel.github.io/pyikt/api/stream/streakhc.html</loc>
57-
<lastmod>2025-03-02</lastmod>
57+
<lastmod>2025-03-05</lastmod>
5858
</url>
5959
<url>
6060
<loc>https://isolationkernel.github.io/pyikt/api/time_series/iktod.html</loc>
61-
<lastmod>2025-03-02</lastmod>
61+
<lastmod>2025-03-05</lastmod>
6262
</url>
6363
<url>
6464
<loc>https://isolationkernel.github.io/pyikt/api/trajectory/ikat.html</loc>
65-
<lastmod>2025-03-02</lastmod>
65+
<lastmod>2025-03-05</lastmod>
6666
</url>
6767
<url>
6868
<loc>https://isolationkernel.github.io/pyikt/api/trajectory/tidkc.html</loc>
69-
<lastmod>2025-03-02</lastmod>
69+
<lastmod>2025-03-05</lastmod>
7070
</url>
7171
<url>
7272
<loc>https://isolationkernel.github.io/pyikt/api/trajectory/data_loader/sheep_dogs.html</loc>
73-
<lastmod>2025-03-02</lastmod>
73+
<lastmod>2025-03-05</lastmod>
7474
</url>
7575
<url>
7676
<loc>https://isolationkernel.github.io/pyikt/authors/authors.html</loc>
77-
<lastmod>2025-03-02</lastmod>
77+
<lastmod>2025-03-05</lastmod>
7878
</url>
7979
<url>
8080
<loc>https://isolationkernel.github.io/pyikt/contributing/contribution.html</loc>
81-
<lastmod>2025-03-02</lastmod>
81+
<lastmod>2025-03-05</lastmod>
8282
</url>
8383
<url>
8484
<loc>https://isolationkernel.github.io/pyikt/examples/examples_english.html</loc>
85-
<lastmod>2025-03-02</lastmod>
85+
<lastmod>2025-03-05</lastmod>
8686
</url>
8787
<url>
8888
<loc>https://isolationkernel.github.io/pyikt/faq/table-of-contents.html</loc>
89-
<lastmod>2025-03-02</lastmod>
89+
<lastmod>2025-03-05</lastmod>
9090
</url>
9191
<url>
9292
<loc>https://isolationkernel.github.io/pyikt/quick-start/how-to-install.html</loc>
93-
<lastmod>2025-03-02</lastmod>
93+
<lastmod>2025-03-05</lastmod>
9494
</url>
9595
<url>
9696
<loc>https://isolationkernel.github.io/pyikt/releases/releases.html</loc>
97-
<lastmod>2025-03-02</lastmod>
97+
<lastmod>2025-03-05</lastmod>
9898
</url>
9999
<url>
100100
<loc>https://isolationkernel.github.io/pyikt/user_guides/inne.html</loc>
101-
<lastmod>2025-03-02</lastmod>
101+
<lastmod>2025-03-05</lastmod>
102102
</url>
103103
<url>
104104
<loc>https://isolationkernel.github.io/pyikt/user_guides/table-of-contents.html</loc>
105-
<lastmod>2025-03-02</lastmod>
105+
<lastmod>2025-03-05</lastmod>
106106
</url>
107107
</urlset>

sitemap.xml.gz

1 Byte
Binary file not shown.

0 commit comments

Comments
 (0)