Skip to content

Instantly share code, notes, and snippets.

View AmanDaVinci's full-sized avatar
🎯
Flow State

Aman AmanDaVinci

🎯
Flow State
View GitHub Profile
@AmanDaVinci
AmanDaVinci / Fall of Perceptrons.ipynb
Last active December 2, 2020 20:28
Fall of Perceptrons: Origin of Neural Networks from the fall of Perceptrons
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AmanDaVinci
AmanDaVinci / install_basic.sh
Last active April 25, 2019 21:16 — forked from jph00/install_basic.sh
Swift for Tensorflow Installation
sudo add-apt-repository -y ppa:apt-fast/stable
sudo add-apt-repository -y ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get -y install apt-fast
# prompts
sudo apt-fast -y upgrade
sudo apt-fast install -y ubuntu-drivers-common libvorbis-dev libflac-dev libsndfile-dev cmake build-essential libgflags-dev libgoogle-glog-dev libgtest-dev google-mock zlib1g-dev libeigen3-dev libboost-all-dev libasound2-dev libogg-dev libtool libfftw3-dev libbz2-dev liblzma-dev libgoogle-glog0v5 gcc-6 gfortran-6 g++-6 doxygen graphviz libsox-fmt-all parallel exuberant-ctags vim-nox python-powerline python3-pip
sudo apt-fast install -y tigervnc-standalone-server firefox lsyncd mesa-common-dev ack
@AmanDaVinci
AmanDaVinci / navigate.sh
Created March 28, 2018 15:57
Quick file system navigation from the command-line
#################################################
# #
# QUICK FILE SYSTEM NAVIGATION #
# #
# Paste this at the end of .bashrc or .zshrc #
#################################################
# -------------------------------------
# USAGE
# -------------------------------------
def plot_loss_change(sched, sma=1, n_skip=20, y_lim=(-0.01,0.01)):
"""
Plots rate of change of the loss function.
Parameters:
sched - learning rate scheduler, an instance of LR_Finder class.
sma - number of batches for simple moving average to smooth out the curve.
n_skip - number of batches to skip on the left.
y_lim - limits for the y axis.
"""
derivatives = [0] * (sma + 1)
@AmanDaVinci
AmanDaVinci / deep_machine-setup.sh
Created March 12, 2018 17:02
Setup a Deep Learning Machine
echo"
#####################################
# Setup a Deep Learning Machine #
# [Ubuntu 16.04 LTS] #
#####################################
"
# Go to Home
cd ~
@AmanDaVinci
AmanDaVinci / hadoop_install.sh
Last active March 16, 2018 14:08
Installing Hadoop in a single node
#####################################
# HADOOP SINGLE NODE SETUP
#
# Author: Aman Hussain
# Email: aman@amandavinci.me
# Date: 12/03/2018
#
# Notes:
# do not run as executable script
#
@AmanDaVinci
AmanDaVinci / jdk_install.sh
Last active March 1, 2018 05:40
Download and install Oracle jdk9 with quick & easy command
#!/bin/sh
## Latest JDK9 version is JDK9.0.1 released on 16th Jan, 2018.
BASE_URL_9=http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_
declare -a PLATFORMS=("linux-x64_bin.tar.gz")
# declare -a PLATFORMS=("linux-x64_bin.rpm" "linux-x64_bin.tar.gz" "osx-x64_bin.dmg" "windows-x64_bin.exe" "solaris-sparcv9_bin.tar.gz" "doc-all.zip")
for platform in "${PLATFORMS[@]}"
do