Skip to content

Instantly share code, notes, and snippets.

View nishnik's full-sized avatar

Nishant Nikhil nishnik

View GitHub Profile
def load_dataset():
"Load the sample dataset. must be numbered from 1"
return [[1, 3, 4], [2, 3, 5], [1, 2, 3, 5], [2, 5]]
def createC1(dataset):
"Create a list of candidate item sets of size one."
c1 = []
for transaction in dataset:
for item in transaction:
"""
Andrej Karpathy's code compatible in python3
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
@nishnik
nishnik / DL.sh
Last active October 17, 2016 11:09
Bash commands to install different Deep Learning related softwares
#! /bin/bash
# DL, ML, NLP
sudo apt-get update
# scipy, matplotlib
sudo apt-get install python-dev python-pip python-matplotlib python-scipy
#tensorflow
sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl