Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/m/o/mozsci-HEAD/test/test_evaluation.py   mozsci(Download)
        calculated = np.array([0, 1, 1, 0, 0, 0, 1])
 
        measure = evaluation.classification_model_performance_matrix(observed, calculated)
        expected_measure = np.array([[4, 0], [0, 3]])
 
        calculated = np.array([0, 1, 1, 0, 0, 0, 1])
 
        measure = evaluation.classification_model_performance_matrix(observed, calculated)
        expected_measure = np.array([[3, 1], [1, 2]])
 
        calculated = np.array([1, 0, 1, 1, 0, 2, 3, 0])
 
        measure = evaluation.classification_model_performance_matrix(observed, calculated)
        expected_measure = np.array([[1, 1, 1, 0], [1, 2, 0, 0], [0, 0, 0, 1], [1, 0, 0, 0]])