Skip to content

Commit

Permalink
XGBoost fix and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
KulikDM committed Feb 1, 2025
1 parent cadebbe commit e0a2993
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install libomp for macOS
if: startsWith(matrix.os, 'macos')
run: brew install libomp
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools>=65.5.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
url="https://pypi.org/pypi/pythresh/json"
latest_version=$(curl -s "$url" | jq -r '.info.version')
latest_sha256=$(curl -s "$url" | jq -r '.releases."'"$latest_version"'"[0].digests."sha256"')
latest_sha256=$(curl -s "$url" | jq -r '.releases."'"$latest_version"'"[1].digests."sha256"')
echo "Validating version update"
Expand Down
4 changes: 2 additions & 2 deletions pythresh/thresholds/chau.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class CHAU(BaseThresholder):
method : {'mean', 'median', 'gmean'}, optional (default='mean')
Calculate the area normal to distance using a scaler
- 'mean': Construct a scaler with the the mean of the scores
- 'median: Construct a scaler with the the median of the scores
- 'mean': Construct a scaler with the mean of the scores
- 'median: Construct a scaler with the median of the scores
- 'gmean': Construct a scaler with the geometric mean of the scores
random_state : int, optional (default=1234)
Expand Down
1 change: 1 addition & 0 deletions pythresh/thresholds/mad.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class MAD(BaseThresholder):
factor : int, optional (default=1)
The factor to multiply the MAD by to set the threshold.
The default is 1.
random_state : int, optional (default=1234)
Random seed for the random number generators of the thresholders. Can also
be set to None.
Expand Down
3 changes: 3 additions & 0 deletions pythresh/thresholds/moll.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ class MOLL(BaseThresholder):
Parameters
----------
random_state : int, optional (default=1234)
Random seed for the uniform distribution. Can also be set to None.
Attributes
----------
Expand Down
2 changes: 2 additions & 0 deletions pythresh/thresholds/zscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ class ZSCORE(BaseThresholder):
Parameters
----------
factor : int, optional (default=1)
The factor to multiply the zscore by to set the threshold.
The default is 1.
random_state : int, optional (default=1234)
Random seed for the random number generators of the thresholders. Can also
be set to None.
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ scipy>=1.3.1
setuptools>=65.5.1
torch
tqdm
xgboost>=2.0.0,<2.1.0
xgboost>=2.0.0

0 comments on commit e0a2993

Please sign in to comment.