Ошибка при выполнении кода: https://github.com/aqlaboratory/rgn/blob/master/model/protling.py - PullRequest
0 голосов
/ 19 апреля 2020

Я новичок в python.

Я получаю ошибку при выполнении этой части кода: https://github.com/aqlaboratory/rgn/blob/master/model/protling.py

Пожалуйста, помогите мне выполнить этот код.

Ошибка:

class ZoneoutWrapper(RNNCell):
  File "<ipython-input-49-10a3c41e0928>", line 1
    class ZoneoutWrapper(RNNCell):


^
SyntaxError: unexpected EOF while parsing

def __init__(self, cell, memory_cell_keep_prob=1.0, hidden_state_keep_prob=1.0,seed=None, is_training=True):
  File "<ipython-input-51-b6fb9a5d8816>", line 1
    def __init__(self, cell, memory_cell_keep_prob=1.0, hidden_state_keep_prob=1.0,seed=None, is_training=True):
                                                                                                                ^
SyntaxError: unexpected EOF while parsing
if (isinstance(memory_cell_keep_prob, float) and not (memory_cell_keep_prob >= 0.0 and memory_cell_keep_prob <= 1.0)):
  File "<ipython-input-52-0aa3a28c5b66>", line 1
    if (isinstance(memory_cell_keep_prob, float) and not (memory_cell_keep_prob >= 0.0 and memory_cell_keep_prob <= 1.0)):
                                                                                                                          ^
SyntaxError: unexpected EOF while parsing
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...