Skip to content

Instantly share code, notes, and snippets.

View Tachyon5's full-sized avatar

Frank Taylor Tachyon5

  • TensorAI
  • San Francisco
View GitHub Profile
"""
Bayesian Generative Classifier
------------------------------
"""
# Author: Jake Vanderplas <[email protected]>
import numpy as np
from sklearn.neighbors.kde import KernelDensity
from sklearn.mixture import GMM
from sklearn.base import BaseEstimator, clone
import sys
from pyspark.context import SparkContext
from numpy import array, random as np_random
from sklearn import linear_model as lm
from sklearn.base import copy
N = 10000 # Number of data points
D = 10 # Numer of dimensions
ITERATIONS = 5