Skip to content

Commit

Permalink
replace MethodOfMomentsLoss with MinkowskiLoss to see if the problem …
Browse files Browse the repository at this point in the history
…arises from a different numerical accuracy of MethodOfMomentsLoss between MacOS and other platforms

re-enable ubuntu to quickly see if one platform fails and another works (I expect that both are passing now).
  • Loading branch information
muxator committed Sep 6, 2024
1 parent 054b844 commit 65d3dfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
os: [macos-latest]
os: [ubuntu-latest, macos-latest]
python-version: ["3.12"]

timeout-minutes: 30
Expand Down
4 changes: 2 additions & 2 deletions examples/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import models.simple_models as md

from black_it.calibrator import Calibrator
from black_it.loss_functions.msm import MethodOfMomentsLoss
from black_it.loss_functions.minkowski import MinkowskiLoss
from black_it.samplers.best_batch import BestBatchSampler
from black_it.samplers.halton import HaltonSampler
from black_it.samplers.random_forest import RandomForestSampler
Expand Down Expand Up @@ -53,7 +53,7 @@
print("Real data:", real_data)

# define a loss
loss = MethodOfMomentsLoss()
loss = MinkowskiLoss()

# define the calibration seed
calibration_seed = 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_examples/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


TRUE_PARAMETERS_STR = "True parameters: [0.2, 0.2, 0.75]"
BEST_PARAMETERS_STR = "Best parameters found: [0.19 0.21 0.68]"
BEST_PARAMETERS_STR = "Best parameters found: [0.11 0.13 0.87]"


class TestMainExample(BaseMainExampleTestClass):
Expand Down

0 comments on commit 65d3dfe

Please sign in to comment.