Esempio n. 1
0
def test__GmmAnalysis__do_ic_analysis():

    gmm = GmmAnalysis(configuration=o_config,
                      data=o_data,
                      names='all',
                      output_path=output_path,
                      max_components=max_components)
    gmm.do_ic_analysis()
    ic_plot_path = os.path.join(output_path, 'ic_plot.png')
    assert os.path.isfile(ic_plot_path)
Esempio n. 2
0
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)