nabsabraham / focal-tversky-unet

This repo contains the code for our paper "A novel focal Tversky loss function and improved Attention U-Net for lesion segmentation" accepted at IEEE ISBI 2019.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: continuous format is not supported

YZafar opened this issue · comments

results
i,m trying to run the code using ISIC 2018 dataset, i,m getting the following error:

File "C:\Users\LaeeqAhmed.spyder-py3\isic_train.py", line 146, in
precision, recall, thresholds = precision_recall_curve(y_true, y_preds)

File "C:\Users\LaeeqAhmed\anaconda3\envs\tensorflow\lib\site-packages\sklearn\metrics_ranking.py", line 673, in precision_recall_curve
sample_weight=sample_weight)

File "C:\Users\LaeeqAhmed\anaconda3\envs\tensorflow\lib\site-packages\sklearn\metrics_ranking.py", line 536, in _binary_clf_curve
raise ValueError("{0} format is not supported".format(y_type))

ValueError: continuous format is not supported

plz guide me what am i doing wrong here
Regards,

commented

Hello, same error.
maybe it is the version problem? Another issue is about this problem, you can see it.
Have you solved this problem?