Comments (4)
Great, I think I solved the batchflow errors now! I installed batchflow separately, and now the cardio imports work alright too (using my Git clone).
Unfortunately I'm running into another error (after also installing tensorflow): AttributeError: module 'tensorflow' has no attribute 'layers'
(due to this import: from cardio.models.hmm import HMModel, prepare_hmm_input
).
Any ideas?
Many thanks!
Sita
EDIT: Ugh... it looks like I should downgrade my tensorflow version to v1 (see this StackOverflow post)
I'll let you know whether that works!
EDIT 2: Nope, sorry... The oldest version of tensorflow that I could find so far is 1.14.0, and this gives the same AttributeError
EDIT 3: OK, I give up... I tried some of the fixes suggested on the TensorFlow website: the tf.comp module, and using keras.layers instead of layers, but neither of these worked. I hope you can suggest a fix!
from cardio.
Which tensorflow version are you using yourself? And which Python version?
Also, are you using Keras as a separate package, or as a part of Tensorflow?
from cardio.
Coooool, I think I've got it working now! I installed Tensorflow 1.14.0 and Keras, and the code from the HMM Jupyter notebook is running now. Fingers crossed!
Please let me know if there are other packages that I should install to be able to use CardIO.
from cardio.
Ah no!! After running for a while, the command ppl_train = (dtst >> ppl_train_template).run()
is giving an error:
Traceback (most recent call last):
File "<ipython-input-16-593748cd05e5>", line 1, in <module>
ppl_train = (dtst >> ppl_train_template).run()
File "/home/sita/Documents/Python/cardio/cardio/batchflow/batchflow/pipeline.py", line 1282, in run
for _ in self.gen_batch(*args, **kwargs):
File "/home/sita/Documents/Python/cardio/cardio/batchflow/batchflow/pipeline.py", line 1214, in _gen_batch
batch_res = self.execute_for(batch)
File "/home/sita/Documents/Python/cardio/cardio/batchflow/batchflow/pipeline.py", line 609, in execute_for
batch_res = self._exec_all_actions(batch)
File "/home/sita/Documents/Python/cardio/cardio/batchflow/batchflow/pipeline.py", line 576, in _exec_all_actions
_action_args = _action['args']
KeyError: 'args'
Does this look familiar to you?
from cardio.
Related Issues (20)
- I.CardIO.ipynb Error in line [6] HOT 2
- 'NoneType' object has no attribute 'ndim' HOT 5
- Errors on running tutorials HOT 2
- ModuleNotFoundError: No module named 'cardio.dataset' HOT 2
- GMM in scikit-learn deprecation 0.19.1 HOT 2
- Installation Failed ( pyEDFlib requires a version of NumPy, even for setup ) HOT 2
- pipenv installation doesn't work HOT 2
- what is difference A00001~A08528 microsoft Access Table Shortcut and sel30~selxx HOT 4
- how can i load split ECG data HOT 3
- Cardio with TF 1.14
- how can i find "batch_size" function? HOT 3
- Training time with training2017 dataset HOT 1
- reading labeled data HOT 2
- How to pass train and validation data together? HOT 3
- ECG segmentation perfomance HOT 3
- install_requires question HOT 2
- how to predict with .edf file? HOT 6
- cardio ipa
- Ipa
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cardio.