Skip to content

Instantly share code, notes, and snippets.

@arkc
arkc / Install NVIDIA Driver and CUDA.md
Created June 29, 2018 07:59 — forked from zhanwenchen/Install NVIDIA Driver and CUDA.md
Install NVIDIA CUDA 9.0 on Ubuntu 16.04.4 LTS
@arkc
arkc / nb.py
Created March 21, 2018 16:35
How To Implement Naive Bayes From Scratch in Python
# Example of Naive Bayes implemented from Scratch in Python
#http://machinelearningmastery.com/naive-bayes-classifier-scratch-python/
import csv
import random
import math
def loadCsv(filename):
lines = csv.reader(open(filename, "rb"))
dataset = list(lines)
for i in range(len(dataset)):