Instructions for Use
Geographically weighted regression is a local form of linear regression that detects the non-stationary nature of spatial relationships by embedding spatial structures into linear regression models. Through regression analysis, we can model, examine, and explore spatial relationships, as well as explain the many factors behind the observed spatial patterns. You can refer to the description of [Geographically Weighted Regression] (../../../Features/Analysis/SpatialStatisticalAnalysis/GeographWeightedRegression/). Return a summary of the result dataset and geographic weighted regression model, as follows: *MeanSquaredError: The mean square error, the square of the error between the predicted value and the true value. *RootMeanSquaredError: The root mean square error, the mean square root of the error between the predicted value and the true value. *Mean absolute error: the mean of the absolute value of the error between the predicted value and the true value. *R2: Determination coefficient. Based on the value of r2, the quality of the model can be judged, with a value range of [0,1]. Generally speaking, a larger r2 indicates a better fitting effect of the model. R2 reflects approximately how accurate it is, because as the number of samples increases, r2 will inevitably increase, and cannot truly quantitatively explain the accuracy level. It can only be roughly quantified. *Explained Variance: Explained variance.
Parameter Description
Parameter Name | Default Value | Parameter Definition | Parameter Type |
---|---|---|---|
Input Element Dataset |
Element Dataset to be Analyzed | String | |
Data query conditions (Optional) |
Data query conditions, which support attribute conditions and Spatial query, such as SmID<100 and BBOX (the_geom, 120,30121,31) | String | |
Modeling Field Name |
The name of the field to be modeled | String | |
Explanation field name set |
Explanation field name set. This set inputs one or more field names from the training dataset as explanatory variables for the model | JList[String] | |
Neighborhood bandwidth type |
Neighborhood bandwidth type, specifying whether the bandwidth type used is fixed or variable | JavaNeighborhoodType | |
Neighborhood distance bandwidth (Optional) |
Neighborhood distance bandwidth, where all objects within the distance range are neighbors. When the bandwidth type is fixed, this parameter is required and the value range is greater than 0 | JavaDistance | |
Neighborhood Number Bandwidth (Optional) |
Neighborhood Number Bandwidth, where each object's neighborhood is the specified nearest neighbor number. When selecting variable bandwidth as the bandwidth type, this parameter is mandatory and has a value range of [21000] | Int | |
Kernel Function Type |
Gaussian Kernel Function | Set the calculation function type for the distance weight between two points, supporting two types of kernel functions: Gaussian kernel function and quadratic kernel function | JavaKernelFunctionType |
Geographically weighted regression summary results saving directory (Optional) |
Specify the directory for saving geography weighted regression summary results | String |