cqfn / aibolit

Static Analyzer for Java Code with Machine Learning in Mind
https://pypi.org/project/aibolit/
51 stars 17 forks source link

Test function for Ekaterina (model refactor) #594

Closed lyriccoder closed 4 years ago

lyriccoder commented 4 years ago

Test function which takes list of filenames and returns list of predictions

@KatGarmash, See tests, I have provided an example of usage. I will delete tests later

-> model.test(files)

You will return

[
        "D:\\git\\aibolit\\test\\model\\start_end\\UpDirective.java",
        [
            "P13",
            "P1",
            "P2",
            "P3",
            "P4",
            "P5",
            "P6",
            "P7",
            "P8",
            "P9",
            "P10",
            "P11",
            "P12",
            "P14",
            "P15",
            "P16",
            "P17",
            "P18",
            "P19",
            "P20_5",
            "P20_7",
            "P20_11",
            "P21",
            "P22",
            "P23",
            "P24",
            "P25",
            "P26",
            "P28",
            "P29",
            "P30",
            "P31",
            "P32"
        ],
        [
            5.8,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ]
    ], ...
acheshkov commented 4 years ago

@rultor merge

rultor commented 4 years ago

@rultor merge

@acheshkov OK, I'll try to merge now. You can check the progress of the merge here

rultor commented 4 years ago

@rultor merge

@acheshkov Done! FYI, the full log is here (took me 32min)