Skip to content

Instantly share code, notes, and snippets.

View CaptainAshis's full-sized avatar
☺️
Developing intuition of Algorithms by coding it !!!

Ashis Kumar Panda CaptainAshis

☺️
Developing intuition of Algorithms by coding it !!!
View GitHub Profile
@CaptainAshis
CaptainAshis / model_weights.py
Last active August 31, 2018 18:16
model_weights fastai
# The link below has the weights for the models:-
! wget 'http://files.fast.ai/models/weights.tgz'
# The output is as below #####################################################
# --2018-08-27 09:24:02-- http://files.fast.ai/models/weights.tgz
# Resolving files.fast.ai (files.fast.ai)... 67.205.15.147
# Connecting to files.fast.ai (files.fast.ai)|67.205.15.147|:80... connected.
# HTTP request sent, awaiting response... 200 OK
# Length: 1195411318 (1.1G) [text/plain]
@CaptainAshis
CaptainAshis / pivot.py
Created August 31, 2018 14:39
pivot fastai
labels_df.pivot_table(index='breed',aggfunc=len).sort_values('id',ascending=False)
@CaptainAshis
CaptainAshis / setupnn.py
Created September 5, 2018 07:37
setupnn fastai
learn=ConvLearner.pretrained(arch,data,precompute=True)
@CaptainAshis
CaptainAshis / lr_find.py
Created September 6, 2018 07:19
learning rate finder fastai
learn.lr_find()
@CaptainAshis
CaptainAshis / learning_rate_sch.py
Created September 6, 2018 07:20
learning_rate_sch
learn.sched.plot_lr()
@CaptainAshis
CaptainAshis / learn_sched.py
Last active September 6, 2018 07:22
learn.sched.plot() fastai
learn.sched.plot()
@CaptainAshis
CaptainAshis / precompute_fit.py
Created September 7, 2018 06:47
precompute_true fastai
learn.fit(1e-2,5)
@CaptainAshis
CaptainAshis / precompute_false.py
Created September 7, 2018 06:51
precompute_false fastai
learn.precompute=False
learn.fit(1e-2,3,cycle_len=1)
@CaptainAshis
CaptainAshis / dropout.py
Last active September 10, 2018 09:22
dropout fastai
learn = ConvLearner.pretrained(arch, data, precompute=True, ps=0.5)
learn.fit(1e-2, 2)
@CaptainAshis
CaptainAshis / large.py
Last active September 10, 2018 15:12
larger image fastai
learn.set_data(get_data(299, bs))
learn.freeze()
learn.fit(1e-2, 3, cycle_len=1)