-
Notifications
You must be signed in to change notification settings - Fork 132
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
about transfer learning #420
Comments
I think it's okay if you want to start from the pre-trained weight of |
I want to use megnet to pre train a qm9 model, and then use the weight of this model to continue to train my own data, because my data set is very small, but I don't seem to know if transfer learning is used in this way? |
I think this is okay to start trying transfer learning in this way. |
But the experimental results are very poor. I just want to use the weight of megnet part and how to set my new_predictor and new_megnet model? |
Is it right for me to do this? The code works, but I don't know if this is the right process...
# Set up the regressor.
device = chainer.get_device(args.device)
model_path = os.path.join(args.in_dir, args.model_filename)
metrics_fun = {'mae': F.mean_absolute_error, 'rmse': rmse}
regressor = Regressor.load_pickle('result/pretrain_qm9.pkl', device=device)
mlp = MLP(out_dim=class_num, hidden_dim=args.unit_num)
predictor = regressor.predictor
new_predictor = GraphConvPredictor(predictor, mlp=mlp)
new_regressor = Regressor(new_predictor,lossfun=F.mean_squared_error,
metrics_fun=metrics_fun, device=device)
The text was updated successfully, but these errors were encountered: