6.1. copro.data.initiate_XY_data

copro.data.initiate_XY_data(config)[source]

Initiates an empty dictionary to contain the XY-data for each polygon, ie. both sample data and target data. This is needed for the reference run. By default, the first column is for the polygon ID, the second for polygon geometry. The antepenultimate column is for boolean information about conflict at t-1 while the penultimate column is for boolean information about conflict at t-1 in neighboring polygons. The last column is for binary conflict data at t (i.e. the target data).

Every column in between corresponds to the variables provided in the cfg-file.

Parameters

config (ConfigParser-object) – object containing the parsed configuration-settings of the model.

Returns

emtpy dictionary to be filled, containing keys for each variable (X), binary conflict data (Y) plus meta-data.

Return type

dict