86ac6632c5c84d1b5a0018d395542d649d27ca6a,plantcv-train.py,,options,#,13

Before Change


    parser.add_argument("-p", "--plots", help="Make output plots.", default=False)
    args = parser.parse_args()

    if not os.path.exists(args.imgdir):
        raise IOError("Directory does not exist: {0}".format(args.imgdir))
    if not os.path.exists(args.maskdir):
        raise IOError("Directory does not exist: {0}".format(args.maskdir))
    if args.method not in methods:
        raise KeyError("Method is not supported: {0}".format(args.method))

After Change


                         help="Input file containing a table of pixel RGB values sampled for each input class.",
                         required=True)
    nbm_cmd.add_argument("-o", "--outfile", help="Trained classifier output filename.", required=True)
    nbm_cmd.add_argument("-p", "--plots", help="Make output plots.", default=False, action="store_true")
    nbm_cmd.set_defaults(func=run_naive_bayes_multiclass)

    // Parse command-line options
    args = parser.parse_args()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: danforthcenter/plantcv
Commit Name: 86ac6632c5c84d1b5a0018d395542d649d27ca6a
Time: 2017-05-03
Author: noahfahlgren@gmail.com
File Name: plantcv-train.py
Class Name:
Method Name: options


Project Name: matplotlib/matplotlib
Commit Name: 52136a7dda72978004f6af8e90e9ebe7596c27b8
Time: 2019-11-26
Author: anntzer.lee@gmail.com
File Name: examples/misc/image_thumbnail_sgskip.py
Class Name:
Method Name:


Project Name: danforthcenter/plantcv
Commit Name: 86ac6632c5c84d1b5a0018d395542d649d27ca6a
Time: 2017-05-03
Author: noahfahlgren@gmail.com
File Name: plantcv-train.py
Class Name:
Method Name: options


Project Name: tristandeleu/pytorch-maml-rl
Commit Name: efd31f17f6753ee92ef1038016bd9470f25867d1
Time: 2019-12-08
Author: tristan.deleu@gmail.com
File Name: train.py
Class Name:
Method Name: