Beispiel #1
0
X = np.array([[1, 1], [2, 1], [3, 2], [1, 1], [2, 1], [3, 2],
              [4, 1], [5, 4], [6, 2], [3, 8], [9, 1], [9, 6]])
kde = KernelDensity(kernel='gaussian', bandwidth=0.2).fit(X)
kde.score_samples(X)

plt.plot(X)    
    


import scipy.stats as stats
x1 = np.array([-7, -5, 1, 4, 5.])
kde = stats.gaussian_kde(x1)
xs = np.linspace(-10, 10, num=50)
y1 = kde(xs)
kde.set_bandwidth(bw_method='silverman')
y2 = kde(xs)
kde.set_bandwidth(bw_method=kde.factor / 3.)
y3 = kde(xs)

plt.plot(y3)
plt.plot(y2)
plt.plot(y1)




def main(dir_fixations, dir_images):
  """

  creates target directories