2
$\begingroup$

For instance, if I wanted a train network that can output

  • van
  • truck
  • sedan
  • vehicle
  • pedestrian

does it make sense to only train it on van, truck, sedan, and pedestrian and then make "vehicle" a synonym of van, truck, sedan? Or does it make sense to train vehicle as its own class made up of the combined training data of van, truck, sedan?

EDIT ---

Here's a more clear example I think, what if there are labels that are not exclusive? For instance, a child can also be a pedestrian. How do I train a network to output both labels if it, for example, sees a child walking down the street? It seems that using a softmax later as the final layer of the network would not allow this to work as all probabilities need to sum to one, in this case it could be 90% child and 80% pedestrian and that's entirely valid.

$\endgroup$
6
  • $\begingroup$ Obviously they all are vehicles... Can't see the reason of the question? $\endgroup$
    – Aditya
    Commented Aug 28, 2018 at 2:41
  • $\begingroup$ But one of the classes is human, which is not a vehicle. It's like this.. if I want my network to recognize many things, including dogs, cats, humans, and mammals, does it make sense to make mammals a derived label from (dog OR cat OR human) or does it make sense to combine all of the mammal training data (all cats, humans, dogs) into a single class, mammal, and feed that into the network in addition to training it on the specific mammal classes? $\endgroup$ Commented Aug 28, 2018 at 20:19
  • $\begingroup$ Just append an 'if' statement in your code. $\endgroup$
    – Daniel
    Commented Aug 28, 2018 at 21:07
  • $\begingroup$ Also, look at multimodal classification $\endgroup$
    – Daniel
    Commented Aug 28, 2018 at 21:08
  • $\begingroup$ It seems like your edit totally changed the question, and the new one should be asked separately as its own question. In the future, can you take care to ensure that the question accurately represents what you want answered, so people don't spend time answering something that isn't what you want answered? Thank you! $\endgroup$
    – D.W.
    Commented Aug 28, 2018 at 21:16

1 Answer 1

1
$\begingroup$

It depends what you're trying to achieve.

In general, there are things that are vehicles but aren't vans, trucks, or sedans, so your two proposed schemes are not equivalent even if you were somehow able to obtain a 100% accurate classifier.

In general, the way to answer questions like this is to try it both ways and see which works better.

$\endgroup$
1
  • $\begingroup$ I updated my question with an edit to make it more clear exactly what I am asking, can you take another look? $\endgroup$ Commented Aug 28, 2018 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.