Hans Pinckaers — Public notes

A collection of short public notes exported from my private tiddlywiki. Find an overview of all notes here. Feedback? You can reach me at mail@hanspinckaers.com.

Regression with fast.ai

hanspinckaers updated 2 days ago created: 26 February 2021
Deep learning Public

A small note because I couldn't find this easily (even though it is documented). To train a regression task in fast.ai you need to specify the y_block as RegressionBlock.

For example with ImageDataLoaders:

dls = ImageDataLoaders.from_df(df, path, bs=16, y_block=RegressionBlock)