dice-group / dice-embeddings

Hardware-agnostic Framework for Large-scale Knowledge Graph Embeddings
MIT License
38 stars 12 forks source link

Report: Test/Code coverage #249

Open alkidbaci opened 5 days ago

alkidbaci commented 5 days ago

develop branch - PR #248

================ 119 passed, 181 warnings in 1008.62s (0:16:48) ================
Name                                                   Stmts   Miss  Cover   Missing
------------------------------------------------------------------------------------
dicee/__init__.py                                          7      0   100%
dicee/abstracts.py                                       211     88    58%   104-105, 123, 146-147, 152-153, 165, 197, 225, 240-254, 257-260, 263-266, 301, 314-317, 320-324, 364-375, 390-398, 413, 424-428, 460, 476, 555-575, 578, 581-585, 589-591
dicee/callbacks.py                                       251    108    57%   50-55, 67-73, 76, 79, 82, 85, 88-93, 98-103, 106-109, 116-133, 138-142, 146-147, 276-280, 283, 286-287, 305-311, 314, 319-320, 332-338, 344-353, 358-363, 405, 416-429, 433-468, 480-486
dicee/config.py                                           94      2    98%   141-142
dicee/dataset_classes.py                                 303     78    74%   41, 54, 87, 93, 99-106, 109, 112, 115-139, 195-201, 204, 207-209, 312-314, 325-328, 344, 410-411, 429, 528-536, 539, 543-557, 700-707, 710-714, 720, 723, 727
dicee/eval_static_funcs.py                               227     95    58%   101, 106, 111, 258-353, 360-411
dicee/evaluator.py                                       262     51    81%   46, 51, 56, 84, 89-90, 93, 109, 126, 137, 141, 146, 177-188, 195-206, 314, 344-367, 455, 465, 482-487
dicee/executer.py                                        113      4    96%   116, 258-259, 291
dicee/knowledge_graph.py                                  66      3    95%   79, 110, 114
dicee/knowledge_graph_embeddings.py                      631    442    30%   31-44, 49-82, 85-119, 122, 126-134, 165-178, 209-222, 248-268, 317-320, 323-326, 339, 374-419, 477-479, 483, 494-495, 501-511, 514-517, 520-525, 530, 539, 584-590, 622, 680-1045, 1076-1137, 1141-1169, 1192, 1218-1256
dicee/models/__init__.py                                   9      0   100%
dicee/models/base_model.py                               239     36    85%   54, 56, 65, 68, 71, 74, 82, 88-103, 157, 190, 230, 236, 245, 248, 252, 259, 263, 265, 280, 284, 288-289, 296-297, 351, 354, 427, 439
dicee/models/clifford.py                                 561    362    35%   31-42, 68-119, 122-138, 156-173, 190-225, 235, 237, 241-242, 248-249, 276-280, 303-311, 325-327, 332-333, 364-384, 406, 413, 417-478, 495-499, 511, 514, 519, 524, 571-607, 625-631, 644, 647, 652, 657, 686-692, 705, 708, 713, 718, 728-737, 753-754, 774-845, 856-859, 884-909, 933-966, 1002-1006, 1019, 1029, 1032, 1037, 1042, 1047, 1051, 1055, 1064-1065, 1095, 1102, 1107, 1135-1139, 1167-1176, 1186-1194, 1212-1214, 1232-1234, 1250-1252
dicee/models/complex.py                                  151     15    90%   86-109
dicee/models/dualE.py                                     59     10    83%   93-102, 142-156
dicee/models/function_space.py                           262    221    16%   10-24, 28-37, 40-49, 53-70, 77-86, 89-98, 101-110, 114-126, 134-156, 159-165, 168-185, 188-194, 197-205, 208, 213-234, 243-246, 250-254, 258-267, 271-292, 301-307, 311-328, 332-335, 344-352, 355, 366-372, 392-406, 424-438, 443-453, 461-465, 474-478
dicee/models/octonion.py                                 227     83    63%   21-44, 320-329, 334-345, 348-370, 374-416, 426-474
dicee/models/pykeen_models.py                             57      6    89%   60-63, 118, 121
dicee/models/quaternion.py                               192     69    64%   7-21, 30-55, 68-72, 107, 185, 328-342, 345-364, 368-389, 399-426
dicee/models/real.py                                      61     12    80%   36-39, 66-69, 87, 103-106
dicee/models/static_funcs.py                              10      0   100%
dicee/models/transformers.py                             236    189    20%   24-43, 46, 60-75, 84-102, 105-116, 123-125, 128, 134-151, 155-180, 186-190, 193-197, 203-207, 210-212, 229-256, 265-268, 271-276, 279-304, 310-315, 319-372, 376-398, 404-414
dicee/query_generator.py                                 375    347     7%   18-52, 56, 62-65, 69-70, 78-92, 100-147, 155-188, 192-206, 212-269, 274-303, 307-443, 453-472, 480-501, 504, 508-512, 517, 522-528
dicee/read_preprocess_save_load_kg/__init__.py             3      0   100%
dicee/read_preprocess_save_load_kg/preprocess.py         258     43    83%   34, 40, 78, 102-130, 133, 138-151, 184, 214, 388-389, 444-445
dicee/read_preprocess_save_load_kg/read_from_disk.py      36     11    69%   33, 38-40, 47, 55, 58-72
dicee/read_preprocess_save_load_kg/save_load_disk.py      45     18    60%   39-60
dicee/read_preprocess_save_load_kg/util.py               222    129    42%   65-67, 72-73, 91-97, 100-102, 107-109, 121, 134-135, 140-143, 148-156, 161-167, 172-177, 182-187, 199-220, 226-282, 286-290, 294-295, 299, 303-304, 334, 351-352, 356-357, 363-364
dicee/sanity_checkers.py                                  58     27    53%   8-12, 21-31, 46-47, 51-52, 58, 64-79, 85-86, 89, 96-97
dicee/static_funcs.py                                    421    166    61%   40, 50, 56-61, 83, 105-106, 115, 138, 152, 157-159, 163-165, 167, 194-198, 246, 254, 263-268, 290-306, 316-336, 340-357, 362, 386-387, 392-393, 410-411, 413-414, 416-417, 419-420, 428, 446-450, 467-470, 474-479, 483-487, 491-492, 498-500, 526-527, 539-542, 547-550, 559-610, 615-627, 644-658, 661-669
dicee/static_funcs_training.py                           123     63    49%   118-215, 223-224
dicee/static_preprocess_funcs.py                         101     45    55%   17-25, 52-53, 56, 64, 67, 78, 91-115, 120-123, 128-131, 136-139
dicee/trainer/__init__.py                                  1      0   100%
dicee/trainer/dice_trainer.py                            126     13    90%   27-32, 91, 98, 103-108, 147
dicee/trainer/torch_trainer.py                            79      4    95%   31, 196, 207-208
dicee/trainer/torch_trainer_ddp.py                       153    129    16%   13-14, 43, 47-72, 83-112, 115, 131-137, 140-149, 164-194, 204-217, 226-246, 251-260, 263-272, 275-299, 302-309
------------------------------------------------------------------------------------
TOTAL                                                   6230   2869    54%