Answers.Body: <p>Your question is very general so therefore, in this case, my answer will be too: </p>
  
  <p>The answer is "sometimes": it depends on the data.</p>
  
  <p>There can be a lot more images in one class than the other, and you can still get reasonable results. It highly depends on how much data you have of the "feature class".</p>
  
  <p>If this is the case, we say that the classes are heavily unbalanced, and you need to do "class balancing". You do not want to do overfitting on this one class, and preferably you want the feature-class to be the biggest.</p>
  
  <p>Another approach for CNNs is to use "dropout". Well, for CNN's you can go a bit further: you can remove parts of the image to generate "new" images. This way you prevent overfitting of the "feature" class, whilst generating more data.</p>
  
  <p>I suspect that training <em>all possible</em> false positives is impossible without overfitting the network somehow.</p>
  
  <p>Hope it helps, and give you some google pointers :)</p>
  
  <hr>
  
  <p>Just FYI: You basically, in the tech term, want to know whether it works to do binary CNN classification using a heavily imbalanced dataset. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-04-08T21:21:02.373Z
Answers.LastActivityDate: 2018-05-31T22:44:13.127Z
Answers.LastEditDate: 2018-05-31T22:44:13.127Z
Answers.UserDisplayName: Andreas Storvik Strauman
Answers.Body: <p>I think you are actually working on one class classification as the other class is feature less. So you will end up classifying an input data as it belongs to that single class or not.</p>
  
  <p>If you are ok with considering your problem as one class classification then i would say you actually <strong>DON'T</strong> need a feature less data set at all.
  You can just directly run your featured data(say cat pictures) using an autoencoder and figure out threshold value at the bottle neck(this is a bit challenging). Later during the test time you can verify that input data belongs to the desired class by just looking at the threshold value produced by the encoding part of autoencoder.</p>
  
  <p>If this answer doesn't satisfy you. you can just google keywords like "One class classification" or "out lier detection". I guess from there you can follow up easily.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-08T17:16:11.933Z
Answers.LastActivityDate: 2018-06-08T17:16:11.933Z
Answers.UserDisplayName: koushik
Body: <p>I have two classes in the training set: one that has images with a feature and the other of images without that feature.
  Can there be a LOT more images with "no feature" so I can fit in all possible false positives?</p>
  
Tags: <ai-design><classification><keras>
Title: Two data classes for a convolutional neural network, can one have a LOT more images for training than the other?
UserDisplayName: Vasya T
ThreadText: # Two data classes for a convolutional neural network, can one have a LOT more images for training than the other?
  
  (Asked by: username_0 on 2018-04-07)
  
  I have two classes in the training set: one that has images with a feature and the other of images without that feature.
  Can there be a LOT more images with "no feature" so I can fit in all possible false positives?
  
  **Tags:** ai-design, classification, keras
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-04-08. Score: 1
  
  Your question is very general so therefore, in this case, my answer will be too:
  
  The answer is "sometimes": it depends on the data.
  
  There can be a lot more images in one class than the other, and you can still get reasonable results. It highly depends on how much data you have of the "feature class".
  
  If this is the case, we say that the classes are heavily unbalanced, and you need to do "class balancing". You do not want to do overfitting on this one class, and preferably you want the feature-class to be the biggest.
  
  Another approach for CNNs is to use "dropout". Well, for CNN's you can go a bit further: you can remove parts of the image to generate "new" images. This way you prevent overfitting of the "feature" class, whilst generating more data.
  
  I suspect that training *all possible* false positives is impossible without overfitting the network somehow.
  
  Hope it helps, and give you some google pointers :)
  
  ---
  
  Just FYI: You basically, in the tech term, want to know whether it works to do binary CNN classification using a heavily imbalanced dataset.
  
  
  ---
  
  ### Answer by username_2 on 2018-06-08. Score: 0
  
  I think you are actually working on one class classification as the other class is feature less. So you will end up classifying an input data as it belongs to that single class or not.
  
  If you are ok with considering your problem as one class classification then i would say you actually **DON'T** need a feature less data set at all.
  You can just directly run your featured data(say cat pictures) using an autoencoder and figure out threshold value at the bottle neck(this is a bit challenging). Later during the test time you can verify that input data belongs to the desired class by just looking at the threshold value produced by the encoding part of autoencoder.
  
  If this answer doesn't satisfy you. you can just google keywords like "One class classification" or "out lier detection". I guess from there you can follow up easily.
  
  
  ---
  
  