Skip to content

Error while executing pretrain_model_pssn_l_x_l.ipynb #38

@Lanart93

Description

@Lanart93

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])

Captura de Pantalla 2021-01-30 a la(s) 15 04 36

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)

Captura de Pantalla 2021-01-30 a la(s) 15 07 49

Captura de Pantalla 2021-01-30 a la(s) 15 08 09

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:

Captura de Pantalla 2021-01-30 a la(s) 15 15 05

Captura de Pantalla 2021-01-30 a la(s) 15 15 32

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions