It's not certain, but there's definitely a lot more information there.
The predict loop of a linear model works like this (written with sparse vectors, implemented as dictionaries):
def predict(classes, weights, features):
scores = {clas: 0 for clas in classes}
for feature in features:
for clas, weight in weights[feature].items():
scores[clas] += weight
return max(scores, key=lambda clas: scores[clas])
This function is the same for Naive Bayes, Maximum Entropy, linear-kernel SVM, Averaged Perceptron...etc.
All you get to do is attach a weight to each feature, which you'll sum. You can make the features larger or smaller slices of the input, but that's all the structure you get.
Note that linear models have massive disadvantages for speech recognition, too. Linear models don't work very well if you have an analog signal.
Sure but n-gram feature extraction is what, five lines of code? It's a trivial transform compared to SIFT.
If you don't do SIFT manually prior to classification then your NN has to evolve something "similar" in order to work. Which is why it needs to be deep.
"This movie make all other movies look awful - do not fail to see, missing it would be a crime"
Is this a negative, or a positive review?
awful -1
fail -1
miss[ing] -1
Seems pretty negative to me...
You can build a fairly accurate nudity filter by detecting % skin-tone pixels, but that extra mile to distinguish bikini/beach pics from nudes is the real crux.
Now look at a bag-of-words view of a movie review:
It's not certain, but there's definitely a lot more information there.The predict loop of a linear model works like this (written with sparse vectors, implemented as dictionaries):
This function is the same for Naive Bayes, Maximum Entropy, linear-kernel SVM, Averaged Perceptron...etc.All you get to do is attach a weight to each feature, which you'll sum. You can make the features larger or smaller slices of the input, but that's all the structure you get.
Note that linear models have massive disadvantages for speech recognition, too. Linear models don't work very well if you have an analog signal.