Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +7 -1
src/streamlit_app.py
CHANGED
|
@@ -144,7 +144,7 @@ def plot_residual_analysis(y_true, y_pred, residuals):
|
|
| 144 |
st.plotly_chart(fig, use_container_width=True)
|
| 145 |
|
| 146 |
def main():
|
| 147 |
-
st.title('📈
|
| 148 |
st.markdown("""
|
| 149 |
This tool provides comprehensive linear regression analysis with diagnostics and visualizations.
|
| 150 |
Upload your data, select variables, and explore the results!
|
|
@@ -223,6 +223,12 @@ def main():
|
|
| 223 |
X_train, X_test, y_train, y_test = train_test_split(
|
| 224 |
X, y, test_size=test_size, random_state=random_state
|
| 225 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
|
| 227 |
# Standardize if requested
|
| 228 |
if scale_data:
|
|
|
|
| 144 |
st.plotly_chart(fig, use_container_width=True)
|
| 145 |
|
| 146 |
def main():
|
| 147 |
+
st.title('📈 Statistical Linear Regression Analysis')
|
| 148 |
st.markdown("""
|
| 149 |
This tool provides comprehensive linear regression analysis with diagnostics and visualizations.
|
| 150 |
Upload your data, select variables, and explore the results!
|
|
|
|
| 223 |
X_train, X_test, y_train, y_test = train_test_split(
|
| 224 |
X, y, test_size=test_size, random_state=random_state
|
| 225 |
)
|
| 226 |
+
|
| 227 |
+
# Reset indicies
|
| 228 |
+
X_train = X_train.reset_index(drop=True)
|
| 229 |
+
X_test = X_test.reset_index(drop=True)
|
| 230 |
+
y_train = y_train.reset_index(drop=True)
|
| 231 |
+
y_test = y_test.reset_index(drop=True)
|
| 232 |
|
| 233 |
# Standardize if requested
|
| 234 |
if scale_data:
|