def add_parser_options(self): """Creates the command line parser object for the application""" super(AUCCalculatorApplication, self).add_parser_options() parser = self.parser parser.add_option("-t", "--curve-type", dest="curve_types", metavar="TYPE", choices=CurveFactory.get_curve_names(), action="append", default=[], help="sets the TYPE of the curve to be plotted " "(roc, pr, ac, sespe or croc). May be specified " "multiple times.")
def add_parser_options(self): """Creates the command line parser object for the application""" super(ROCPlotterApplication, self).add_parser_options() parser = self.parser parser.add_option("-t", "--curve-type", dest="curve_types", metavar="TYPE", choices=CurveFactory.get_curve_names(), action="append", default=[], help="sets the TYPE of the curve to be plotted " "(roc, pr, ac, sespe or croc). May be specified " "multiple times.") parser.add_option("-l", "--log-scale", dest="log_scale", metavar="AXES", help="use logarithmic scale on the given AXES. " "Valid values: none, x, y and xy", choices=["none", "x", "y", "xy"], default="none") parser.add_option("-o", "--output", dest="output", metavar="FILE", help="saves the plot to the given FILE instead of showing it", default=None) parser.add_option("-s", "--size", dest="size", metavar="WIDTHxHEIGHT", help="sets the size of the figure to WIDTHxHEIGHT, where " "WIDTH and HEIGHT are measures in inches. You may " "specify alternative measures (cm or mm) by adding " "them as a suffix; e.g., \"6cmx4cm\" or \"6cm x 4cm\"", default=None) parser.add_option("--dpi", dest="dpi", metavar="DPI", type=float, default=72.0, help="specifies the dpi value (dots per inch) when " "converting pixels to inches and vice versa " "in figure and font size calculations. " "Default: %default") parser.add_option("--font-size", dest="font_size", metavar="SIZE", type=float, default=None, help="overrides the font size to be used on figures, " "in points (pt).") parser.add_option("--show-auc", dest="show_auc", action="store_true", default=False, help="shows the AUC scores in the legend") parser.add_option("--no-resampling", dest="resampling", action="store_false", default=True, help="don't resample curves before " "plotting and AUC calculation")
def add_parser_options(self): """Creates the command line parser object for the application""" super(ROCPlotterApplication, self).add_parser_options() parser = self.parser parser.add_option("-t", "--curve-type", dest="curve_types", metavar="TYPE", choices=CurveFactory.get_curve_names(), action="append", default=[], help="sets the TYPE of the curve to be plotted " "(roc, pr, ac, sespe or croc). May be specified " "multiple times.") parser.add_option("-l", "--log-scale", dest="log_scale", metavar="AXES", help="use logarithmic scale on the given AXES. " "Valid values: none, x, y and xy", choices=["none", "x", "y", "xy"], default="none") parser.add_option( "-o", "--output", dest="output", metavar="FILE", help="saves the plot to the given FILE instead of showing it", default=None) parser.add_option( "-s", "--size", dest="size", metavar="WIDTHxHEIGHT", help="sets the size of the figure to WIDTHxHEIGHT, where " "WIDTH and HEIGHT are measures in inches. You may " "specify alternative measures (cm or mm) by adding " "them as a suffix; e.g., \"6cmx4cm\" or \"6cm x 4cm\"", default=None) parser.add_option("--dpi", dest="dpi", metavar="DPI", type=float, default=72.0, help="specifies the dpi value (dots per inch) when " "converting pixels to inches and vice versa " "in figure and font size calculations. " "Default: %default") parser.add_option( "--font-size", dest="font_size", metavar="SIZE", type=float, default=None, help="overrides the font size to be used on figures, " "in points (pt).") parser.add_option("--show-auc", dest="show_auc", action="store_true", default=False, help="shows the AUC scores in the legend") parser.add_option("--no-resampling", dest="resampling", action="store_false", default=True, help="don't resample curves before " "plotting and AUC calculation")