diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-08-01 15:34:22 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-08-01 15:34:22 +0530 |
commit | e80badd278f54e8cde64243aa56687f8e6e32cc2 (patch) | |
tree | 12667ca96236edca69b9f28ae7a66a1884f30156 /lstm_chem/finetuner.py | |
parent | cfa7ae936935010f77eaddd561ff1c0857a3c6f0 (diff) |
added alpha model
Diffstat (limited to 'lstm_chem/finetuner.py')
-rw-r--r--[-rwxr-xr-x] | lstm_chem/finetuner.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lstm_chem/finetuner.py b/lstm_chem/finetuner.py index 904958b..24f26ce 100755..100644 --- a/lstm_chem/finetuner.py +++ b/lstm_chem/finetuner.py @@ -1,4 +1,4 @@ -from lstm_chem.utils.smiles_tokenizer import SmilesTokenizer +from lstm_chem.utils.smiles_tokenizer2 import SmilesTokenizer from lstm_chem.generator import LSTMChemGenerator @@ -14,7 +14,8 @@ class LSTMChemFinetuner(LSTMChemGenerator): self.model.compile(optimizer=self.config.optimizer, loss='categorical_crossentropy') - history = self.model.fit_generator( +# history = self.model.fit_generator( + history = self.model.fit( self.finetune_data_loader, steps_per_epoch=self.finetune_data_loader.__len__(), epochs=self.config.finetune_epochs, |