def test__GmmAnalysis__do_cluster_analysis(): n_components = 10 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_cluster_analysis(n_components=n_components) for k in gmm.cluster_ids: assert isinstance(k, int)
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)
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) if __name__ == "__main__": n_components = 10 gmm = GmmAnalysis(configuration=o_config, data=o_data, names='all', output_path=output_path, max_components=max_components) gmm.do_cluster_analysis(n_components=n_components)