Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def standard_config(n_cpus=1):
    info = dict(is_test="[switches randomness off]")

    lambda_ = 0.4

    if n_cpus == -1:
        n_cpus = multiprocessing.cpu_count()

    CONFIG["xeval.fraction"] = 0.5
    CONFIG["xeval.num_iter"] = 5

    CONFIG["semi_supervised_learner.initial_fdr"] = 0.15
    CONFIG["semi_supervised_learner.initial_lambda"] = lambda_

    CONFIG["semi_supervised_learner.iteration_fdr"] = 0.02
    CONFIG["semi_supervised_learner.iteration_lambda"] = lambda_

    CONFIG["semi_supervised_learner.num_iter"] = 5

    CONFIG["final_statistics.lambda"] = lambda_

    CONFIG["num_processes"] = n_cpus
    info["num_processes"] = "[-1 means 'all available cpus']"

    CONFIG["delim.in"] = "tab"
    info["delim.in"] = r"""[you can eg use 'tab' or ',']"""

    CONFIG["delim.out"] = "tab"
    info["delim.out"] = r"""[you can eg use 'tab' or ',']"""

    CONFIG["target.dir"] = None
    CONFIG["target.overwrite"] = 0

    CONFIG["ignore.invalid_score_columns"] = False
    info["ignore.invalid_score_columns"] =\
        """ignore score columns which conly contain NaN of infinity values"""

    CONFIG["apply"] = None
    info["apply"] = r"""[name of *_scorer.bin file of existing classifier]"""

    CONFIG["export.mayu"] = False
    info["export.mayu"] = """[export input files for MAYU """

    return CONFIG, info
        


src/p/y/pyprophet-0.11.0/pyprophet/main.py   pyprophet(Download)
 
from pyprophet import PyProphet
from config import standard_config, fix_config_types
from report import save_report, export_mayu
import sys
    print "   or "
    print "       %s --version" % script
    CONFIG, info = standard_config()
    dump_config_info(CONFIG, info)
 
        raise Exception("no input file given")
 
    CONFIG, info = standard_config()
    CONFIG.update(options)
    fix_config_types(CONFIG)