MatthiasPi commited on
Commit
06d38ce
ยท
1 Parent(s): f46731f

Update algos/classification/logistic.py

Browse files
Files changed (1) hide show
  1. algos/classification/logistic.py +2 -2
algos/classification/logistic.py CHANGED
@@ -1,10 +1,10 @@
1
  import streamlit as st
2
  import numpy as np
3
  from sklearn.linear_model import LogisticRegression
4
- from types import NoneType
5
 
6
  def process(data):
7
- if type(data[0]) == NoneType or type(data[1]) == NoneType: # if either training or testing dataset is still missing
8
  st.info('Please Upload Data')
9
  return None
10
 
 
1
  import streamlit as st
2
  import numpy as np
3
  from sklearn.linear_model import LogisticRegression
4
+
5
 
6
  def process(data):
7
+ if data[0] == None or data[1] == None: # if either training or testing dataset is still missing
8
  st.info('Please Upload Data')
9
  return None
10