コード例 #1
0
def main():
    # ------ CONFIGURE PARAMETERS ------
    params = set_params.Params()
    # ------ EXECUTE ------
    results = adagrad(params)
    # ------ PLOT ------
    algorithm = "adagrad"
    plt = plot.Plot(params)
    plt.update_algorithm(algorithm, results, thresholding=True)
    plt.plot_all()
コード例 #2
0
ファイル: adam_lb_modified.py プロジェクト: jlad2017/optimize
def main():
    # ------ CONFIGURE PARAMETERS ------
    params = set_params.Params()
    # ------ EXECUTE ------
    results = adam_lb_modified(params)
    # ------ PLOT ------
    if (params.flipping):
        algorithm = "adam-lb-modified-w-flipping"
    else:
        algorithm = "adam-lb-modified"
    plt = plot.Plot(params)
    plt.update_algorithm(algorithm, results, thresholding=True)
    plt.plot_all()