fixed superscript

This commit is contained in:
ltcptgeneral 2019-04-03 14:39:22 -05:00
parent 493b9b19b2
commit bf5d2585d7
4 changed files with 20 additions and 20 deletions

View File

@ -96,37 +96,37 @@ def titanservice():
for i in range(len(measure)): # unpacks into specific teams
#ofbest_curve = [None]
#r2best_curve = [None]
ofbest_curve = [None]
r2best_curve = [None]
line = measure[i]
# print(line)
#x = list(range(len(line)))
#eqs, rmss, r2s, overfit = analysis.optimize_regression(x, line, 10, 1)
x = list(range(len(line)))
eqs, rmss, r2s, overfit = analysis.optimize_regression(x, line, 10, 1)
#beqs, brmss, br2s, boverfit = analysis.select_best_regression(eqs, rmss, r2s, overfit, "min_overfit")
beqs, brmss, br2s, boverfit = analysis.select_best_regression(eqs, rmss, r2s, overfit, "min_overfit")
#print(eqs, rmss, r2s, overfit)
print(eqs, rmss, r2s, overfit)
# ofbest_curve.append(beqs)
# ofbest_curve.append(brmss)
# ofbest_curve.append(br2s)
# ofbest_curve.append(boverfit)
# ofbest_curve.pop(0)
ofbest_curve.append(beqs)
ofbest_curve.append(brmss)
ofbest_curve.append(br2s)
ofbest_curve.append(boverfit)
ofbest_curve.pop(0)
# print(ofbest_curve)
print(ofbest_curve)
#beqs, brmss, br2s, boverfit = analysis.select_best_regression(eqs, rmss, r2s, overfit, "max_r2s")
beqs, brmss, br2s, boverfit = analysis.select_best_regression(eqs, rmss, r2s, overfit, "max_r2s")
# r2best_curve.append(beqs)
# r2best_curve.append(brmss)
# r2best_curve.append(br2s)
# r2best_curve.append(boverfit)
# r2best_curve.pop(0)
r2best_curve.append(beqs)
r2best_curve.append(brmss)
r2best_curve.append(br2s)
r2best_curve.append(boverfit)
r2best_curve.pop(0)
# print(r2best_curve)
print(r2best_curve)
measure_stats.append(teams[i] + list(analysis.basic_stats(
line, 0, 0)) + list(analysis.histo_analysis(line, 1, -3, 3)))
@ -395,4 +395,4 @@ firebase_admin.initialize_app(cred)
db = firestore.client()
service() # finally we write something that isn't a function definition
# titanservice()
# titanservice()