check_results.py
def main():
    """Check the resulting csv file of packet classifications to see if actual attacks were detected"""
    parser = argparse.ArgumentParser()
    parser.add_argument("results_file", type=str, help="the results.csv file")
    parser.add_argument("attacks_file", type=str, help="the actual attacks file")
    parser.add_argument(
        "--thresh",
        type=str,
        default="0.5:0.5:1",
        help="range of thresholds to try. Format: start:stop:num_points, default: 0.5:0.5:1",
    )
    parser.add_argument("--plot", action="store_true", help="make plots")
    parser.add_argument(
        "--table",
        type=float,
        default=0.725,
        help="make table using the specified threshold",
    )
    args = parser.parse_args()

    check_results(
        args.results_file, args.attacks_file, args.thresh, args.plot, args.table
    )
Check the resulting csv file of packet classifications to see if actual attacks were detected
Check the resulting csv file of packet classifications to see if actual attacks were detected
Check the resulting csv file of packet classifications to see if actual attacks were detected
def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("results_file", type=str, help="the results.csv file")
    parser.add_argument("attacks_file", type=str, help="the actual attacks file")
    parser.add_argument(
        "--thresh",
        type=str,
        default="0.5:0.5:1",
        help="range of thresholds to try. Format: start:stop:num_points, default: 0.5:0.5:1",
    )
    parser.add_argument("--plot", action="store_true", help="make plots")
    parser.add_argument(
        "--table",
        type=float,
        default=0.725,
        help="make table using the specified threshold",
    )
    args = parser.parse_args()
    check_results(
        args.results_file, args.attacks_file, args.thresh, args.plot, args.table
    )
def main ( ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( "results_file" , type = str , help = "the results.csv file" ) parser . add_argument ( "attacks_file" , type = str , help = "the actual attacks file" ) parser . add_argument ( "--thresh" , type = str , default = "0.5:0.5:1" , help = "range of thresholds to try. Format: start:stop:num_points, default: 0.5:0.5:1" , ) parser . add_argument ( "--plot" , action = "store_true" , help = "make plots" ) parser . add_argument ( "--table" , type = float , default = 0.725 , help = "make table using the specified threshold" , ) args = parser . parse_args ( ) check_results ( args . results_file , args . attacks_file , args . thresh , args . plot , args . table )
Check the resulting csv file of packet classifications to see if actual attacks were detected
Check the resulting csv file of packet classifications to see if actual attacks were detected
"""Check the resulting csv file of packet classifications to see if actual attacks were detected"""