Skip to content

Commit

Permalink
fix: do not always set classification to false
Browse files Browse the repository at this point in the history
  • Loading branch information
kjappelbaum authored Feb 9, 2023
1 parent 223dd7a commit eb974a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crabnet/crabnet_.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,13 @@ def __init__(
self.max_lr = max_lr

# Apply BCEWithLogitsLoss to model output if binary classification is True
if classification:
self.classification = True
self.classification = classification


self.model_name = model_name
self.mat_prop = mat_prop
self.data_loader = None
self.train_loader = None
self.classification = False
self.n_elements = n_elements

self.fudge = fudge # expected fractional tolerance (std. dev) ~= 2%
Expand Down

0 comments on commit eb974a1

Please sign in to comment.