test Package

test_annotations Module

class pyanno.test.test_annotations.TestAnnotations(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_from_array()[source]
test_from_file_inconsistent_nannotators()[source]
test_from_file_numerical_labels()[source]
test_from_file_string_labels()[source]
test_from_file_with_commas()[source]

test_measures Module

class pyanno.test.test_measures.Bunch(**kwargs)[source]

Bases: object

class pyanno.test.test_measures.TestMeasures(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Define fixtures.

test_all_invalid()[source]
test_chance_agreement_different_frequency()[source]
test_chance_agreement_same_frequency()[source]
test_cohens_kappa()[source]
test_cohens_kappa2()[source]
test_cohens_weighted_kappa()[source]
test_cohens_weighted_kappa2()[source]
test_coincidence_matrix()[source]
test_confusion_matrix()[source]
test_confusion_matrix_missing()[source]

Test confusion matrix with missing data.

test_cronbachs_alpha()[source]
test_cronbachs_alpha2()[source]
test_fleiss_kappa()[source]
test_fleiss_kappa_nannotations()[source]
test_krippendorffs_alpha()[source]
test_krippendorffs_alpha2()[source]
test_matrix()[source]
test_observed_agreement()[source]
test_pearsons_rho()[source]
test_scotts_pi()[source]
test_spearmans_rho()[source]

test_modelA Module

class pyanno.test.test_modelA.TestModelA(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_annotations_compatibility()[source]
test_fix_map_nans()[source]
test_generate_agreement()[source]
test_generate_annotations()[source]
test_generate_incorrectness()[source]
test_generate_triplet_annotation()[source]
test_inference()[source]
test_log_likelihood()[source]
test_map_estimation()[source]
test_ml_estimation()[source]
test_raise_error_on_incompatible_annotation()[source]
test_sampling_theta()[source]

test_modelB Module

class pyanno.test.test_modelB.TestModelB(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_annotations_compatibility()[source]
test_fix_map_nans()[source]
test_generate_annotations()[source]
test_generate_samples()[source]
test_inference()[source]
test_log_likelihood()[source]
test_map_estimation()[source]
test_map_stability()[source]
test_missing_annotations()[source]
test_mle_estimation()[source]
test_raise_error_on_incompatible_annotation()[source]
test_random_model()[source]
test_sampling_theta()[source]
pyanno.test.test_modelB.assert_is_dirichlet(samples, alpha)[source]

Checks that samples ‘samples’ are drawn from Dirichlet(alpha).

pyanno.test.test_modelB.assert_is_distributions(distr, axis=0)[source]

Check that input array represents a collection of distributions.

test_modelBt Module

class pyanno.test.test_modelBt.TestModelBt(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_annotations_compatibility()[source]
test_create_model()[source]
test_generate_annotations()[source]
test_inference()[source]
test_log_likelihood()[source]
test_log_likelihood_loop_design()[source]
test_map_estimation()[source]
test_missing_annotations()[source]
test_mle_estimation()[source]
test_raise_error_on_incompatible_annotation()[source]
test_sampling_theta()[source]

test_sampling Module

class pyanno.test.test_sampling.TestSampling(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_sample_distribution()[source]

test_util Module

class pyanno.test.test_util.TestUtil(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_labels_count()[source]
test_labels_frequency()[source]
test_majority_vote()[source]
test_random_categorical()[source]

Table Of Contents

This Page