Beispiel #1
0
def parse_cmdargs():
    """Parse command line arguments"""

    parser = argparse.ArgumentParser(
        "Make input importance(based on output sensitivity to random"
        " input perturbations) profiles")

    add_basic_eval_args(parser, PRESETS_EVAL)
    add_concurrency_parser(parser)

    parser.add_argument(
        '--smear',
        help='Smearing Value',
        default=0.5,
        dest='smear',
        type=float,
    )

    parser.add_argument('-a',
                        '--annotate',
                        action='store_true',
                        dest='annotate',
                        help='Show y-values for each point')

    return parser.parse_args()
Beispiel #2
0
def parse_cmdargs():
    # pylint: disable=missing-function-docstring
    parser = argparse.ArgumentParser("Make error matrix plots")
    add_basic_eval_args(parser)
    add_concurrency_parser(parser)

    return parser.parse_args()
Beispiel #3
0
def parse_cmdargs():
    # pylint: disable=missing-function-docstring
    parser = argparse.ArgumentParser("Evaluate Performance of the Model")
    add_basic_eval_args(parser, PRESETS_EVAL)
    add_concurrency_parser(parser)

    return parser.parse_args()
Beispiel #4
0
def parse_cmdargs():
    # pylint: disable=missing-function-docstring
    parser = argparse.ArgumentParser("Make Binstat plots")

    add_basic_eval_args(parser, PRESETS_EVAL)
    add_concurrency_parser(parser)

    return parser.parse_args()
Beispiel #5
0
def parse_cmdargs():
    # pylint: disable=missing-function-docstring
    parser = argparse.ArgumentParser("Make plots of various Figures Of Merits")

    parser.add_argument(
        '-b', '--bins',
        dest    = 'bins',
        default = 50,
        help    = 'Number of bins in distribution plots',
        type    = int,
    )
    add_basic_eval_args(parser)
    add_concurrency_parser(parser)

    return parser.parse_args()
Beispiel #6
0
def parse_cmdargs():
    # pylint: disable=missing-function-docstring
    parser = argparse.ArgumentParser("Make t-SNE embedding plots")

    parser.add_argument(
        '-b',
        '--bins',
        dest='bins',
        default=100,
        help='Number of bins for the t-SNE density plot',
        type=int,
    )

    parser.add_argument(
        '-n',
        '--number',
        dest='limit',
        default=2000,
        help='Number of points for the t-SNE embedding',
        type=int,
    )

    parser.add_argument(
        '--dimensions',
        dest='dims',
        default=2,
        choices=[2, 3],
        help='Number of dimensions of embedding manifold',
        type=int,
    )

    parser.add_argument(
        '--perplexity',
        dest='perplexity',
        default=30,
        help='Perplexity value for the t-SNE embedding',
        type=float,
    )

    add_basic_eval_args(parser)
    add_concurrency_parser(parser)

    return parser.parse_args()
Beispiel #7
0
def parse_cmdargs():
    """Parse command line arguments"""
    parser = argparse.ArgumentParser("Plot targets")
    add_basic_eval_args(parser, PRESETS_EVAL)
    add_concurrency_parser(parser)
    return parser.parse_args()