Skip to content

Instantly share code, notes, and snippets.

@yang-zhang
yang-zhang / dropout-scaling.ipynb
Last active January 3, 2025 15:03
git/yang-zhang.github.io/ds_math/dropout-scaling.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yang-zhang
yang-zhang / cross-entropy.ipynb
Last active December 21, 2024 11:51
Cross entropy implementation in pytorch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yang-zhang
yang-zhang / multi-face.ipynb
Last active December 27, 2023 05:28
Multi-task Deep Learning Experiment using fastai Pytorch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yang-zhang
yang-zhang / cheat_sheet_pickle.py
Created June 12, 2018 20:32
Cheatsheet pickle
pickle.dump(something, open('something.p', 'wb'))
something = pickle.load(open('something.p', 'rb'))
@yang-zhang
yang-zhang / binary_cross_entropy_with_logits.ipynb
Created October 16, 2018 20:46
binary cross entropy implementation in pytorch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yang-zhang
yang-zhang / pytorch-losses-in-plain-python.ipynb
Last active December 21, 2022 07:14
git/yang-zhang.github.io/ds_code/pytorch-losses-in-plain-python.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yang-zhang
yang-zhang / fastai_ml_course_notes.md
Last active December 27, 2020 20:55
fast.ai machine learning course notes
@yang-zhang
yang-zhang / boilerplates.md
Last active July 4, 2020 12:51
boilerplates
  • pin_memory=True
  • sigmoid used in cross_entropy_loss
  • set_seed before fold and train