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

All Samples(6)  |  Call(2)  |  Derive(0)  |  Import(4)

src/a/s/astroML-0.2/book_figures/chapter8/fig_regression_mu_z.py   astroML(Download)
from astroML.cosmology import Cosmology
from astroML.datasets import generate_mu_z
from astroML.linear_model import LinearRegression, PolynomialRegression,\
    BasisFunctionRegression, NadarayaWatson
 
               BasisFunctionRegression('gaussian',
                                       mu=basis_mu, sigma=basis_sigma),
               NadarayaWatson('gaussian', h=0.1)]
text = ['Straight-line Regression',
        '4th degree Polynomial\n Regression',

src/a/s/astroML-HEAD/book_figures/chapter8/fig_regression_mu_z.py   astroML(Download)
from astroML.cosmology import Cosmology
from astroML.datasets import generate_mu_z
from astroML.linear_model import LinearRegression, PolynomialRegression,\
    BasisFunctionRegression, NadarayaWatson
 
               BasisFunctionRegression('gaussian',
                                       mu=basis_mu, sigma=basis_sigma),
               NadarayaWatson('gaussian', h=0.1)]
text = ['Straight-line Regression',
        '4th degree Polynomial\n Regression',

src/a/s/astroML-HEAD/astroML/linear_model/tests/test_kernel_regression.py   astroML(Download)
import numpy as np
from numpy.testing import assert_allclose
from astroML.linear_model import NadarayaWatson
 
 

src/a/s/astroML-0.2/astroML/linear_model/tests/test_kernel_regression.py   astroML(Download)
import numpy as np
from numpy.testing import assert_allclose
from astroML.linear_model import NadarayaWatson