Commit ยท
079c41a
1
Parent(s): 5932aa1
Update algos/regression/elasticnet.py
Browse files
algos/regression/elasticnet.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
from sklearn.linear_model import ElasticNet
|
| 2 |
import streamlit as st
|
| 3 |
-
|
| 4 |
|
| 5 |
def process(data):
|
| 6 |
-
if
|
| 7 |
st.info('Please Upload Data')
|
| 8 |
return None
|
| 9 |
if 'object' in list(data[0].dtypes) or 'object' in list(data[1].dtypes):
|
|
|
|
| 1 |
from sklearn.linear_model import ElasticNet
|
| 2 |
import streamlit as st
|
| 3 |
+
|
| 4 |
|
| 5 |
def process(data):
|
| 6 |
+
if data[0] == None or data[1] == None: # if either training or testing dataset is still missing
|
| 7 |
st.info('Please Upload Data')
|
| 8 |
return None
|
| 9 |
if 'object' in list(data[0].dtypes) or 'object' in list(data[1].dtypes):
|