Skip to content
/ SARL Public

A Spatial and Adversarial Representation Learning Approach for Land Use Classification with POIs.

Notifications You must be signed in to change notification settings

xrhics/SARL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

SARL

A Spatial and Adversarial Representation Learning Approach for Land Use Classification with POIs.

Data

Data preprocessing

  • Cities.py: In the source data, each building has a label. We divide the urban area into grids and calculate the proportion of each land use type in the grid based on the building area. We then assign the major land use type to each grid cell.
  • Count_poi.py: The number of POIs for each POI category in each grid area is counted and stored.
  • pre_data.py: The number of POIs contained in each category node in the zone semantic tree is calculated and stored.
  • save_tf_idf.ipynb: The weight of each category node in zone semantic trees is calculated according to TF-IDF.
  • save_sub_tree.ipynb: The top-k important nodes in zone semantic trees are extracted and stored.

Model

  • keras_topK.py: keras_topK.py is used to pre-train the semantic pattern extractor.
  • grid.py: grid.py is utilized to process and output 3D tensors of the spatial configuration of regions.
  • mydata.py: It handles the input and label information required for model training and testing.
  • main.py: main.py can be run successfully once all data processing steps finish.

About

A Spatial and Adversarial Representation Learning Approach for Land Use Classification with POIs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published