analysiscenter / cardio

CardIO is a library for data science research of heart signals
https://analysiscenter.github.io/cardio/
Apache License 2.0
247 stars 78 forks source link

Error on importing library #11

Closed truongnmt closed 6 years ago

truongnmt commented 6 years ago

I'm importing libraries in this tutorial Dirichlet model training for Atrial fibrillation detection, on importing Dirichlet model:

from cardio.models.dirichlet_model import DirichletModel, concatenate_ecg_batch

I got this error: AttributeError: module 'tensorflow.python.ops.losses.losses' has no attribute 'huber_loss'

My environment: Anaconda Python 3.6.5 Tensorflow 1.1.0 Mac Sierra 10.12

roman-kh commented 6 years ago

Cardio is based on Dataset which requires TensorFlow 1.4 or higher.