-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored codebase (backwards compatible)
- Loading branch information
Showing
147 changed files
with
6,207 additions
and
3,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.9] | ||
python-version: [3.11] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -39,8 +39,19 @@ jobs: | |
- name: Run tests | ||
run: | | ||
pytest -x --cov=pygrank --cov-report=xml tests/test_autorefs.py tests/test_core.py tests/test_measures.py tests/test_filters.py tests/test_autotune.py tests/test_filter_optimization.py tests/test_gnn.py tests/test_postprocessing.py tests/test_benchmarks.py tests/test_fairness.py tests/test_preprocessor.py | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
fail_ci_if_error: true | ||
verbose: true | ||
- name: Generate coverage badge | ||
run: coverage-badge -o coverage.svg -f | ||
- name: Commit coverage badge | ||
if: ${{ matrix.python-version == '3.11' }} | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
git add coverage.svg | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git commit -m 'Updated coverage badge' | ||
git push | ||
else | ||
echo "No changes in coverage to commit" | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ __pycache__/ | |
.Python | ||
env/ | ||
build/ | ||
.pytest_cache/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
import pygrank as pg | ||
import setting | ||
|
||
pg.split() | ||
|
||
print("----------- PPR.85 -----------") | ||
filter = pg.PageRank(0.85, max_iters=10000, tol=1.E-9, assume_immutability=True, normalization="symmetric") | ||
setting.experiment(filter, ["citeseer"], pg.AUC, [.1, .2, .3, .4, .5], fix_personalization=True, repeats=2, sensitive_group=100) | ||
filter = pg.PageRank( | ||
0.85, | ||
max_iters=10000, | ||
tol=1.0e-9, | ||
assume_immutability=True, | ||
normalization="symmetric", | ||
) | ||
setting.experiment( | ||
filter, | ||
["citeseer"], | ||
pg.AUC, | ||
[0.1, 0.2, 0.3, 0.4, 0.5], | ||
fix_personalization=True, | ||
repeats=2, | ||
sensitive_group=100, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.