Skip to content

When I run your code some error has occured #5

Description

@sshzhang

my environment is Theano (1.0.1) , Keras (2.1.1) ubuntu 16.04, here is the specific error
Traceback (most recent call last):
File "/home/zxj/PycharmProjects/MCRec/code/MCRec.py", line 495, in
model = get_model(num_users, num_items, path_nums, timestamps, length, layers, reg_layes, latent_dim, reg_latent)
File "/home/zxj/PycharmProjects/MCRec/code/MCRec.py", line 267, in get_model
umtm_latent = get_umtm_embedding(umtm_input, path_nums[0], timestamps[0], length, user_latent, item_latent, path_attention_layer_1, path_attention_layer_2)
File "/home/zxj/PycharmProjects/MCRec/code/MCRec.py", line 103, in get_umtm_embedding
output = Dropout(0.5)(output)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 603, in call
output = self.call(inputs, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 117, in call
training=training)
File "/usr/local/lib/python2.7/dist-packages/keras/backend/theano_backend.py", line 1503, in in_train_phase
x = theano.ifelse.ifelse(training, x, alt)
AttributeError: 'module' object has no attribute 'ifelse'

I hope you can kindly help me solve this problems! Thank you very much!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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