Lesson 2 In-Class Discussion ✅

answered here :slight_smile:

Hope this helps

https://machinelearningmastery.com/tactics-to-combat-imbalanced-classes-in-your-machine-learning-dataset/

Yes. All non apple and non orange images in training set to be classified as Other.

1 Like

No it’s not a random direction, but the direction of the gradients. The stochastic refers to the fact we draw batches randomly.

1 Like

Rename then with the most correct labels from a human perspective.

Michael, Have you seen this ?

1 Like

As Andrew Ng has said, it is like worrying about over population on Mars.

I removed that one since it’s not the approach we recommend.

1 Like

Please read the etiquette guide in the FAQ.

I’m facing the same issue and agree that replacing valid_ds with train_ds is not ok. Looking at the code of the ClassificationInterpretation class, it seems that it only works with the validation set. I guess would be great that it would receive a parameter to select the dataset.

1 Like

This may help.

https://arxiv.org/abs/1809.01442

You will get lower error when using higher res images.

2 Likes

That’s OK. Autoencoders are too noisy anyway, which means the NN learns the quirks of the autoencoder, rather than what really makes an image a member of a class.

In the video, Jeremy has explained this very clearly

Thanks I’ll be sure to check it out. I am using the same dataset so this could be really helpful!

@miwojc has kindly shared this Jeremy paper on another forum. It may help.

1 Like

Sorry. I did not see that you had already shared the same resource. Thanks.

If your training dataset images are of PNG format, they need to be converted to JPG.

This should work:

import PIL
for fn in PATH.glob('*/*.jpg'):
    im = PIL.Image.open(fn)
    if im.mode != 'RGB': im.convert('RGB').save(fn)
2 Likes

This may help.

1 Like