Update appStore/target.py
Browse files- appStore/target.py +8 -4
appStore/target.py
CHANGED
@@ -24,8 +24,10 @@ from pandas.api.types import (
|
|
24 |
is_list_like)
|
25 |
|
26 |
# Declare all the necessary variables
|
27 |
-
|
28 |
-
|
|
|
|
|
29 |
|
30 |
def app():
|
31 |
### Main app code ###
|
@@ -34,8 +36,10 @@ def app():
|
|
34 |
df = st.session_state.key0
|
35 |
|
36 |
#load Classifiers
|
37 |
-
classifier = load_tappClassifier(classifier_name=
|
38 |
-
st.session_state['{}_classifier'.format(
|
|
|
|
|
39 |
|
40 |
if len(df) > 100:
|
41 |
warning_msg = ": This might take sometime, please sit back and relax."
|
|
|
24 |
is_list_like)
|
25 |
|
26 |
# Declare all the necessary variables
|
27 |
+
tapp_classifier_identifier = 'tapp'
|
28 |
+
target_setfit = 'target'
|
29 |
+
param1 = get_classifier_params(tapp_classifier_identifier)
|
30 |
+
param2 = get_classifier_params(target_setfit)
|
31 |
|
32 |
def app():
|
33 |
### Main app code ###
|
|
|
36 |
df = st.session_state.key0
|
37 |
|
38 |
#load Classifiers
|
39 |
+
classifier = load_tappClassifier(classifier_name=param1['model_name'])
|
40 |
+
st.session_state['{}_classifier'.format(tapp_classifier_identifier)] = classifier
|
41 |
+
classifier = load_targetClassifier(classifier_name=param2['model_name'])
|
42 |
+
st.session_state['{}_classifier'.format(target_setfit)] = classifier
|
43 |
|
44 |
if len(df) > 100:
|
45 |
warning_msg = ": This might take sometime, please sit back and relax."
|