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.
- {geocif-0.1.27/geocif.egg-info → geocif-0.1.29}/PKG-INFO +1 -1
- {geocif-0.1.27 → geocif-0.1.29}/geocif/geocif.py +4 -2
- {geocif-0.1.27 → geocif-0.1.29}/geocif/indices_runner.py +8 -8
- {geocif-0.1.27 → geocif-0.1.29/geocif.egg-info}/PKG-INFO +1 -1
- {geocif-0.1.27 → geocif-0.1.29}/setup.py +1 -1
- {geocif-0.1.27 → geocif-0.1.29}/LICENSE +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/MANIFEST.in +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/README.md +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/__init__.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/agmet/__init__.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/agmet/geoagmet.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/agmet/plot.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/agmet/utils.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/analysis.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/__init__.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/constants.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/features.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/geo.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/geocif.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/metadata.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/backup/models.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/cei/__init__.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/cei/definitions.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/cei/indices.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/logger.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/__init__.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/correlations.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/embedding.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/feature_engineering.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/feature_selection.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/outliers.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/outlook.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/output.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/stages.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/stats.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/trainers.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/trend.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/ml/xai.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/playground/__init__.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/playground/automl.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/playground/misc.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/utils.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/viz/__init__.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif/viz/plot.py +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif.egg-info/SOURCES.txt +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif.egg-info/dependency_links.txt +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif.egg-info/not-zip-safe +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/geocif.egg-info/top_level.txt +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/requirements.txt +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/setup.cfg +0 -0
- {geocif-0.1.27 → geocif-0.1.29}/tests/test_geocif.py +0 -0
@@ -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
|
-
|
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
|
-
|
156
|
+
False, # redo
|
157
157
|
)
|
158
|
-
for year in range(
|
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
|
-
|
166
|
-
|
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
|
-
|
170
|
-
|
169
|
+
"zambia_maize" in i[3] or
|
170
|
+
"zimbabwe_maize" in i[3] or
|
171
171
|
# "south_africa" in i[2] or
|
172
|
-
|
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
|
-
"
|
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)
|
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
|
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
|