Skip to content

Commit

Permalink
Merge pull request #83 from alexisthual/maint/update-python-release
Browse files Browse the repository at this point in the history
[MAINT] Update CI to support python 3.12
  • Loading branch information
pbarbarant authored Nov 5, 2024
2 parents b77086e + 04091d4 commit 93c62a1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
version_python: "3.10"
- os: ubuntu-latest
version_python: "3.11"
- os: ubuntu-latest
version_python: "3.12"
- os: macos-latest
version_python: "3.10"
version_python: "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Fused Unbalanced Gromov-Wasserstein for Python

![build](https://img.shields.io/github/actions/workflow/status/alexisthual/fugw/unit_tests.yml?event=push&style=for-the-badge)
![python version](https://img.shields.io/badge/python-3.8_|_3.9_|_3.10_|_3.11-blue?style=for-the-badge)
![python version](https://img.shields.io/badge/python-3.8_|_3.9_|_3.10_|_3.11_|_3.12-blue?style=for-the-badge)
![license](https://img.shields.io/github/license/alexisthual/fugw?style=for-the-badge)
![code style](https://img.shields.io/badge/code_style-black-black?style=for-the-badge)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@
print(f"Pearson Correlation post-mapping: {corr_post_mapping:.2f}")
print(
"Relative improvement:"
f" {(corr_post_mapping - corr_pre_mapping) / corr_pre_mapping *100 :.2f} %"
f" {(corr_post_mapping - corr_pre_mapping) / corr_pre_mapping * 100 :.2f}"
" %"
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@
print(f"Pearson Correlation post-mapping: {corr_post_mapping:.2f}")
print(
"Relative improvement:"
f" {(corr_post_mapping - corr_pre_mapping) / corr_pre_mapping *100 :.2f} %"
f" {(corr_post_mapping - corr_pre_mapping) / corr_pre_mapping * 100 :.2f}"
" %"
)


Expand Down
2 changes: 1 addition & 1 deletion src/fugw/solvers/dense.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def solve(

if verbose:
console.log(
f"BCD step {idx+1}/{self.nits_bcd}\t"
f"BCD step {idx + 1}/{self.nits_bcd}\t"
f"FUGW loss:\t{current_loss['total']}\t"
f"Validation loss:\t{current_loss_validation['total']}"
)
Expand Down
2 changes: 1 addition & 1 deletion src/fugw/solvers/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def solve(

if verbose:
console.log(
f"BCD step {idx+1}/{self.nits_bcd}\t"
f"BCD step {idx + 1}/{self.nits_bcd}\t"
f"FUGW loss:\t{current_loss['total']}"
)

Expand Down

0 comments on commit 93c62a1

Please sign in to comment.