Skip to content

Instantly share code, notes, and snippets.

@puneethmishra
puneethmishra / DOCKER INITIATION command
Last active March 1, 2017 08:45
Docker initiation
docker run -v D:/DeepPy -w=/home -p 8888:8888 --rm -it continuumio/anaconda3 jupyter notebook --no-browser --ip="*" --notebook-dir=/home
docker cp HOST SOURCE DOCKER_NAMES:PATH_IN_DOCKER
@puneethmishra
puneethmishra / Best Fit Line for multiple groups
Created April 18, 2014 07:14
Script to create best fit line for different groups using numpy and matplotlib
fig, ax = plt.subplots()
for dd,KK in DATASET.groupby('Z'):
fit = polyfit(x,y,3)
fit_fn = poly1d(fit)
ax.plot(KK['x'],KK['y'],'o',KK['x'], fit_fn(KK['x']),'k',linewidth=4)
ax.set_xlabel('x')
ax.set_ylabel('y')