Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/COVIDAnalytics/DELPHI
/ functions
Functions
675 in github.com/COVIDAnalytics/DELPHI
⨍
Functions
675
◇
Types & classes
63
↓ 1 callers
Method
create_datasets_predictions
(self)
archive/Test Models for V3/ArcTan Jump/DELPHI_utils_V4.py:257
↓ 1 callers
Method
create_datasets_predictions
(self)
archive/Test Models for V3/Discrete Jump/DELPHI_utils_V2.py:255
↓ 1 callers
Method
create_datasets_predictions
(self,j)
archive/backtesting_archived/DELPHI_backtest_utils_ventilator.py:263
↓ 1 callers
Method
create_datasets_predictions
(self)
archive/Other Analyses/DELPHI_utils_new.py:252
↓ 1 callers
Method
create_datasets_predictions_corrected
(self, cases, deaths, hospitalizations)
Connecticut/DELPHI_utils_CT_static.py:311
↓ 1 callers
Method
create_datasets_predictions_scenario
( self, policy="Lockdown", time=0, totalcases=None, )
KIT/DELPHI_utils_KIT.py:285
↓ 1 callers
Method
create_datasets_predictions_scenario
( self, policy: str = "Lockdown", time: int = 0, totalcases=None )
archive/V3 Model/DELPHI_utils_V3_static.py:1029
↓ 1 callers
Method
create_datasets_predictions_scenario
( self, policy="Lockdown", time=0, totalcases=None, )
archive/Other Analyses/DELPHI_utils_new.py:307
↓ 1 callers
Method
create_datasets_raw
Creates a dataset in the right format (with values for all 16 states of the DELPHI model) for the Optimal Vaccine Allocation team
DELPHI_utils_V4_static.py:386
↓ 1 callers
Method
create_datasets_with_confidence_intervals
Generates the prediction datasets from the date with 100 cases and from the day of running, including columns containing Confidence I
DELPHI_utils_V4_static.py:475
↓ 1 callers
Method
create_df_backtest_performance_tuple
( self, fitcasesnd, fitcasesd, testcasesnd, testca
archive/backtesting_archived/DELPHI_backtest_utils_ventilator.py:187
↓ 1 callers
Function
create_features_from_ihme_dates
( df_policy_raw_us: pd.DataFrame, dict_state_to_policy_dates: dict, policies: list, )
KIT/DELPHI_utils_KIT.py:592
↓ 1 callers
Function
create_features_from_ihme_dates
( df_policy_raw_us: pd.DataFrame, dict_state_to_policy_dates: dict, policies: list, )
CDC/DELPHI_utils_CDC.py:591
↓ 1 callers
Function
create_features_from_ihme_dates
( df_policy_raw_us: pd.DataFrame, dict_state_to_policy_dates: dict, policies: list, )
archive/V1 - No Jump/DELPHI_utils.py:662
↓ 1 callers
Function
create_features_from_ihme_dates
( df_policy_raw_us: pd.DataFrame, dict_state_to_policy_dates: dict, policies: list, )
archive/Test Models for V3/Normal Jump + Trust Solver/DELPHI_utils_V3_trust.py:619
↓ 1 callers
Function
create_features_from_ihme_dates
( df_policy_raw_us: pd.DataFrame, dict_state_to_policy_dates: dict, policies: list, )
archive/Test Models for V3/Normal Jump + Trust Solver/DELPHI_utils_V3_annealing.py:809
↓ 1 callers
Function
create_features_from_ihme_dates
( df_policy_raw_us: pd.DataFrame, dict_state_to_policy_dates: dict, policies: list, )
archive/Test Models for V3/ArcTan Jump/DELPHI_utils_V4.py:619
↓ 1 callers
Function
create_features_from_ihme_dates
( df_policy_raw_us: pd.DataFrame, dict_state_to_policy_dates: dict, policies: list, )
archive/Test Models for V3/Discrete Jump/DELPHI_utils_V2.py:617
↓ 1 callers
Function
create_features_from_ihme_dates
( df_policy_raw_us: pd.DataFrame, dict_state_to_policy_dates: dict, policies: list, )
archive/Other Analyses/DELPHI_utils_secondwave.py:664
↓ 1 callers
Function
create_features_from_ihme_dates
( df_policy_raw_us: pd.DataFrame, dict_state_to_policy_dates: dict, policies: list, )
archive/Other Analyses/DELPHI_utils_new.py:614
↓ 1 callers
Function
create_final_policy_features_us
Creates the final MECE policies in the US from the intermediary policies dataframe :param df_policies_US: intermediary dataframe with process
DELPHI_utils_V4_dynamic.py:271
↓ 1 callers
Function
create_final_policy_features_us
Creates the final MECE policies in the US from the intermediary policies dataframe :param df_policies_US: intermediary dataframe with process
Connecticut/DELPHI_utils_CT_dynamic.py:280
↓ 1 callers
Function
create_final_policy_features_us
(df_policies_US: pd.DataFrame)
KIT/DELPHI_utils_KIT.py:642
↓ 1 callers
Function
create_final_policy_features_us
(df_policies_US: pd.DataFrame)
CDC/DELPHI_utils_CDC.py:641
↓ 1 callers
Function
create_final_policy_features_us
(df_policies_US: pd.DataFrame)
archive/V1 - No Jump/DELPHI_utils.py:712
↓ 1 callers
Function
create_final_policy_features_us
(df_policies_US: pd.DataFrame)
archive/Test Models for V3/Normal Jump + Trust Solver/DELPHI_utils_V3_trust.py:669
↓ 1 callers
Function
create_final_policy_features_us
(df_policies_US: pd.DataFrame)
archive/Test Models for V3/Normal Jump + Trust Solver/DELPHI_utils_V3_annealing.py:859
↓ 1 callers
Function
create_final_policy_features_us
(df_policies_US: pd.DataFrame)
archive/Test Models for V3/ArcTan Jump/DELPHI_utils_V4.py:669
↓ 1 callers
Function
create_final_policy_features_us
(df_policies_US: pd.DataFrame)
archive/Test Models for V3/Discrete Jump/DELPHI_utils_V2.py:667
↓ 1 callers
Function
create_final_policy_features_us
Creates the final MECE policies in the US from the intermediary policies dataframe :param df_policies_US: intermediary dataframe with process
archive/V3 Model/DELPHI_utils_V3_dynamic.py:262
↓ 1 callers
Function
create_final_policy_features_us
(df_policies_US: pd.DataFrame)
archive/Other Analyses/DELPHI_utils_secondwave.py:714
↓ 1 callers
Function
create_final_policy_features_us
(df_policies_US: pd.DataFrame)
archive/Other Analyses/DELPHI_utils_new.py:664
↓ 1 callers
Function
create_fitting_data_from_validcases
Creates the balancing coefficient (regularization coefficient between cases & deaths in cost function) as well as the cases and deaths data o
Connecticut/DELPHI_utils_CT_static.py:1924
↓ 1 callers
Function
create_fitting_data_from_validcases
Creates the balancing coefficient (regularization coefficient between cases & deaths in cost function) as well as the cases and deaths data o
archive/V3 Model/DELPHI_utils_V3_static_serology.py:1823
↓ 1 callers
Function
create_fitting_data_from_validcases
Creates the balancing coefficient (regularization coefficient between cases & deaths in cost function) as well as the cases and deaths data o
archive/V3 Model/DELPHI_utils_V3_static.py:1819
↓ 1 callers
Function
create_intermediary_policy_features_us
Processes the IHME policy data in the US to create the right intermediary features with the right names :param df_policy_raw_us: raw datafram
DELPHI_utils_V4_dynamic.py:209
↓ 1 callers
Function
create_intermediary_policy_features_us
Processes the IHME policy data in the US to create the right intermediary features with the right names :param df_policy_raw_us: raw datafram
Connecticut/DELPHI_utils_CT_dynamic.py:218
↓ 1 callers
Function
create_intermediary_policy_features_us
Processes the IHME policy data in the US to create the right intermediary features with the right names :param df_policy_raw_us: raw datafram
archive/V3 Model/DELPHI_utils_V3_dynamic.py:200
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
Generates the nested dictionary with all the policy predictions which will then be saved as a JSON file to be used on the website
DELPHI_utils_V4_static.py:169
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
Generates the nested dictionary with all the policy predictions which will then be saved as a JSON file to be used on the website
Connecticut/DELPHI_utils_CT_static.py:169
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
(df_predictions: pd.DataFrame)
KIT/DELPHI_utils_KIT.py:38
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
(df_predictions: pd.DataFrame)
CDC/DELPHI_utils_CDC.py:38
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
(df_predictions: pd.DataFrame)
archive/V1 - No Jump/DELPHI_utils.py:93
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
(df_predictions: pd.DataFrame)
archive/Test Models for V3/Normal Jump + Trust Solver/DELPHI_utils_V3_trust.py:65
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
(df_predictions: pd.DataFrame)
archive/Test Models for V3/Normal Jump + Trust Solver/DELPHI_utils_V3_annealing.py:63
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
(df_predictions: pd.DataFrame)
archive/Test Models for V3/ArcTan Jump/DELPHI_utils_V4.py:65
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
(df_predictions: pd.DataFrame)
archive/Test Models for V3/Discrete Jump/DELPHI_utils_V2.py:65
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
(df_predictions: pd.DataFrame)
archive/backtesting_archived/DELPHI_backtest_utils_ventilator.py:91
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
Generates the nested dictionary with all the policy predictions which will then be saved as a JSON file to be used on the website
archive/V3 Model/DELPHI_utils_V3_static_serology.py:137
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
Generates the nested dictionary with all the policy predictions which will then be saved as a JSON file to be used on the website
archive/V3 Model/DELPHI_utils_V3_static.py:137
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
(df_predictions: pd.DataFrame)
archive/Other Analyses/DELPHI_utils_secondwave.py:93
↓ 1 callers
Method
create_nested_dict_from_final_dataframe
(df_predictions: pd.DataFrame)
archive/Other Analyses/DELPHI_utils_new.py:61
↓ 1 callers
Method
generate_empty_metrics_dict
Generates the format of the dictionary that will compose the dataframe with all backtest metrics based on the get_mae and get_mse fla
DELPHI_utils_V4_static.py:1711
↓ 1 callers
Method
get_aggregation_per_continent_with_cf
Creates aggregations at the continent level as well as associated confidence intervals :param df_predictions: dataframe containing th
DELPHI_utils_V4_static.py:1332
↓ 1 callers
Method
get_aggregation_per_continent_with_cf
Creates aggregations at the continent level as well as associated confidence intervals :param df_predictions: dataframe containing th
Connecticut/DELPHI_utils_CT_static.py:1401
↓ 1 callers
Method
get_aggregation_per_continent_with_cf
Creates aggregations at the continent level as well as associated confidence intervals :param df_predictions: dataframe containing th
archive/V3 Model/DELPHI_utils_V3_static_serology.py:1303
↓ 1 callers
Method
get_aggregation_per_continent_with_cf
Creates aggregations at the continent level as well as associated confidence intervals :param df_predictions: dataframe containing th
archive/V3 Model/DELPHI_utils_V3_static.py:1299
↓ 1 callers
Method
get_aggregation_per_country_with_cf
Creates aggregations at the country level as well as associated confidence intervals :param df_predictions: dataframe containing the
DELPHI_utils_V4_static.py:1246
↓ 1 callers
Method
get_aggregation_per_country_with_cf
Creates aggregations at the country level as well as associated confidence intervals :param df_predictions: dataframe containing the
Connecticut/DELPHI_utils_CT_static.py:1315
↓ 1 callers
Method
get_aggregation_per_country_with_cf
Creates aggregations at the country level as well as associated confidence intervals :param df_predictions: dataframe containing the
archive/V3 Model/DELPHI_utils_V3_static_serology.py:1220
↓ 1 callers
Method
get_aggregation_per_country_with_cf
Creates aggregations at the country level as well as associated confidence intervals :param df_predictions: dataframe containing the
archive/V3 Model/DELPHI_utils_V3_static.py:1213
↓ 1 callers
Method
get_aggregation_world_with_cf
Creates aggregations at the world level as well as associated confidence intervals :param df_predictions: dataframe containing the ra
DELPHI_utils_V4_static.py:1414
↓ 1 callers
Method
get_aggregation_world_with_cf
Creates aggregations at the world level as well as associated confidence intervals :param df_predictions: dataframe containing the ra
Connecticut/DELPHI_utils_CT_static.py:1483
↓ 1 callers
Method
get_aggregation_world_with_cf
Creates aggregations at the world level as well as associated confidence intervals :param df_predictions: dataframe containing the ra
archive/V3 Model/DELPHI_utils_V3_static_serology.py:1385
↓ 1 callers
Method
get_aggregation_world_with_cf
Creates aggregations at the world level as well as associated confidence intervals :param df_predictions: dataframe containing the ra
archive/V3 Model/DELPHI_utils_V3_static.py:1381
↓ 1 callers
Method
get_backtest_metrics_area
Updates the backtest metrics dictionary with metrics values for that particular area tuple :param df_backtest: pre-processed datafram
DELPHI_utils_V4_static.py:1734
↓ 1 callers
Function
get_bounds_params_from_pastparams
Generates the lower and upper bounds of the past parameters used as warm starts for the optimization process to predict with DELPHI: the outp
DELPHI_utils_V4_dynamic.py:14
↓ 1 callers
Function
get_bounds_params_from_pastparams
Generates the lower and upper bounds of the past parameters used as warm starts for the optimization process to predict with DELPHI: the outp
Connecticut/DELPHI_utils_CT_dynamic.py:13
↓ 1 callers
Function
get_constant_params_end_date
(dict_end_dates_constant: dict, policy_shift_id: str, yesterday: str)
archive/Adaptive Policy Model - Continuous Retraining/DELPHI_policies_utils_cr.py:165
↓ 1 callers
Method
get_feasibility_flag
Checks that there is enough historical and prediction data to perform the backtest based on the user input :param df_historical: a da
DELPHI_utils_V4_static.py:1682
↓ 1 callers
Method
get_historical_data_df
Generates a concatenation of all historical data available in the danger_map folder, all areas starting from the prediction date give
DELPHI_utils_V4_static.py:1632
↓ 1 callers
Function
get_initial_conditions
(params_fitted, global_params_fixed)
archive/Other Analyses/DELPHI_utils_new.py:492
↓ 1 callers
Function
get_mape_data_fitting
Computes MAPE on cases & deaths (averaged) either on last 15 days of historical data (if there are more than 15) or exactly the number of day
Connecticut/DELPHI_utils_CT_static.py:1996
↓ 1 callers
Function
get_mape_data_fitting
Computes MAPE on cases & deaths (averaged) either on last 15 days of historical data (if there are more than 15) or exactly the number of day
archive/V3 Model/DELPHI_utils_V3_static_serology.py:1881
↓ 1 callers
Function
get_mape_data_fitting
Computes MAPE on cases & deaths (averaged) either on last 15 days of historical data (if there are more than 15) or exactly the number of day
archive/V3 Model/DELPHI_utils_V3_static.py:1877
↓ 1 callers
Function
get_normalized_policy_shifts_and_current_policy_all_countries
Computes the normalized policy shifts and the current policy in each area of the world except the US (done in a separate function) :param
DELPHI_utils_V4_dynamic.py:705
↓ 1 callers
Function
get_normalized_policy_shifts_and_current_policy_all_countries
Computes the normalized policy shifts and the current policy in each area of the world except the US (done in a separate function) :param
archive/V3 Model/DELPHI_utils_V3_dynamic.py:696
↓ 1 callers
Function
get_normalized_policy_shifts_and_current_policy_us_only
Computes the normalized policy shifts and the current policy in each state of the US :param policy_data_us_only: processed dataframe with the
DELPHI_utils_V4_dynamic.py:639
↓ 1 callers
Function
get_normalized_policy_shifts_and_current_policy_us_only
Computes the normalized policy shifts and the current policy in each state of the US :param policy_data_us_only: processed dataframe with the
archive/V3 Model/DELPHI_utils_V3_dynamic.py:630
↓ 1 callers
Function
get_params_fitted_policies
( df_updated: pd.DataFrame )
archive/Adaptive Policy Model - Continuous Retraining/DELPHI_policies_utils_cr.py:143
↓ 1 callers
Method
get_prediction_data
Retrieve the predicted data on the prediction_date given as an input by the user running :param prediction_date: prediction date to b
DELPHI_utils_V4_static.py:1663
↓ 1 callers
Method
get_province
Returns actual cases data for the given country and province :param country: str, the name of the country :param province: s
DELPHI_utils_V4_dynamic.py:887
↓ 1 callers
Method
get_province
Returns actual cases data for the given country and province :param country: str, the name of the country :param province: s
Connecticut/DELPHI_utils_CT_dynamic.py:895
↓ 1 callers
Method
get_province
Returns actual cases data for the given country and province :param country: str, the name of the country :param province: s
archive/V3 Model/DELPHI_utils_V3_dynamic.py:877
↓ 1 callers
Function
get_residuals_value
Obtain the value of the loss function depending on the optimizer (as it is different for global optimization using simulated annealing) :
DELPHI_utils_V4_static.py:1874
↓ 1 callers
Function
get_residuals_value
Obtain the value of the loss function depending on the optimizer (as it is different for global optimization using simulated annealing) :
Connecticut/DELPHI_utils_CT_static.py:1943
↓ 1 callers
Function
get_residuals_value
Obtain the value of the loss function depending on the optimizer (as it is different for global optimization using simulated annealing) :
archive/V3 Model/DELPHI_utils_V3_static_serology.py:1838
↓ 1 callers
Function
get_residuals_value
Obtain the value of the loss function depending on the optimizer (as it is different for global optimization using simulated annealing) :
archive/V3 Model/DELPHI_utils_V3_static.py:1834
↓ 1 callers
Function
get_testing_data_us
:return: a DataFrame where the column of interest is 'testing_cnt_daily' which gives the numbers of new daily tests per state
archive/Other Analyses/DELPHI_utils_new.py:1027
↓ 1 callers
Method
max_ape_ma
Compute the Maximum Absolute Percentage Error between two lists :param y_true: list of true historical values :param y_pred:
DELPHI_utils_V4_dynamic.py:870
↓ 1 callers
Method
max_ape_ma
Compute the Maximum Absolute Percentage Error between two lists :param y_true: list of true historical values :param y_pred:
Connecticut/DELPHI_utils_CT_dynamic.py:878
↓ 1 callers
Method
max_ape_ma
Compute the Maximum Absolute Percentage Error between two lists :param y_true: list of true historical values :param y_pred:
archive/V3 Model/DELPHI_utils_V3_dynamic.py:860
↓ 1 callers
Function
read_oxford_international_policy_data
Reads the policy data from the Oxford dataset online and processes it to obtain the MECE policies for all other countries than the US :pa
DELPHI_utils_V4_dynamic.py:385
↓ 1 callers
Function
read_oxford_international_policy_data
Reads the policy data from the Oxford dataset online and processes it to obtain the MECE policies for all other countries than the US :pa
archive/V3 Model/DELPHI_utils_V3_dynamic.py:376
↓ 1 callers
Function
read_policy_data_us_only
Reads and processes the policy data from IHME to obtain the MECE policies defined for DELPHI Policy Predictions :param filepath_data_sandbox:
DELPHI_utils_V4_dynamic.py:334
↓ 1 callers
Function
read_policy_data_us_only
Reads and processes the policy data from IHME to obtain the MECE policies defined for DELPHI Policy Predictions :param filepath_data_sandbox:
archive/V3 Model/DELPHI_utils_V3_dynamic.py:325
↓ 1 callers
Function
sample_second_wave_date
(n, mean_date, std_date)
archive/Other Analyses/DELPHI_secondwave.py:49
↓ 1 callers
Function
sample_second_wave_magnitude
(n, mean_magnitude, std_magnitude, truncate_magnitude)
archive/Other Analyses/DELPHI_secondwave.py:59
↓ 1 callers
Method
save_all_datasets
Saves the parameters and predictions datasets (since 100 cases and since the day of running) based on the different flags and the inp
Connecticut/DELPHI_utils_CT_static.py:58
↓ 1 callers
Method
save_all_datasets
(self, save_since_100_cases=False, website=False)
CDC/DELPHI_utils_CDC.py:27
← previous
next →
201–300 of 675, ranked by callers