Skip to content

Commit

Permalink
Merge pull request #63 from kjappelbaum/fix-classification
Browse files Browse the repository at this point in the history
fix: do not always set classification to false
  • Loading branch information
sgbaird authored Feb 9, 2023
2 parents 223dd7a + eb974a1 commit 5600ed0
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 5600ed0

Please sign in to comment.