Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not reproduce pretrained model #1

Open
jpsml opened this issue Dec 19, 2018 · 0 comments
Open

Could not reproduce pretrained model #1

jpsml opened this issue Dec 19, 2018 · 0 comments

Comments

@jpsml
Copy link

jpsml commented Dec 19, 2018

I have followed the instructions for downloading and preparing training data and tried to train a model by changing load_model to False and both save_model and train_model to True in DCI-training-0.0.2.py. I also needed to change two lines because I am using pytorch 1.0.0.

I have changed this line:
acc_loss +=np.sum(loss.data[0])

to this:
acc_loss +=np.sum(loss.item())

And I have changed this line:
val_loss +=np.sum(loss.data[0])

to this:
val_loss +=np.sum(loss.item())

However, I am getting the following results:

figure_1
figure_2
figure_3
figure_4
figure_6
figure_7
figure_8

The final values for loss and validation loss were 2.2964887819458952 and 2.3019133200951383, respectively. Is this expected? Should I change any other parameter (like number of epochs) in order to reproduce the pretrained model?

I am using Ubuntu 18.04.1 LTS, Python 2.7.15rc1 and pandas 0.23.4.

Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant