예제 #1
0
        'rrun')

    rrun_aucs.append(rrun_mean_auc)

    print('After this run with %s followed by %s (γ = %s), mean auc is %s' %
          (rrun_kpca, rrun_model, opt_gamma, rrun_mean_auc[0][0]))

    print("\n%.2f seconds elapsed so far\n" % (time.time() - StartTime))
    print(
        '\n###################################################################\n'
    )

print('rrun_aucs:')
print(rrun_aucs[0][0])

p2f.mpl_simplebar(rds_labels,
                  rrun_aucs[0][0],
                  'Target outcome',
                  'Mean AUC',
                  p2f.get_col_list('autumn', len(rds_labels)),
                  output='save',
                  path='%s%s_summarybars.png' % (filepath, nowtime))
p2f.js_bars(rds_labels, rrun_aucs[0][0],
            '%s%s_summarybars.js' % (plotpath, nowtime))

print("\n!!! SUCCESSFUL RUN !!!\n")

#Calculate and display time taken or script to run
print("\nTime taken for script to run is %.2f seconds\n" %
      (time.time() - StartTime))
예제 #2
0
from p2funcs import js_bars

a = ['a', 'b', 'c', 'd', 'e']
b = [0.2, 0.3, 0.9, 0.8, 0.7]

js_bars(a, b, 'simp_bar', '../../int_charts/simpbar.js')