Skip to content

Commit

Permalink
Merge pull request #16 from sidchaini/alpha
Browse files Browse the repository at this point in the history
Two Big Feature Updates: changes in how metric is passed, and new distance metrics
  • Loading branch information
sidchaini authored Sep 19, 2024
2 parents df6f465 + da0d29a commit 0cb3fda
Show file tree
Hide file tree
Showing 7 changed files with 1,054 additions and 1,192 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ X, y = make_classification(
random_state=0,
shuffle=False,
)
clf = dcpy.DistanceMetricClassifier(metric="canberra")
clf = dcpy.DistanceMetricClassifier()
clf.fit(X, y)
print(clf.predict([[0, 0, 0, 0]]))
print(clf.predict([[0, 0, 0, 0]]), metric="canberra")
```

## Features
Expand Down
2 changes: 1 addition & 1 deletion distclassipy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
from .classifier import DistanceMetricClassifier # noqa
from .distances import Distance # noqa

__version__ = "0.1.6a0"
__version__ = "0.2.0a0"
Loading

0 comments on commit 0cb3fda

Please sign in to comment.