Skip to content

Instantly share code, notes, and snippets.

View leemengtw's full-sized avatar
🤖
I write random stuffs about AI/ML/DS @ leemeng.tw (in Chinese)

Meng Lee leemengtw

🤖
I write random stuffs about AI/ML/DS @ leemeng.tw (in Chinese)
View GitHub Profile
@leemengtw
leemengtw / 20171216_groupby_values_in_a_list.ipynb
Created December 26, 2017 09:06
groupby_values_in_a_list.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leemengtw
leemengtw / zip_all_files_in_notebook
Last active December 21, 2017 11:30
在notebook裡頭把該nb所在文件夾的所有file打包成notebook.tar.gz
!tar cvfz notebook.tar.gz *
# 從xx.ipynb所在資料夾的上一層開始打包
!tar cvfz notebook.tar.gz ../*
References
- https://stackoverflow.com/questions/43042793/download-all-files-in-a-path-on-jupyter-notebook-server
@leemengtw
leemengtw / cat_recognizer.ipynb
Created December 19, 2017 09:55
cat_recognizer.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
fig, axarr = plt.subplots(1, 2, figsize=(10, 5));
axarr[0].set_title('郵便番号未入力');
df1.plot('bar', ax=axarr[0], ylim=(0, 20000))
axarr[1].set_title('郵便番号入力済');
df2.plot('bar', ax=axarr[1])
grep --after-context=2 --before-context=2 'text to find' access.log | tail -n 100
@leemengtw
leemengtw / Draw_feature_importance.ipynb
Last active December 13, 2017 09:32
Draw_feature_importance.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leemengtw
leemengtw / First_XGBoost_try.ipynb
Created December 10, 2017 05:17
naive_xgboost.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leemengtw
leemengtw / Lessons.ipynb
Created December 4, 2017 09:17
codility/Lessons.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leemengtw
leemengtw / subplots.ipynb
Created December 4, 2017 07:45
subplots.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leemengtw
leemengtw / delete_all_packages.txt
Last active December 21, 2017 01:13
刪除所有pip packages
https://stackoverflow.com/questions/11248073/what-is-the-easiest-way-to-remove-all-packages-installed-by-pip
pip freeze | xargs pip uninstall -y