[머신러닝] Classification1 - Mixture Model & Clustering
import pandas as pd import numpy as np import matplotlib.pylab as plt plt.close("all") dfLoad=pd.read_csv('https://sites.google.com/site/vlsicir/ClassificationSample.txt', sep='\s+') samples=np.array(dfLoad) x=samples[:,0] y=samples[:,1] N=len(samples) numK=2 f1=plt.figure(1) ax1=f1.add_subplot(111) ax1.plot(x, y, "b.") ax1.set_aspect("equal") mx=np.mean(x) my=np.mean(y) sx=np.std(x) sy=np.std(y..
2020.08.25