Module Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Num Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Str Str Dict Str Str Str Str Str Str Str Str Dict ListLoad Dict ListLoad Dict ListLoad Dict Str Str Str Str Str Str Str Str Dict ListLoad Dict Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Num Str Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str TryExcept body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Raise decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num Num body Assign NameStore Call NameLoad Dict Str Str NameLoad UnaryOpUSub NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num Num body Assign NameStore Call NameLoad Dict Str Str NameLoad UnaryOpUSub NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num Num body Assign NameStore Call NameLoad Dict Str Str NameLoad UnaryOpUSub NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assign NameStore Call NameLoad Dict Str Str Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num Num body Assign NameStore Call NameLoad Dict Str Str NameLoad UnaryOpUSub NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assign NameStore Call NameLoad Dict Str Str Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad
N/A N/A unittest N/A json math sqrt N/A msgpackrpc jubatus.clustering.client Clustering jubatus.clustering.types * jubatus_test.test_util TestUtil jubatus.common Datum N/A host 127.0.0.1 N/A port 21008 N/A timeout 10 ClusteringTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self config N/A method converter parameter kmeans N/A string_filter_types string_filter_rules num_filter_types num_filter_rules string_types string_rules num_types num_rules N/A N/A N/A N/A N/A N/A N/A key type sample_weight global_weight * str bin bin N/A N/A N/A key type * num N/A k compressor_method bucket_size compressed_bucket_size bicriteria_base_size bucket_length forgetting_factor forgetting_threshold seed 10 simple 3 2 1 2 0 0.5 0 N/A N/A N/A TestUtil write_file config_clustering.json N/A N/A json dumps N/A self config N/A N/A self srv N/A N/A TestUtil fork_process clustering port config_clustering.json N/A N/A N/A N/A self cli N/A Clustering host port name N/A N/A N/A N/A N/A N/A TestUtil kill_process N/A self srv N/A N/A tearDown N/A N/A self N/A N/A N/A N/A self cli N/A N/A N/A N/A N/A N/A N/A self cli get_client close N/A N/A N/A TestUtil kill_process N/A self srv N/A test_get_client N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A isinstance N/A N/A N/A self cli get_client N/A N/A msgpackrpc client Client N/A test_push N/A N/A self N/A N/A N/A d N/A Datum N/A N/A N/A self assertTrue N/A N/A N/A self cli push N/A d N/A test_get_revision N/A N/A self N/A N/A N/A res N/A N/A N/A self cli get_revision N/A N/A N/A self assertTrue N/A isinstance res int N/A test_get_core_members N/A N/A self N/A N/A N/A i N/A range 0 100 N/A N/A d N/A Datum N/A nkey1 nkey2 i N/A i N/A N/A N/A N/A self cli push N/A d N/A res N/A N/A N/A self cli get_core_members N/A N/A N/A self assertEqual N/A len res 10 N/A N/A N/A self assertTrue N/A isinstance N/A N/A res N/A 0 N/A 0 WeightedDatum N/A test_get_k_center N/A N/A self N/A N/A N/A i N/A range 0 100 N/A N/A d N/A Datum N/A nkey1 nkey2 i N/A i N/A N/A N/A N/A self cli push N/A d N/A res N/A N/A N/A self cli get_k_center N/A N/A N/A self assertEqual N/A len res 10 N/A N/A N/A self assertTrue N/A isinstance N/A res N/A 0 Datum N/A test_get_nearest_center N/A N/A self N/A N/A N/A i N/A range 0 100 N/A N/A d N/A Datum N/A nkey1 nkey2 i N/A i N/A N/A N/A N/A self cli push N/A d N/A q N/A Datum N/A nkey1 nkey2 2.0 1.0 N/A res N/A N/A N/A self cli get_nearest_center q N/A N/A N/A self assertTrue N/A isinstance res Datum N/A test_get_nearest_members N/A N/A self N/A N/A N/A i N/A range 0 100 N/A N/A d N/A Datum N/A nkey1 nkey2 i N/A i N/A N/A N/A N/A self cli push N/A d N/A q N/A Datum N/A nkey1 nkey2 2.0 1.0 N/A res N/A N/A N/A self cli get_nearest_members q N/A N/A N/A self assertTrue N/A isinstance N/A res N/A 0 WeightedDatum N/A N/A N/A N/A __name__ __main__ N/A N/A test_suite N/A N/A N/A N/A unittest TestLoader loadTestsFromTestCase ClusteringTest N/A N/A N/A N/A N/A unittest TextTestRunner run test_suite