Update app.py
Browse files
app.py
CHANGED
|
@@ -81,8 +81,8 @@ const_model = data.target_train.mean(axis = 0)
|
|
| 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))
|
|
|
|
| 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))
|