-
Notifications
You must be signed in to change notification settings - Fork 34
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
Error while executing pretrain_model_pssn_l_x_l.ipynb #38
Comments
For what i know, @roberCO managed to run it on local, so you should be able to do it as well. |
|
so you saying that you're running the julia preprocessing notebook on colab as well? |
Yes, on a different Colab notebook for the preprocessing because once I installed Julia on Colab, I found difficult to go back to Python to keep executing the rest of the notebooks. So what I did is to execute the Julia preprocessing notebook and save the processed data in my Google Drive so I can continue in a different notebook the rest of the coding. |
cool i never tried this, that's why i was asking. okay so the data does not seem to be the problem, but i guess you can always double check the shapes of things and do some debugging. I haven't touched the code for a while and you might already know the saying "any code of your own that you haven't looked at for six or more months might as well have been written by someone else"... So if you find the error, could you report it so future people can take a look and benefit from the knowledge? |
Yes sure, I'll do my best to find the error and report it. If someone else come with the same error hope we can discuss it and find it more easily. |
a weird think i've just realized is that the |
I'm a newbie in this environment of deep learning and I'm just trying to replicate the results you got from this code using Google Colab. Some issues I tried to solve them myself but I got stuck in this point.
First of all, I'd like to know if the libraries extracted from requirements.txt are updated because some of the problems I got where because the libraries weren't updated. (Installing notebook==6.1.5 will require to update jupyter-client==5.3.4, jupyter-core==4.6.1 and terminado==0.8.3). Also, I had to delete pywinpty because the Google Colab environment is based in Linux (I believe this library is meant to work on a Windows environment through Jupyter or something like that, correct me if I'm wrong).
Now, the error that I get when I run the codes is the one in the line mentioned below:
In [13]: dists = np.array([embedding_matrix(matrix) for matrix in dists])
If I decide to run the entire code without installing the proper libraries mentioned in requirements.txt (That will mean working with tensorflow-gpu==2.4.1 instead of 1.12.0 and all the rest of the libraries will be updated compared to the ones written in the txt file), I can get a little further on the codes and I will get the error until the next couple of lines:
In [22]: his = model.fit(inputs, outputs, epochs=35, batch_size=2, verbose=1, shuffle=True, validation_split=0.1)
print(his.history)
Still I can continue to run the rest of the lines of this code but the model won't be trained and I'll get silly results:
Is there a way to fix the issue and run all the notebooks smoothly in Google Colab? or will be better to just do it on Jupyter Notebooks? Hope someone can help me with this issue.
The text was updated successfully, but these errors were encountered: