oraclesai.regression.SpatialErrorRegressor
- class SpatialErrorRegressor(spatial_weights_definition=None)
The Spatial Error model introduces a spatial lag in the error term of the linear equation. By adding the spatial lag in the residual, the neighbors’ errors influence the observation error; this results in an extra parameter associated with the spatial lag of the error term
- Parameters:
spatial_weights_definition – SpatialWeightsDefinition, default=None. Specifies the spatial relationship among neighbors.
Methods
__init__
([spatial_weights_definition])fit
(X, y[, geometries, crs, spatial_weights])Trains the model using the training dataset.
get_params
([deep])Get parameters for this estimator.
predict
(X[, geometries])Estimates the target variable for the given data.
score
(X, y[, sample_weight, geometries])Returns the value of the regression score function or R-Squared.
set_params
(**params)Set the parameters of this estimator.
Attributes
- returns:
An array with the estimated parameters of the trained model
- returns:
A SpatialDiagnostics instance containing statistics of the trained model. If no
- returns:
The number of variables for which coefficients are estimated (including the
- returns:
The regression model defined
- returns:
An array with the predictions for the training data
- returns:
The summary of the trained model
- returns:
An array with the residuals of the trained model