Bootstrap

Python实现LDA降维过程可视化

import random
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D 

class MyModel(object):

	def __init__(self):
		self.x1,self.x2,self.y1,self.y2,self.z1,self.z2 = self.get_data()

	def get_data(self,x1Max=2.2,y1Max=2.2,z1Max=2.2,\
					  x1Min=1,y1Min=1,z1Min=1,\
					  x2Max=3,y2Max=3,z2Max=3,\
					  x2Min=1.7,y2Min=1.7,z2Min=1.7,numData=30):

		x1,x2,y1,y2,z1,z2 = [],[],[],[
;