Quick evaluation of different models introduced in first lesson
Published
February 4, 2021
I have finished watching the first lesson now. It would be great to actually run each of the types of models they mention in the lesson and then perform a prediction with them. So lets just smash through them.
I guess the houses and the tree are ok, the road is much worse, and the markings are missing. It looks bad however this is actually reasonably accurate. Segmentation is hard!
LSTM
This is quite an old technique by now. Hopefully soon they will be using transformers for this.
"Shivering Shakespeare" could be considered the first classic of the "Our Gang" talkie era. By now, Hal Roach Studios began to hit their stride in making talking pictures, and "Shakespeare" is the happy result.<br /><br />The Gang is appearing in a version of Quo Vadis produced by Kennedy the Cop's wife. The kids don't find the play very fun to be in and are distracted by people in the theatre and cannot remember their lines. Among the funniest bits are Kennedy the Cop as the giant, who pulls off his makeup to fight an overzealous man in a bull costume; and the terrible dancing girl (played by director Bob McGowan's daughter.)<br /><br />Several filmographies mention that "Shakespeare" has the first pie fight in a talkie. This may be true, seeing as they tried different speeds with the film during the fight. Buster Keaton's brother Harry is at the receiving end of one of the pies. Very funny and an early Gang talkie classic. 9 out of 10.
They gave the movie 9 out of 10 so that certainly is a positive review.
Tabular Data
Code
from fastai.tabular.allimport*path = untar_data(URLs.ADULT_SAMPLE)tabular_dls = TabularDataLoaders.from_csv(path/'adult.csv', path=path, y_names="salary", cat_names = ['workclass', 'education', 'marital-status', 'occupation','relationship', 'race'], cont_names = ['age', 'fnlwgt', 'education-num'], procs = [Categorify, FillMissing, Normalize])tabular_learn = tabular_learner(tabular_dls, metrics=accuracy)tabular_learn.fit_one_cycle(3) # using a different training method here - not working from a pretrained model
TypeError: list indices must be integers or slices, not list
Another failure. I haven’t really used tabular or collaborative models before so there is probably something I am missing here. It’s a shame that the “take something from the valid items” approach does not work on every learner.