Nifdi01 commited on
Commit
5f39eb5
1 Parent(s): e90c051

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -54,10 +54,10 @@ st.write(coeff_df)
54
 
55
 
56
  coefficients = [i for i in regressor.coef_]
57
- terms = [f'{coeff}X^{i}' for i, coeff in enumerate(coefficients) if coeff != 0]
58
 
59
  latex_equation = r'''
60
- Our Equation: {} + {}
61
  '''.format(regressor.intercept_, ' + '.join(terms))
62
 
63
  st.write("### Polynomial Equation")
 
54
 
55
 
56
  coefficients = [i for i in regressor.coef_]
57
+ terms = [f'{coeff:.3f}X^{i}' for i, coeff in enumerate(coefficients) if coeff != 0]
58
 
59
  latex_equation = r'''
60
+ Our Equation: {:.3f} + {}
61
  '''.format(regressor.intercept_, ' + '.join(terms))
62
 
63
  st.write("### Polynomial Equation")