Example of data.normalize for fastAI v1

You can call normalize with no args to have it use a batch of your data to calculate stats. Those stats are stored in Learner.stats.

You’ll need 1.0.14 for this to work, which currently requires using git master branch. (Will be released before Monday’s class).

10 Likes