File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed
Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Python Package
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ publish :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Check out code
13+ uses : actions/checkout@v4
14+
15+ - name : Set up Python
16+ uses : actions/setup-python@v4
17+ with :
18+ python-version : ' 3.10'
19+
20+ - name : Install dependencies
21+ run : |
22+ python -m pip install --upgrade pip
23+ pip install build twine
24+
25+ - name : Build package
26+ run : |
27+ python -m build
28+
29+ - name : Publish package to PyPI
30+ env :
31+ TWINE_USERNAME : __token__
32+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
33+ run : |
34+ twine upload dist/*
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ A convenience function is available to visualize distribution effects. This meth
7979 :align: center
8080
8181To initialize the adjusted distribution function, the base model for conditional distribution function needs to be passed.
82- In the following example, we use Logistic Regression.
82+ In the following example, we use Logistic Regression. Please make sure that your base model implements ` fit ` and ` predict_proba ` methods.
8383
8484.. code-block :: python
8585
You can’t perform that action at this time.
0 commit comments