## Hi everyone,

I am running this code:

https://github.com/fastai/courses/blob/master/deeplearning1/nbs/dogs_cats_redux.ipynb in my dev box.

All the previous cells went well, until this cell “Visualize Log Loss”, I got following error:

ValueError Traceback (most recent call last)

in ()

8

9 x = [i*.0001 for i in range(1,10000)]

—> 10 y = [log_loss([1],[[i*.0001,1-(i*.0001)]],eps=1e-15) for i in range(1,10000,1)]

11

12 plt.plot(x, y)

/media/volgrp/anaconda2/lib/python2.7/site-packages/sklearn/metrics/classification.pyc in log_loss(y_true, y_pred, eps, normalize, sample_weight, labels)

1652 raise ValueError('y_true contains only one label ({0}). Please ’

1653 'provide the true labels explicitly through the ’

-> 1654 ‘labels argument.’.format(lb.classes_[0]))

1655 else:

1656 raise ValueError('The labels array needs to contain at least two ’

## ValueError: y_true contains only one label (1). Please provide the true labels explicitly through the labels argument.

See my screen shot.

Could anyone tell me, what’s wrong here ?