gnnwr.utils module
- class gnnwr.utils.DIAGNOSIS(weight, x_data, y_data, y_pred)[source]
Bases:
object
Diagnosis is the class to calculate the diagnoses of GNNWR/GTNNWR.
- Parameters:
weight – output of the neural network
x_data – the independent variables
y_data – the dependent variables
y_pred – output of the GNNWR/GTNNWR
- class gnnwr.utils.OLS(dataset, xName: list, yName: list)[source]
Bases:
object
OLS is the class to calculate the OLR weights of data.Get the weight by object.params.
- Parameters:
dataset – Input data
xName – the independent variables’ column
yName – the dependent variable’s column