scQUEST.tests.test_individuality module

Unit testing for module.

Summary

Classes:

TestIndividuality

Functions:

get_n_groups_data

get_n_groups_feat

get_n_groups_label

Reference

get_n_groups_label(n_obs_per_group=[5, 5])[source]
get_n_groups_feat(n_obs_per_group=[5, 5])[source]
get_n_groups_data(n_obs_per_group=[5, 5])[source]
class TestIndividuality[source]

Bases: object

test_homogenous_groups(n_obs_per_group, n_neighbors=None)[source]

Here the NN are expected to be always of the same type

test_0_neighbors_exception(n_obs_per_group, n_neighbors=0)[source]
test_two_groups_probability(n_obs_per_feat_group)[source]

All probabilities are 0 except for 1 or 2 classes. For the special case n_obs_per_feat_group=[2] there is only one class with probability=1.0. For all other cases two classes should have probabilities > 0.

We split the n_obs_per_group into two further groups of equal size and assign labels. Thus in the features space there exist len(n_obs_per_group) groups but in the label space each of the identical observations are split in two groups.

test_all_different_groups_probability()[source]
test_non_numeric_labels(n_obs_per_group, n_neighbors)[source]
test_provide_graph(n_obs_per_group)[source]
__dict__ = mappingproxy({'__module__': 'scQUEST.tests.test_individuality', 'test_homogenous_groups': <function TestIndividuality.test_homogenous_groups>, 'test_0_neighbors_exception': <function TestIndividuality.test_0_neighbors_exception>, 'test_two_groups_probability': <function TestIndividuality.test_two_groups_probability>, 'test_all_different_groups_probability': <function TestIndividuality.test_all_different_groups_probability>, 'test_non_numeric_labels': <function TestIndividuality.test_non_numeric_labels>, 'test_provide_graph': <function TestIndividuality.test_provide_graph>, '__dict__': <attribute '__dict__' of 'TestIndividuality' objects>, '__weakref__': <attribute '__weakref__' of 'TestIndividuality' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__module__ = 'scQUEST.tests.test_individuality'
__weakref__

list of weak references to the object (if defined)