Machine Learning / Data Science
- New York, New York
-
09:17
(UTC -04:00) - quetzalcohuatl.github.io
Pinned Loading
-
apple taste test
apple taste test 1Apple, Rank, Rating
2Cosmic Crisp, 1, Tart & sweet; 8/10 (Favorite)
3Golden Delight, 11, 1/10
4Envy, 8, 3.5/10
5Honey Crisp, 3, 8/10 (possibly 7/10)
-
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()
-
terminal find all running processes ...
terminal find all running processes (and kill zombie python processes) 1ps auxww | grep phrase_to_find // find the pid, make sure it's not the grep pid.
2kill -9 <pid>
34(pkill kills by name, helpful if lots of similarly named things)
-
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
-
Terminal percent RAM used and storag...
Terminal percent RAM used and storage used 1(Inspired from howtogeek.com/659529/how-to-check-memory-usage-from-the-linux-terminal/
23free -m | grep Mem | awk '{print ($3/$2)*100}'
45to show storage:
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.