Skip to content
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

fail to run the example code #11

Open
wangqiqi1995 opened this issue Oct 11, 2021 · 3 comments
Open

fail to run the example code #11

wangqiqi1995 opened this issue Oct 11, 2021 · 3 comments

Comments

@wangqiqi1995
Copy link

when I run the code "time z = maui_model.fit_transform({'mRNA': gex, 'Mutations': mut, 'CNV': cnv})",I get the error : TypeError: compile() missing 1 required positional argument: 'loss'
Could you know where the trouble is ?

@jonathanronen
Copy link
Contributor

What versions of python, tensorflow, and keras are you using? The current version of maui is a bit finicky about versions..

@wangqiqi1995
Copy link
Author

I have read you versions in other issue, and change my packages versions to
Keras 2.2.5
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.2
maui-tools 0.1.95
tensorflow 1.14.0
Python 3.6.13
but I get the error : K.set_session(K.tf.Session(config=K.tf.ConfigProto(intra_op_parallelism_threads=1, inter_op_parallelism_threads=1)))
AttributeError: module 'keras.backend' has no attribute 'tf'
Could you give me some suggestion about versions?

@jonathanronen
Copy link
Contributor

I think in the other issue I specified Keras==2.2.4. If you'd like to use 2.2.5 for whatever reason (please let me know if it works!), it doesn't have K.tf, so you'll have to use the tensorflow library directly to set the maximum number of threads. See https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/config/threading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants