Closed jaw315 closed 3 years ago
The version of the code has been written using Python 3.7 and default TensorFlow 2.0 build. The notebook and code are working and have been verified (recently, as of November 16, 2020).
Regarding the parity plot in line 7, you can change the number of epochs the model is trained on to get a similar figure, by passing custom_params
in predictor.train(nnX, nnY, custom_params = {'epochs': 100})
. The default is 2 epochs to make the tutorial and usage accessible for users with varying computational resources.
For ease of testing and online usage, a set of Colab notebooks have been provided at github.com/pikulsomesh/tutorials. Using these Colab notebooks, you can replicate the work as-is using Google cloud resources.
I receive the following error when trying to run the Jupyter Notebook on Linux:
Line 7: predictor.train(nnX, nnY)
WARNING:tensorflow:From /home/peptimizer/venv/lib/python3.8/site-packages/tensorflow/python/ops/resource_variable_ops.py:1659: calling BaseResourceVariable.init (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version. Instructions for updating: If using Keras pass *_constraint arguments to layers.
Another problem is present in line 10 with the following error: Line 10: activator.analyze(pre_chain + next_amino_acid)
ValueError Traceback (most recent call last)