MatthiasPi commited on
Commit
69772d3
ยท
1 Parent(s): 079c41a

Update algos/regression/linR.py

Browse files
Files changed (1) hide show
  1. algos/regression/linR.py +2 -2
algos/regression/linR.py CHANGED
@@ -1,9 +1,9 @@
1
  from sklearn.linear_model import LinearRegression
2
  import streamlit as st
3
- from types import NoneType
4
 
5
  def process(data):
6
- if type(data[0]) == NoneType or type(data[1]) == NoneType: # if either training or testing dataset is still missing
7
  st.info('Please Upload Data')
8
  return None
9
  if len(data) == 0:
 
1
  from sklearn.linear_model import LinearRegression
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 len(data) == 0: