pygeoda.spatial_validation

pygeoda.spatial_validation(geoda_obj, clusters, w)[source]

Spatial Validation Spatial validation provides a collection of validation measures including (1) fragmentations (entropy, simpson), (2) join count ratio, (3) compactness - isoperimeter quotient and (4) diameter.

Parameters
  • geoda_obj (geoda) – An instance of Geoda object

  • clusters (list) – A cluster classification variable (categorical values

  • functions) (from a dataframe or values returned from cluster) –

  • w (Weight) – An instance of Weight class.

Returns

An instance of ValidationResult including fragmentation, join count ratio,

compactness, and diameter

Return type

ValidationResult