expit 1.0.6__py3-none-any.whl → 1.0.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- expit/__init__.py +5 -8
- {expit-1.0.6.dist-info → expit-1.0.7.dist-info}/METADATA +1 -1
- expit-1.0.7.dist-info/RECORD +7 -0
- expit-1.0.6.dist-info/RECORD +0 -7
- {expit-1.0.6.dist-info → expit-1.0.7.dist-info}/LICENSE.txt +0 -0
- {expit-1.0.6.dist-info → expit-1.0.7.dist-info}/WHEEL +0 -0
- {expit-1.0.6.dist-info → expit-1.0.7.dist-info}/top_level.txt +0 -0
expit/__init__.py
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import math as _math
|
|
2
|
-
from importlib.metadata import version as _V
|
|
3
2
|
|
|
4
3
|
import click as _click
|
|
5
4
|
|
|
6
|
-
try:
|
|
7
|
-
__version__ = _V("expit")
|
|
8
|
-
except:
|
|
9
|
-
__version__ = "UNKNOWN"
|
|
10
|
-
|
|
11
5
|
|
|
12
6
|
def function(x: float):
|
|
13
7
|
try:
|
|
@@ -17,9 +11,12 @@ def function(x: float):
|
|
|
17
11
|
return 1 / (1 + p)
|
|
18
12
|
|
|
19
13
|
|
|
20
|
-
@_click.command()
|
|
21
|
-
@_click.
|
|
14
|
+
@_click.command(add_help_option=False)
|
|
15
|
+
@_click.help_option("-h", "--help")
|
|
16
|
+
@_click.version_option(None, "-V", "--version")
|
|
17
|
+
@_click.argument("x", type=float)
|
|
22
18
|
def main(x: float):
|
|
19
|
+
"""applies the expit function to x"""
|
|
23
20
|
_click.echo(function(x))
|
|
24
21
|
|
|
25
22
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
expit/__init__.py,sha256=ZPeXnxhWKGQnvuUE3WHWqNhIPaNqnV5YZN5E-0aZFjs,471
|
|
2
|
+
expit/__main__.py,sha256=vtuVmp_tcHYg_kJhOYt6cRPinFrpMR4yV_6b8tx4n-Q,62
|
|
3
|
+
expit-1.0.7.dist-info/LICENSE.txt,sha256=4_wW1qomV3dbE2RahXvz_BOPr_JNzdKxC90VCXXc74o,1086
|
|
4
|
+
expit-1.0.7.dist-info/METADATA,sha256=6OZ4Ba1-P20SMdq889q2b0p2EP2RMCYHR2sXmHPt6wc,2675
|
|
5
|
+
expit-1.0.7.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
6
|
+
expit-1.0.7.dist-info/top_level.txt,sha256=WDTulZQtgreaVuxzGQhRWdINPuLlCvMWl0gGgmVnsa0,6
|
|
7
|
+
expit-1.0.7.dist-info/RECORD,,
|
expit-1.0.6.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
expit/__init__.py,sha256=X-MW3sKXrAbLyX1XOPecZ-bIbH884DDYzX5Mz0MBbuQ,473
|
|
2
|
-
expit/__main__.py,sha256=vtuVmp_tcHYg_kJhOYt6cRPinFrpMR4yV_6b8tx4n-Q,62
|
|
3
|
-
expit-1.0.6.dist-info/LICENSE.txt,sha256=4_wW1qomV3dbE2RahXvz_BOPr_JNzdKxC90VCXXc74o,1086
|
|
4
|
-
expit-1.0.6.dist-info/METADATA,sha256=u5t3kza3n3TxjfhT5A10iUBT1Ee9lpqiE1MRFLeSGz4,2675
|
|
5
|
-
expit-1.0.6.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
6
|
-
expit-1.0.6.dist-info/top_level.txt,sha256=WDTulZQtgreaVuxzGQhRWdINPuLlCvMWl0gGgmVnsa0,6
|
|
7
|
-
expit-1.0.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|