Skip to content

Commit

Permalink
Move loss to new module
Browse files Browse the repository at this point in the history
  • Loading branch information
mfschubert committed Dec 6, 2023
1 parent 07c8ce1 commit 79cc762
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/invrs_gym/challenges/ceviche/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@

from invrs_gym import utils
from invrs_gym.challenges import base
from invrs_gym.challenges.ceviche import defaults, transmission_loss
from invrs_gym.challenges.ceviche import defaults
from invrs_gym.loss import transmission_loss

Params = Any

FIELDS = "fields"
SPARAMS = "sparams"

TRANSMISSION_EXPONENT = 0.5
TRANSMISSION_EXPONENT = 1.0
SCALAR_EXPONENT = 2.0

DENSITY_LOWER_BOUND = 0.0
Expand Down
1 change: 1 addition & 0 deletions src/invrs_gym/loss/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from invrs_gym.loss import transmission_loss as transmission_loss
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import functools
import unittest

from invrs_gym.challenges.ceviche import transmission_loss
from invrs_gym.loss import transmission_loss


class OrthotopeSmoothLossTest(unittest.TestCase):
Expand Down

0 comments on commit 79cc762

Please sign in to comment.