Skip to content

Instantly share code, notes, and snippets.

View Bachfischer's full-sized avatar

Matthias Bachfischer Bachfischer

View GitHub Profile
@Bachfischer
Bachfischer / fastai-manual_input.py
Last active January 3, 2019 20:53
fast.ai - manual prediction
# single prediction on last classifier
learn.load('clas_2')
m = learn.model
#set batch size to 1
m[0].bs=1
#turn off dropout
m.eval()
#reset hidden state
m.reset()

Keybase proof

I hereby claim:

  • I am Bachfischer on github.
  • I am Bachfischer (https://keybase.io/Bachfischer) on keybase.
  • I have a public key whose fingerprint is 4647 9449 7F22 FFBA 0F0D 0A55 BC7A 31CC EC77 F092

To claim this, I am signing this object: