Skip to content

Commit

Permalink
v0.0.6
Browse files Browse the repository at this point in the history
Added CI testing and improved documentation
  • Loading branch information
sidchaini committed Feb 7, 2024
1 parent 51cfc79 commit c46a308
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

runs-on: ${{ matrix.os }}

Expand All @@ -33,10 +33,10 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install distclassipy pytest pytest-cov
- name: Test classifier with PyTest
- name: Test classifier model with PyTest
run: |
python3 -m pytest tests/test_classifier.py --cov=distclassipy.classifier --cov-report term-missing
- name: Test distances with PyTest
- name: Test distance functions with PyTest
run: |
python3 -m pytest tests/test_distances.py --cov=distclassipy.distances --cov-report term-missing
2 changes: 2 additions & 0 deletions build/lib/distclassipy/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ def predict_and_analyse(self, X: np.array):
).ravel()
sum_1d_dists = sum_1d_dists + dists / self.df_std_.loc[cl, feat]
confs = 1 / sum_1d_dists
# Add epsilon later
# confs = 1 / (sum_1d_dists + np.finfo(float).eps)
conf_cl.append(confs)
conf_cl = np.array(conf_cl)
self.conf_cl_ = conf_cl
Expand Down
Binary file added dist/distclassipy-0.0.6-py3-none-any.whl
Binary file not shown.
Binary file added dist/distclassipy-0.0.6.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion distclassipy.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: distclassipy
Version: 0.0.5
Version: 0.0.6
Summary: A python package for a distance-based classifier which can use several different distance metrics.
Author-email: Siddharth Chaini <[email protected]>
License: GNU GENERAL PUBLIC LICENSE
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "distclassipy"
version = "0.0.5"
version = "0.0.6"
description = "A python package for a distance-based classifier which can use several different distance metrics."
readme = "README.md"
requires-python = ">=3.10"
Expand Down

0 comments on commit c46a308

Please sign in to comment.