def dev__GmmAnalysis__do_aic_analysis(): gmm = GmmAnalysis(configuration=o_config, data=o_data, names=o_config.normalized_error_names, output_path=output_path, max_components=max_components) gmm.make_gmm_models() gmm.do_aic_analysis() for k in gmm.models: print(gmm.models[k])
def test__GmmAnalysis__do_aic_analysis(): gmm = GmmAnalysis(configuration=o_config, data=o_data, names=o_config.normalized_error_names, output_path=output_path, max_components=max_components) gmm.make_gmm_models() gmm.do_aic_analysis() for k in gmm.models: assert isinstance(gmm.models[k]['aic'], float) assert isinstance(gmm.aic_criteria, dict) assert isinstance(gmm.aic_criteria['min_components'], int) assert isinstance(gmm.aic_criteria['min_value'], float)
def dev__GmmAnalysis(): max_components = 20 n_components = 10 gmm = GmmAnalysis(configuration=o_config, data=o_data, names='all', output_path=output_path, max_components=max_components) print(gmm.names) gmm.make_gmm_models() gmm.do_aic_analysis() gmm.do_bic_analysis() gmm.do_ic_analysis() gmm.do_cluster_analysis(n_components=n_components) # table__cluster_info(gmm) # table__cluster_parameters(gmm) # table__cluster_qois(gmm) plot__cluster_qoi(gmm) gmm.plot_gmm_analysis(n_components=20)