-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updating project metadata * fixing CI yaml * using venv * trying again * redoing CI * fixing tests * changing some settings * updates * fixing build * trying to fix this * fixing release * bumping version * better code organization * updates * adding initial cm impl * adding unique, dispatching pattern to Py objects, renaming ext * rustfmt * cm dispatched * rustfmt * tests and benchmarks added * bump version * 100% test coverage * updating readme * Threading enabled (#9) * bumping version * major refactor leveraging macros * bumping version and updating test * adding executed notebook * fixing performance w/ bool * multiclass implemented and tested ready for 1.0.0 * shifting to u32 for numpy compatability * bumping version * changing to i64 for better compatability * Major additions to Python API to include high-level helpers * changing to dev deps * ooops * bandit! (#25) * Add 3.11 (#26) * add 3.11 * add 3.11 to tests * Adding `mypy` type checking (#27) * passing mypy type checking * not needed * adding mypy to actions * bumping to 1.2.1
- Loading branch information
1 parent
3876527
commit 1652f33
Showing
10 changed files
with
146 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "fast-stats" | ||
version = "1.2.0" | ||
version = "1.2.1" | ||
edition = "2021" | ||
|
||
[lib] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from typing import List, Set, Tuple, Union | ||
|
||
import numpy as np | ||
|
||
def _binary_precision_reqs( | ||
actual: np.ndarray, pred: np.ndarray | ||
) -> Tuple[int, int, int]: ... | ||
def _binary_recall_reqs( | ||
actual: np.ndarray, pred: np.ndarray | ||
) -> Tuple[int, int, int]: ... | ||
def _binary_f1_score_reqs( | ||
actual: np.ndarray, pred: np.ndarray | ||
) -> Tuple[int, int, int]: ... | ||
def _precision( | ||
actual: np.ndarray, pred: np.ndarray, labels: Union[List, np.ndarray] | ||
) -> np.ndarray: ... | ||
def _recall( | ||
actual: np.ndarray, pred: np.ndarray, labels: Union[List, np.ndarray] | ||
) -> np.ndarray: ... | ||
def _f1_score( | ||
actual: np.ndarray, pred: np.ndarray, labels: Union[List, np.ndarray] | ||
) -> np.ndarray: ... | ||
def _confusion_matrix( | ||
actual: np.ndarray, pred: np.ndarray, labels: Union[List, np.ndarray] | ||
) -> np.ndarray: ... | ||
def _unique(arr: np.ndarray) -> Set: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class ShapeError(Exception): | ||
"""Raised for mismatching numpy array shapes""" | ||
|
||
pass |
Oops, something went wrong.