This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() |