Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(8)  |  Derive(0)  |  Import(8)

src/a/s/astroML-0.2/examples/datasets/plot_great_wall.py   astroML(Download)
 
from astroML.datasets import fetch_great_wall
from astroML.density_estimation import KDE, KNeighborsDensity
 
#------------------------------------------------------------

src/a/s/astroML-HEAD/examples/datasets/plot_great_wall.py   astroML(Download)
 
from astroML.datasets import fetch_great_wall
from astroML.density_estimation import KDE, KNeighborsDensity
 
#------------------------------------------------------------

src/a/s/astroML-0.2/book_figures/chapter6/fig_great_wall.py   astroML(Download)
 
from astroML.datasets import fetch_great_wall
from astroML.density_estimation import KDE, KNeighborsDensity
 
#----------------------------------------------------------------------
dens_KDE = kde.fit(X).eval(Xgrid).reshape((Ny, Nx))
 
knn5 = KNeighborsDensity('bayesian', 5)
dens_k5 = knn5.fit(X).eval(Xgrid).reshape((Ny, Nx))
 
knn40 = KNeighborsDensity('bayesian', 40)

src/a/s/astroML-HEAD/book_figures/chapter6/fig_great_wall.py   astroML(Download)
 
from astroML.datasets import fetch_great_wall
from astroML.density_estimation import KDE, KNeighborsDensity
 
#----------------------------------------------------------------------
dens_KDE = kde.fit(X).eval(Xgrid).reshape((Ny, Nx))
 
knn5 = KNeighborsDensity('bayesian', 5)
dens_k5 = knn5.fit(X).eval(Xgrid).reshape((Ny, Nx))
 
knn40 = KNeighborsDensity('bayesian', 40)

src/a/s/astroML-0.2/astroML/density_estimation/tests/test_density.py   astroML(Download)
from numpy.testing import assert_allclose
from scipy.stats import norm
from astroML.density_estimation import KDE, KNeighborsDensity
 
 
                   KDE('exponential', h=0.1),
                   KDE('quadratic', h=0.2),
                   KNeighborsDensity(method='simple', n_neighbors=250),
                   KNeighborsDensity(method='bayesian', n_neighbors=250)]
 

src/a/s/astroML-HEAD/astroML/density_estimation/tests/test_density.py   astroML(Download)
from numpy.testing import assert_allclose
from scipy.stats import norm
from astroML.density_estimation import KDE, KNeighborsDensity
 
 
                   KDE('exponential', h=0.1),
                   KDE('quadratic', h=0.2),
                   KNeighborsDensity(method='simple', n_neighbors=250),
                   KNeighborsDensity(method='bayesian', n_neighbors=250)]
 

src/a/s/astroML-0.2/book_figures/chapter6/fig_density_estimation.py   astroML(Download)
from scipy import stats
 
from astroML.density_estimation import KNeighborsDensity
from astroML.plotting import hist
 

src/a/s/astroML-HEAD/book_figures/chapter6/fig_density_estimation.py   astroML(Download)
from scipy import stats
 
from astroML.density_estimation import KNeighborsDensity
from astroML.plotting import hist