This documentation is for astroML version 0.2

This page

Links

astroML Mailing List

GitHub Issue Tracker

Videos

Scipy 2012 (15 minute talk)

Scipy 2013 (20 minute talk)

Citing

If you use the software, please consider citing astroML.

11.3.1.4. astroML.linear_model.NadarayaWatson

class astroML.linear_model.NadarayaWatson(kernel='gaussian', h=None, **kwargs)

Nadaraya-Watson Kernel Regression

This is basically a gaussian-weighted moving average of points

Parameters :

kernel : string

kernel is either “gaussian”, or one of the kernels available in sklearn.metrics.pairwise.

h : float or array_like

width of kernel. If array, its length must be the number of dimensions in the training data

Additional keyword arguments are passed to the kernel. :

Methods

fit(X, y[, dy])
predict(X)
__init__(kernel='gaussian', h=None, **kwargs)