ph-poverty-mapping icon indicating copy to clipboard operation
ph-poverty-mapping copied to clipboard

dhs_regions

Open GIS243 opened this issue 3 years ago • 5 comments

Hi

I hope you are doing well.

Can you please let me know how you are getting the dhs_regions.csv file?

Thanks

GIS243 avatar Sep 08 '21 00:09 GIS243

Hi @GIS243 , the dhs_regions.csv file was created using one hot encoding. The categorical variables (i.e. region name) were converted into a numerical data that was either 1 or 0.

For example, if cluster 1 is in Region 1 and cluster 2 is not in Region 1, then the CSV will look like this:

dhs_cluster,Region1,Region2,...
1,1,0,...
2,0,0,...

ardieorden avatar Sep 08 '21 09:09 ardieorden

Thanks

can you please share a code for this thanks

GIS243 avatar Sep 08 '21 13:09 GIS243

Hi @GIS243 , I'm not sure if our code for doing this is currently available in the repo.

But here are some code samples that you might be able to use:

  • https://machinelearningmastery.com/how-to-one-hot-encode-sequence-data-in-python/
  • https://www.geeksforgeeks.org/ml-one-hot-encoding-of-datasets-in-python/

ardieorden avatar Sep 21 '21 04:09 ardieorden

Hi

I hope you are doing well.

Can you please send me dhs_indicators.csv file or .DTA and .DO?

RizwanZa avatar Jun 12 '22 08:06 RizwanZa

Hi @RizwanZa ,

Unfortunately, due to data access agreements, we cannot send the .dta and .do files.

You would have to download data these files yourselves from the DHS Program website (instructions) and then you can create the dhs_indiators.csv file by running the /notebooks/00_dhs_prep.ipynb Jupyter notebook.

ardieorden avatar Jun 13 '22 23:06 ardieorden

Hi! Closing this issue as ill be archiving this repository. To see our new poverty mapping project checkout https://github.com/thinkingmachines/unicef-ai4d-poverty-mapping

jtmiclat avatar Nov 21 '22 02:11 jtmiclat