ggt.modules.result_aggregator ============================= .. py:module:: ggt.modules.result_aggregator Functions --------- .. autoapisummary:: ggt.modules.result_aggregator.calculate_cdf ggt.modules.result_aggregator.find_idx_nearest_val ggt.modules.result_aggregator.calculate_ci ggt.modules.result_aggregator.expit_custom ggt.modules.result_aggregator.unscale_preds ggt.modules.result_aggregator.file_loader ggt.modules.result_aggregator.bayesian_inference_file_gobbler ggt.modules.result_aggregator.create_summary_df ggt.modules.result_aggregator.save_pdfs ggt.modules.result_aggregator.main Module Contents --------------- .. py:function:: calculate_cdf(data, n=1000, warnings=True) .. py:function:: find_idx_nearest_val(array, value) .. py:function:: calculate_ci(data, n=1000, warnings=False) .. py:function:: expit_custom(x_input, scaling_array=None) Performs a custom implementation of Scipy's expit function. If the scaling array is supplied, it does the unscaling keeping in mind how 0s and 1s were mapped to different values while the scaling was done. expit is the inverse of the logit function. .. py:function:: unscale_preds(df_input, scaling_df_path=None, drop_old=True) .. py:function:: file_loader(args) .. py:function:: bayesian_inference_file_gobbler(data_dir, num=300, unscale=False, scaling_df_path=None, drop_old=True) .. py:function:: create_summary_df(data) This function takes the xarray produced by bayesian_inference_file_gobbler and then produces a dataframe with summary statistics. .. py:function:: save_pdfs(args) .. py:function:: main(data_dir, num, out_summary_df_path, out_pdfs_path, unscale, scaling_df_path, drop_old) A function which performs all the above steps necessary to prepeare the data for analysis