Machine Learning / Data Science
- New York, New York
-
21:27
(UTC -05:00) - quetzalcohuatl.github.io
Pinned Loading
-
fast inplace pandas sorting
fast inplace pandas sorting 1# https://github.com/pandas-dev/pandas/issues/15389
23import pandas
4import numpy
5import resource
-
how to freeze Pytorch layers
how to freeze Pytorch layers 1# View layers with model.children()
2# Get params with module.parameters()
34m = resnet50(pretrained=True)
5_ = m.train()
-
Python Bound Class Methods
Python Bound Class Methods 1class Car():
2def __init__(self, miles_traveled):
3self.miles_traveled = miles_traveled
4def ride(self, miles):
5self.miles_traveled += miles
-
USEFUL TERMINAL COMMANDS
USEFUL TERMINAL COMMANDS 1# See percent ram used (Inspired from howtogeek.com/659529/how-to-check-memory-usage-from-the-linux-terminal/)
2free -m | grep Mem | awk '{print ($3/$2)*100}'
34# Show amount of storage used
5df -h
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.