Implemented custom micro and macro F1 in pl (cpu and gpu)
This commit is contained in:
parent
a60e2cfc09
commit
faa387f696
|
|
@ -69,8 +69,9 @@ class RecurrentModel(pl.LightningModule):
|
||||||
self.linear2 = nn.Linear(ff1, ff2)
|
self.linear2 = nn.Linear(ff1, ff2)
|
||||||
self.label = nn.Linear(ff2, self.output_size)
|
self.label = nn.Linear(ff2, self.output_size)
|
||||||
|
|
||||||
lPretrained = None # TODO: setting lPretrained to None, letting it to its original value will bug first
|
# TODO: setting lPretrained to None, letting it to its original value will bug first validation
|
||||||
# validation step (i.e., checkpoint will store also its ++ value, I guess, making the saving process too slow)
|
# step (i.e., checkpoint will store also its ++ value, I guess, making the saving process too slow)
|
||||||
|
lPretrained = None
|
||||||
self.save_hyperparameters()
|
self.save_hyperparameters()
|
||||||
|
|
||||||
def forward(self, lX):
|
def forward(self, lX):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue