Skip to content

Commit 0c26f86

Browse files
committed
added distant learning, f1: dev 0.6173, test 0.5383
1 parent dfa94e8 commit 0c26f86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

senti/senti_models.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,10 @@ def fit_rnn_char_cnn_word(self):
403403
output_size=3
404404
)
405405
kw = dict(dev_docs=ft_word.transform(self.dev_docs), dev_y=self.dev_labels(), average_classes=[0, 2])
406-
# cf.fit(
407-
# ft_word.transform(distant_docs), distant_labels(), epoch_size=10**4, max_epochs=100,
408-
# save_best=False, **kw
409-
# )
406+
cf.fit(
407+
ft_word.transform(distant_docs), distant_labels(), epoch_size=10**4, max_epochs=100,
408+
save_best=False, **kw
409+
)
410410
cf.fit(ft_word_typo.transform(self.train_docs), self.train_labels(), max_epochs=15, **kw)
411411
estimator = Pipeline([('features', ft_word), ('classifier', cf)])
412412
return 'rnn_char_cnn_word', estimator

0 commit comments

Comments
 (0)