Skip to content

Instantly share code, notes, and snippets.

@amitbhsingh
Last active June 23, 2018 04:32
Show Gist options
  • Save amitbhsingh/d54d5dd9e81b1d5f4e9e552b69954b36 to your computer and use it in GitHub Desktop.
Save amitbhsingh/d54d5dd9e81b1d5f4e9e552b69954b36 to your computer and use it in GitHub Desktop.
Importing basic statistical packages #scikit-learn # xgboost solution for mac user
Following two lines of code made my life easy for installing xgboost
brew install gcc@5
pip install xgboost
git clone [email protected]:YourLogin/scikit-learn.git
cd scikit-learn
git checkout -b my-feature
git commit
git push -u origin my-feature
magic key
=>make
pip install pytest pytest-cov
pip install flake8
flake8 path/to/module.py
import platform; print(platform.platform())
import sys; print("Python", sys.version)
import numpy; print("NumPy", numpy.__version__)
import scipy; print("SciPy", scipy.__version__)
import sklearn; print("Scikit-Learn", sklearn.__version__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment