Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test report #203

Merged
merged 22 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
92fd73d
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau May 17, 2024
8e8bca4
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau May 23, 2024
b3455e2
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau May 28, 2024
aa35f2f
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau May 30, 2024
5fbbaca
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau Jun 25, 2024
c8ec7c2
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau Jul 2, 2024
18d6c25
ENH: logos in ReadMe
VincentAuriau Jul 3, 2024
19f04af
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau Jul 4, 2024
03c5b35
merge
VincentAuriau Jul 8, 2024
57bdf4b
poetry lock [--no-update]Merge branch 'main' of github.com:artefactor…
VincentAuriau Jul 31, 2024
1266ad9
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau Aug 21, 2024
053977d
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau Sep 11, 2024
52b2356
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau Oct 21, 2024
78517ec
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau Oct 22, 2024
3ff9d54
Merge branch 'main' of github.com:artefactory/choice-learn-private
VincentAuriau Dec 23, 2024
f7908f7
attempt at fixing test report
VincentAuriau Dec 23, 2024
7ef9843
roll back to pytest-cov
VincentAuriau Dec 23, 2024
7e9f81c
reading actions
VincentAuriau Dec 23, 2024
5977dbd
upgrade TF version
VincentAuriau Dec 23, 2024
2e48dcb
np.product -> np.prod
VincentAuriau Dec 23, 2024
3a83e52
fixes
VincentAuriau Dec 23, 2024
98660c7
test
VincentAuriau Dec 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ jobs:

- name: Build coverage file
run: |
set -e
echo before: $?
python -m pytest tests/
echo exit_code btw: $?
pytest -n auto --junitxml=pytest.xml --cov-report=term-missing --cov=choice_learn tests/ | tee pytest-coverage.txt
echo exit_code: $?
cat pytest-coverage.txt

- name: Pytest coverage comment
uses: VincentAuriau/pytest-coverage-comment@main
Expand Down
2 changes: 1 addition & 1 deletion choice_learn/models/latent_class_base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def _lbfgs_train_step(self, choice_dataset, sample_weight=None):
part = [] # partition indices

for i, shape in enumerate(shapes):
n = np.product(shape)
n = np.prod(shape)
idx.append(tf.reshape(tf.range(count, count + n, dtype=tf.int32), shape))
part.extend([i] * n)
count += n
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
numpy>=1.24
pandas>=1.5
tensorflow>=2.14, <2.17
tensorflow>=2.18, <2.19
tensorflow_probability>=0.22
tf_keras<3
tqdm>=4.0
Loading