@@ -302,7 +302,19 @@ def __init__(self, sample_steps=2, sample_interval=None):
302302 self .sample_interval = sample_interval
303303
304304 def fit (self , X , y = None ):
305- """Set parameters."""
305+ """Set the parameters
306+
307+ Parameters
308+ ----------
309+ X : array-like, shape (n_samples, n_features)
310+ Training data, where n_samples in the number of samples
311+ and n_features is the number of features.
312+
313+ Returns
314+ -------
315+ self : object
316+ Returns the transformer.
317+ """
306318 X = check_array (X , accept_sparse = 'csr' )
307319 if self .sample_interval is None :
308320 # See reference, figure 2 c)
@@ -420,27 +432,27 @@ class Nystroem(BaseEstimator, TransformerMixin):
420432 and the keyword arguments passed to this object as kernel_params, and
421433 should return a floating point number.
422434
423- n_components : int
424- Number of features to construct.
425- How many data points will be used to construct the mapping.
426-
427435 gamma : float, default=None
428436 Gamma parameter for the RBF, laplacian, polynomial, exponential chi2
429437 and sigmoid kernels. Interpretation of the default value is left to
430438 the kernel; see the documentation for sklearn.metrics.pairwise.
431439 Ignored by other kernels.
432440
433- degree : float, default=None
434- Degree of the polynomial kernel. Ignored by other kernels.
435-
436441 coef0 : float, default=None
437442 Zero coefficient for polynomial and sigmoid kernels.
438443 Ignored by other kernels.
439444
445+ degree : float, default=None
446+ Degree of the polynomial kernel. Ignored by other kernels.
447+
440448 kernel_params : mapping of string to any, optional
441449 Additional parameters (keyword arguments) for kernel function passed
442450 as callable object.
443451
452+ n_components : int
453+ Number of features to construct.
454+ How many data points will be used to construct the mapping.
455+
444456 random_state : int, RandomState instance or None, optional (default=None)
445457 If int, random_state is the seed used by the random number generator;
446458 If RandomState instance, random_state is the random number generator;
0 commit comments