- Unlock manual fan & overclock settings
sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
- Reboot system
- Create script
/usr/local/bin/gpu-fan-control.sh
#!/bin/bash
import heapq | |
import numpy as np | |
from sklearn.cluster import KMeans, MiniBatchKMeans | |
def sklearn_bisecting_kmeans_lineage(X, k, verbose=0): | |
N, _ = X.shape | |
labels = np.zeros(N, dtype=np.int) | |
lineage = np.zeros((k, N), dtype=np.int) |
# BASIC SYSTEM SETUP | |
# First donwload Ubuntu iso file from https://www.ubuntu.com/download/desktop | |
# Use 16.04 LTS (17 is also ok, but it's better to use LTS versions, also 18 will be very mature in terms of systemd) | |
# Dowload Linux live USB creator and install the iso to your USB stick https://www.linuxliveusb.com | |
# Boot your system, go to BIOS on boot (usually Del) or boot menu (usually F12) and choose your USB stick as boot medium | |
# Install Linux (these steps can be omitted if clean Ubuntu installation is provided as service by admins / cloud provider / etc) | |
# Minor trick unplug ALL of your hard disks (unless you are an avanced user) except for the disk for your system |
#!/bin/bash | |
# Set the environment - my env is big2 (Change this!) | |
eval $(docker-machine env big2) | |
# Launch browser for your environment (Again, change this to match your environment) | |
(sleep 3 && open "http://$(docker-machine ip big2):8787")& | |
# Run the image to pickup your local directory. | |
# Here I have my files stored in /Users/mchirico/Dropbox/kaggle/death |
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)