This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.3 in ubuntu 18.04 | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
plt.style.use("classic") | |
case = 91 | |
betas = distance_list[case] | |
alphas = connection_strengh_list[case] | |
for i in [0,2,3,4,6]: | |
_, ax = plt.subplots() | |
ax.spines['top'].set_visible(False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pylab as plt | |
''' | |
Performs the Principal Coponent analysis of the Matrix X | |
Matrix must be n * m dimensions | |
where n is # features | |
m is # examples | |
''' | |
def PCA(X, varRetained = 0.95, show = False): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
=================================== | |
Swiss Roll reduction with LLE | |
=================================== | |
An illustration of Swiss Roll reduction | |
with locally linear embedding | |
""" |