Skip to content

Commit

Permalink
Release 1.3.0 (#30)
Browse files Browse the repository at this point in the history
* 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

* Zero/Constant Memory Calls (#29)

* testing

* continued testing

* progress

* switching to iterating w/ no duplicated memory

* removing unsafe code

* Bump version: 1.2.1 → 1.3.0

* adding bump2version
  • Loading branch information
zachcoleman authored Dec 29, 2022
1 parent 1652f33 commit 45813c1
Show file tree
Hide file tree
Showing 13 changed files with 314 additions and 422 deletions.
12 changes: 12 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[bumpversion]
current_version = 1.3.0
commit = True
tag = False

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:Cargo.toml]
search = version = "{current_version}"
replace = version = "{new_version}"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,5 @@ Cargo.lock

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
.DS_Store
.DS_Store
fil-result/
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fast-stats"
version = "1.2.1"
version = "1.3.0"
edition = "2021"

[lib]
Expand Down
58 changes: 30 additions & 28 deletions examples/benchmarks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"outputs": [],
"source": [
"import fast_stats\n",
"import numpy as np\n",
"from sklearn.metrics import (\n",
" precision_score, \n",
" recall_score, \n",
" f1_score, \n",
" confusion_matrix\n",
")\n",
"import numpy as np"
")"
]
},
{
Expand Down Expand Up @@ -66,7 +66,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"574 ms ± 7.18 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"569 ms ± 6.31 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand All @@ -84,7 +84,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"576 ms ± 9.01 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"566 ms ± 925 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand All @@ -102,7 +102,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"585 ms ± 8.49 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"567 ms ± 2.01 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand Down Expand Up @@ -131,7 +131,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"3.39 ms ± 151 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
"3.91 ms ± 15 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
]
}
],
Expand All @@ -149,7 +149,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"3.4 ms ± 165 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
"3.93 ms ± 23.3 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
]
}
],
Expand All @@ -167,7 +167,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"4.37 ms ± 93.9 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
"4.42 ms ± 7.8 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
]
}
],
Expand Down Expand Up @@ -221,7 +221,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"5.73 ms ± 111 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
"4.49 ms ± 14.2 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
]
}
],
Expand All @@ -239,7 +239,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"3.15 ms ± 124 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
"3.91 ms ± 3.14 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n"
]
}
],
Expand Down Expand Up @@ -274,7 +274,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"684 ms ± 7.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"677 ms ± 1.75 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand All @@ -297,7 +297,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"67.3 ms ± 848 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"56.7 ms ± 831 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
Expand Down Expand Up @@ -340,7 +340,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"683 ms ± 8.79 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"686 ms ± 5.95 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand All @@ -363,7 +363,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"67.9 ms ± 1.16 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"57 ms ± 1.31 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
Expand Down Expand Up @@ -406,7 +406,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"685 ms ± 10.6 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"684 ms ± 6.28 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand All @@ -429,7 +429,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"69 ms ± 1.31 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"56.7 ms ± 679 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
Expand Down Expand Up @@ -540,7 +540,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"277 ms ± 6.18 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"258 ms ± 4.25 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand All @@ -558,7 +558,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"144 ms ± 768 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"133 ms ± 1.44 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
Expand Down Expand Up @@ -591,7 +591,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"132 ms ± 1.48 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"107 ms ± 1.25 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
Expand All @@ -609,7 +609,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"68.2 ms ± 539 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"57.5 ms ± 669 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
Expand Down Expand Up @@ -658,7 +658,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"1.87 ms ± 49.5 µs per loop (mean ± std. dev. of 7 runs, 1,000 loops each)\n"
"1.7 ms ± 27.7 µs per loop (mean ± std. dev. of 7 runs, 1,000 loops each)\n"
]
}
],
Expand All @@ -676,7 +676,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"318 ns ± 0.241 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each)\n"
"107 ns ± 0.273 ns per loop (mean ± std. dev. of 7 runs, 10,000,000 loops each)\n"
]
}
],
Expand All @@ -687,11 +687,8 @@
}
],
"metadata": {
"interpreter": {
"hash": "a3a671d63c09fb4878d313d605bf6366336b9695c04e11736a5d015abf9b1e42"
},
"kernelspec": {
"display_name": "Python 3.9.11 ('.venv39': venv)",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand All @@ -705,9 +702,14 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.11"
"version": "3.10.8"
},
"orig_nbformat": 4
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "2994604185f86bc96c0c5cb0b57fabd703f5f0106f9413ed938cdec2350fab6e"
}
}
},
"nbformat": 4,
"nbformat_minor": 2
Expand Down
Loading

0 comments on commit 45813c1

Please sign in to comment.