-
Notifications
You must be signed in to change notification settings - Fork 2
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
Issue with Transfer script #3
Comments
Hi Armel, Thank you very much for your interest in our package and we hope that the you will find the model useful! Below are some details to answer your questions, hope they are helpful and happy to follow up if you have more questions: The folder transfer_experiments contains the joined full dataset that can be helpful to train on and some example calls which might be helpful. 1. The trained model is not available in the repo since it takes quite some space. Hopefully, retraining the model with a dataset from the list of datasets can give you a trained model.
Variable model denotes the model we want to use for the dataset we are transferring to and target_model denotes the pre-trained model (which we read the weights from). The numbers above are defined based on the dataset we are transferring to and the model we are loading weights from. You can modify these number based on which dataset you are pretraining on and which you are transferring to.
I hope these are helpful. Again, let us know if any questions arise! Best, |
(My apologies, it is me again.)
I am trying to transfer the model in Pepper-main\trained_models\2019_guo_nci60\2019_guo_nci60_Coefficient_Predictor_Model.h5 to correct peptide intensities in one of my datasets *, however, the transfer script is consistently failing at the same stage:
Using run_count = 2 works. But then the next 2 lines break it further:
(Looking into define_model, I can see that it behaves differently if run_count = 612. Why this specific value? Is this the number of MS runs in the example model provided?)
Running the function row by row, I can identify that it fails at
>>> my_custom_layer = CustomLossLayer()(inputs_label, output) # here can also initialize those var1, var2
So from this, I have a few questions:
Any help would be much appreciated.
Kind regards,
Armel
target_model.load_weights('trained_models/all_TMT11_lumos_datasets/all_TMT11_lumos_datasets_Coefficient_Predictor_Model_run' + str(random_run) + '.h5')
but that is ok, I was actually interested in testing any model, and my data was not TMT-labelled.
The text was updated successfully, but these errors were encountered: