smoothness {ECoL}R Documentation

Measures of smoothness


Regression task. In regression problems, the smoother the function to be fitted to the data, the simpler it shall be. Larger variations in the inputs and/or outputs, on the other hand, usually indicate the existence of more intricate relationships between them.



## Default S3 method:
smoothness(x, y, measures = "all",
  summary = c("mean", "sd"), ...)

## S3 method for class 'formula'
smoothness(formula, data, measures = "all",
  summary = c("mean", "sd"), ...)



Not used.


A data.frame contained only the input attributes.


A response vector with one value for each row/component of x.


A list of measures names or "all" to include all them.


A list of summarization functions or empty for all values. See summarization method to more information. (Default: c("mean", "sd"))


A formula to define the output column.


A data.frame dataset contained the input and output attributes.


The following measures are allowed for this method:


Output distribution (S1) monitors whether the examples joined in the MST have similar output values. Lower values indicate simpler problems, where the outputs of similar examples in the input space are also next to each other.


Input distribution (S2) measure how similar in the input space are data items with similar outputs based on distance.


Error of a nearest neighbor regressor (S3) calculates the mean squared error of a 1-nearest neighbor regressor using leave-one-out.


Non-linearity of nearest neighbor regressor (S4) calculates the mean squared error of a 1-nearest neighbor regressor to the new randomly interpolated points.


A list named by the requested smoothness measure.


Ana C Lorena and Aron I Maciel and Pericles B C Miranda and Ivan G Costa and Ricardo B C Prudencio. (2018). Data complexity meta-features for regression problems. Machine Learning, 107, 1, 209–246.

See Also

Other complexity-measures: balance, correlation, dimensionality, linearity, neighborhood, network, overlapping


## Extract all smoothness measures for regression task
smoothness(speed ~ ., cars)

[Package ECoL version 0.3.0 Index]