Skip to content

Instantly share code, notes, and snippets.

View re9ulus's full-sized avatar

Vasiliy Zemlyanov re9ulus

View GitHub Profile
@re9ulus
re9ulus / conda tips
Created April 29, 2017 15:32
Python conda tips
# Install fbprophet on win
conda install -c conda-forge pystan
conda install -c conda-forge fbprophet
# Install xgboost
conda install -c mikesilva xgboost
# Update
conda update --all
@re9ulus
re9ulus / profile_example.py
Last active May 21, 2016 20:43
Python profiler example
# cProfile
import cProfile
source = open('path/to/src').read()
cProfile.run(source, sort='tottime)
# Line profiler (using IPython)
%load_ext line_profiler
from mypackage import foo, bar
%lprun -f bar foo()