Skip to content

Commit

Permalink
Merge pull request #2 from GPla/change/1/fix-example
Browse files Browse the repository at this point in the history
fix example in readme and doc
  • Loading branch information
GPla authored Apr 8, 2024
2 parents 75b283f + 2eef1b1 commit fb3a82f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ Changes for the upcoming release can be found in the "changelog" directory in ou

.. towncrier release notes start
0.1.2 (2024-04-08)
------------------




Changes
^^^^^^^

- Fix example in readme and docstring.
`#1 <https://github.com/GPla/faster-eTaPR/issues/1>`__


0.1.0 (2024-03-26)
------------------
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Now, you run your evaluation in python:
.. code::
import faster_etapr
faster_etapr.evaluate_from_ranges(
faster_etapr.evaluate_from_preds(
y_hat=[0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0],
y= [0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1],
theta_p=0.5,
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ dev-dependencies = [
"tox>=4.14.2",
"uv>=0.1.24",
"pytest-cov>=5.0.0",
"towncrier>=23.11.0",
]

[tool.hatch.metadata]
Expand Down Expand Up @@ -104,11 +105,11 @@ force-single-line = true

[tool.towncrier]
package_dir="src"
package = "etapr"
package = "faster_etapr"
filename = "CHANGELOG.rst"
directory = "changelog"
template = "changelog/towncrier_template.rst"
issue_format = "`#{issue} <https://github.com/saurf4ng/eTaPR/issues/{issue}>`__"
issue_format = "`#{issue} <https://github.com/GPla/faster-eTaPR/issues/{issue}>`__"
title_format = "{version} ({project_date})"
underlines=["-", "-", "^"]

Expand Down
2 changes: 1 addition & 1 deletion src/faster_etapr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.1.1'
__version__ = '0.1.2'

__title__ = 'faster-eTaPR'
__description__ = 'Faster implementation of github.com/saurf4ng/eTaPR.'
Expand Down
2 changes: 1 addition & 1 deletion src/faster_etapr/etapr.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ def evaluate_from_preds(
Example:
>>> import faster_etapr
>>> faster_etapr.evaluate_from_ranges(
>>> faster_etapr.evaluate_from_preds(
... y_hat=[0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0],
... y= [0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1],
... theta_p=0.5,
Expand Down

0 comments on commit fb3a82f

Please sign in to comment.