geocif 0.1.27__tar.gz → 0.1.29__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. {geocif-0.1.27/geocif.egg-info → geocif-0.1.29}/PKG-INFO +1 -1
  2. {geocif-0.1.27 → geocif-0.1.29}/geocif/geocif.py +4 -2
  3. {geocif-0.1.27 → geocif-0.1.29}/geocif/indices_runner.py +8 -8
  4. {geocif-0.1.27 → geocif-0.1.29/geocif.egg-info}/PKG-INFO +1 -1
  5. {geocif-0.1.27 → geocif-0.1.29}/setup.py +1 -1
  6. {geocif-0.1.27 → geocif-0.1.29}/LICENSE +0 -0
  7. {geocif-0.1.27 → geocif-0.1.29}/MANIFEST.in +0 -0
  8. {geocif-0.1.27 → geocif-0.1.29}/README.md +0 -0
  9. {geocif-0.1.27 → geocif-0.1.29}/geocif/__init__.py +0 -0
  10. {geocif-0.1.27 → geocif-0.1.29}/geocif/agmet/__init__.py +0 -0
  11. {geocif-0.1.27 → geocif-0.1.29}/geocif/agmet/geoagmet.py +0 -0
  12. {geocif-0.1.27 → geocif-0.1.29}/geocif/agmet/plot.py +0 -0
  13. {geocif-0.1.27 → geocif-0.1.29}/geocif/agmet/utils.py +0 -0
  14. {geocif-0.1.27 → geocif-0.1.29}/geocif/analysis.py +0 -0
  15. {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/__init__.py +0 -0
  16. {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/constants.py +0 -0
  17. {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/features.py +0 -0
  18. {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/geo.py +0 -0
  19. {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/geocif.py +0 -0
  20. {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/metadata.py +0 -0
  21. {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/models.py +0 -0
  22. {geocif-0.1.27 → geocif-0.1.29}/geocif/cei/__init__.py +0 -0
  23. {geocif-0.1.27 → geocif-0.1.29}/geocif/cei/definitions.py +0 -0
  24. {geocif-0.1.27 → geocif-0.1.29}/geocif/cei/indices.py +0 -0
  25. {geocif-0.1.27 → geocif-0.1.29}/geocif/logger.py +0 -0
  26. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/__init__.py +0 -0
  27. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/correlations.py +0 -0
  28. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/embedding.py +0 -0
  29. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/feature_engineering.py +0 -0
  30. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/feature_selection.py +0 -0
  31. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/outliers.py +0 -0
  32. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/outlook.py +0 -0
  33. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/output.py +0 -0
  34. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/stages.py +0 -0
  35. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/stats.py +0 -0
  36. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/trainers.py +0 -0
  37. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/trend.py +0 -0
  38. {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/xai.py +0 -0
  39. {geocif-0.1.27 → geocif-0.1.29}/geocif/playground/__init__.py +0 -0
  40. {geocif-0.1.27 → geocif-0.1.29}/geocif/playground/automl.py +0 -0
  41. {geocif-0.1.27 → geocif-0.1.29}/geocif/playground/misc.py +0 -0
  42. {geocif-0.1.27 → geocif-0.1.29}/geocif/utils.py +0 -0
  43. {geocif-0.1.27 → geocif-0.1.29}/geocif/viz/__init__.py +0 -0
  44. {geocif-0.1.27 → geocif-0.1.29}/geocif/viz/plot.py +0 -0
  45. {geocif-0.1.27 → geocif-0.1.29}/geocif.egg-info/SOURCES.txt +0 -0
  46. {geocif-0.1.27 → geocif-0.1.29}/geocif.egg-info/dependency_links.txt +0 -0
  47. {geocif-0.1.27 → geocif-0.1.29}/geocif.egg-info/not-zip-safe +0 -0
  48. {geocif-0.1.27 → geocif-0.1.29}/geocif.egg-info/top_level.txt +0 -0
  49. {geocif-0.1.27 → geocif-0.1.29}/requirements.txt +0 -0
  50. {geocif-0.1.27 → geocif-0.1.29}/setup.cfg +0 -0
  51. {geocif-0.1.27 → geocif-0.1.29}/tests/test_geocif.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geocif
3
- Version: 0.1.27
3
+ Version: 0.1.29
4
4
  Summary: Models to visualize and forecast crop conditions and yields
5
5
  Home-page: https://ritviksahajpal.github.io/yield_forecasting/
6
6
  Author: Ritvik Sahajpal
@@ -144,8 +144,8 @@ class Geocif:
144
144
  """
145
145
  # If ML model is run for individual region or cluster, then Region_ID is the same for each region
146
146
  # or cluster and therefore redundant for the ML model
147
- if self.cluster_strategy in ["individual", "auto_detect"]:
148
- self.cat_features.remove("Region_ID")
147
+ #if self.cluster_strategy in ["individual", "auto_detect"]:
148
+ # self.cat_features.remove("Region_ID")
149
149
 
150
150
  self.fixed_columns: list = [
151
151
  "Country",
@@ -425,6 +425,7 @@ class Geocif:
425
425
  # Create an index based on following columns
426
426
  index_columns = [
427
427
  "Model",
428
+ "Cluster Strategy"
428
429
  "Country",
429
430
  "Region",
430
431
  "Crop",
@@ -717,6 +718,7 @@ class Geocif:
717
718
  )
718
719
 
719
720
  # cat_features should be converted to category type
721
+
720
722
  df[self.cat_features] = df[self.cat_features].astype("category")
721
723
 
722
724
  """ Heatmap of correlation of various features with yield at each time step"""
@@ -153,23 +153,23 @@ class cei_runner(base.BaseGeo):
153
153
  category,
154
154
  year,
155
155
  "ndvi",
156
- True,
156
+ False, # redo
157
157
  )
158
- for year in range(2001, ar.utcnow().year + 1)
158
+ for year in range(2023, ar.utcnow().year + 1)
159
159
  for status, path, filename, admin_zone, category in combinations
160
160
  ]
161
161
 
162
162
  # Only keep those entries in combinations where the third elemt is
163
163
  # mozambique, south_africa, angola or dem_people's_rep_of_korea
164
164
  # This is done to test the code for these countries
165
- # combinations = [i for i in combinations if "angola" in i[2] or
166
- # "lesotho" in i[2] or
165
+ combinations = [i for i in combinations if "angola_maize" in i[3] or
166
+ "lesotho_maize" in i[3] or
167
167
  # "namibia" in i[2] or
168
168
  # "united_republic_of_tanzania" in i[2] or
169
- # "zambia" in i[2] or
170
- # "zimbabwe" in i[2] or
169
+ "zambia_maize" in i[3] or
170
+ "zimbabwe_maize" in i[3] or
171
171
  # "south_africa" in i[2] or
172
- # "mozambique" in i[2] or
172
+ "mozambique_maize" in i[3]]
173
173
  # "malawi" in i[2]]
174
174
 
175
175
  if self.do_parallel:
@@ -201,7 +201,7 @@ def run(path_config_files=[]):
201
201
  indices.validate_index_definitions()
202
202
 
203
203
  for method in [
204
- "monthly_r", # "dekad_r" # "dekad_r"
204
+ "biweekly_r", # "dekad_r" # "dekad_r"
205
205
  ]: # , "full_season", "phenological_stages", "fraction_season"]:
206
206
  obj = cei_runner(path_config_files)
207
207
  obj.main(method)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geocif
3
- Version: 0.1.27
3
+ Version: 0.1.29
4
4
  Summary: Models to visualize and forecast crop conditions and yields
5
5
  Home-page: https://ritviksahajpal.github.io/yield_forecasting/
6
6
  Author: Ritvik Sahajpal
@@ -50,6 +50,6 @@ setup(
50
50
  test_suite="tests",
51
51
  tests_require=test_requirements,
52
52
  url="https://ritviksahajpal.github.io/yield_forecasting/",
53
- version="0.1.27",
53
+ version="0.1.29",
54
54
  zip_safe=False,
55
55
  )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes