forked from USGS-R/drb-do-ml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[USGS-R#184] referencing data release results
- Loading branch information
Showing
7 changed files
with
79 additions
and
159 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
from plot_utils import read_and_filter_df, make_holdout_id_col, replacements, filter_out_urban_spatial | ||
from plot_utils import df_site_filt | ||
|
||
df_comb_reach = read_and_filter_df("reach", "val") | ||
df_comb_reach = df_comb_reach.replace(replacements) | ||
df_comb_reach = make_holdout_id_col(df_comb_reach) | ||
df_reach_filt = filter_out_urban_spatial(df_comb_reach) | ||
|
||
df_reach_filt = df_reach_filt[df_reach_filt['holdout_id'] == 'temporal'] | ||
df_site_filt = df_site_filt[df_site_filt['holdout_id'] == 'temporal'] | ||
|
||
# first get the standard deviations for each site/model/variable | ||
df_reach_std = df_reach_filt.groupby(["model_id", "variable", "site_id"]).std()['rmse'] | ||
df_site_std = df_site_filt.groupby(["model_id", "variable", "site_id"]).std()['rmse'] | ||
|
||
# take the mean across the sites and variables | ||
mean_std = df_reach_std.groupby(["model_id"]).mean() | ||
mean_std = df_site_std.groupby(["model_id"]).mean() | ||
|
||
print(mean_std) |
Oops, something went wrong.