Today I learned
·1 min
Pandas:
- If
df2
is aDataFrame
,df2['A']
returns aSeries
whereas bothdf2[['A']]
anddf2[['A', 'B']]
return aDataFrame
.
Fastai:
- Embeddings are indeed created for categorical variables. For example, in the Excel sheet on collaborative filtering, Jeremy had created embeddings for user-ids and movie-ids both of which were categorical variables.
- Let’s say we do a stride 2 in a CNN. While the output height and width will halve, we still double the number of output channels probably because the output channels detect various features of the images and we care more about capturing those features.