Skip to content

Commit

Permalink
Merge pull request #34 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
fixed probabilities in percentaje
  • Loading branch information
andresk159 authored Aug 22, 2023
2 parents 930e92e + 00c4f9a commit 6372640
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/aclimate_cpt/01_prediccion.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,9 @@ def proba(
df_final["month"] = month
df_final["season"] = season_type
df_final["predictand"] = predictand
df_raw['below'] = float(df_raw['below'])/100
df_raw['normal'] = float(df_raw['normal'])/100
df_raw['above'] = float(df_raw['above'])/100
df_final = df_final.iloc[:,[4,5,0,1,2,3,6,7]]

return df_final
Expand Down
3 changes: 3 additions & 0 deletions src/aclimate_cpt/prediction_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,9 @@ def proba(self,
df_final["month"] = month
df_final["season"] = season_type
df_final["predictand"] = predictand
df_raw['below'] = float(df_raw['below'])/100
df_raw['normal'] = float(df_raw['normal'])/100
df_raw['above'] = float(df_raw['above'])/100
df_final = df_final.iloc[:,[4,5,0,1,2,3,6,7]]

return df_final
Expand Down

0 comments on commit 6372640

Please sign in to comment.