puqi commited on
Commit
dcaf7b7
·
1 Parent(s): 6f3de94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -80,9 +80,9 @@ const_model = data.target_train.mean(axis = 0)
80
 
81
  st.subheader('Train multiple linear regression model')
82
  st.latex(r'''\beta=(X^{T}_{train} X_{train})^{-1} X^{T}_{train} y_{train} \\
83
- &\hat{y}=X^{T}_{train} \beta\\
84
- &text{where} X_{train} text{and} X_{input} text{correspond to the training data and the input data you would like to inference on, respectively.}\\
85
- &X_{train} text{and} X_{input} text{both have a column of ones concatenated to the feature space for the bias.}''')
86
  st.text('adding bias unit')
87
  st.code('''X = data.input_train
88
  bias_vector = np.ones((X.shape[0], 1))
 
80
 
81
  st.subheader('Train multiple linear regression model')
82
  st.latex(r'''\beta=(X^{T}_{train} X_{train})^{-1} X^{T}_{train} y_{train} \\
83
+ \hat{y}=X^{T}_{train} \beta \\
84
+ text{where} X_{train} text{and} X_{input} text{correspond to the training data and the input data you would like to inference on, respectively.} \\
85
+ X_{train} text{and} X_{input} text{both have a column of ones concatenated to the feature space for the bias.}''')
86
  st.text('adding bias unit')
87
  st.code('''X = data.input_train
88
  bias_vector = np.ones((X.shape[0], 1))