Spaces:
Runtime error
Runtime error
Commit
·
1e3662f
1
Parent(s):
0cd809a
Update app.py
Browse files
app.py
CHANGED
@@ -101,12 +101,12 @@ def main():
|
|
101 |
st.write("To get started, use the sidebar to navigate to the desired functionality.")
|
102 |
st.write("1. **Generate User Visit History**: Select the number of users and conversion rate, and click the 'Generate' button to generate user visit history.")
|
103 |
# st.write("2. **Train Model**: Upload an ML config file using the file uploader, and click the 'Train' button to train the Markov Chain Classifier model.")
|
104 |
-
st.write("2. **Predict Conversion**:
|
105 |
|
106 |
-
#
|
107 |
-
|
108 |
-
#
|
109 |
-
|
110 |
|
111 |
elif app_mode == "Generate User Visit History":
|
112 |
st.subheader("Generate User Visit History")
|
|
|
101 |
st.write("To get started, use the sidebar to navigate to the desired functionality.")
|
102 |
st.write("1. **Generate User Visit History**: Select the number of users and conversion rate, and click the 'Generate' button to generate user visit history.")
|
103 |
# st.write("2. **Train Model**: Upload an ML config file using the file uploader, and click the 'Train' button to train the Markov Chain Classifier model.")
|
104 |
+
st.write("2. **Predict Conversion**: Enter the UserId for which you want to predict, and click the 'Predict' button to make predictions with the trained model.")
|
105 |
|
106 |
+
# Description of MarkovChainClassifier
|
107 |
+
mcclf_description = "The MarkovChainClassifier is a Machine Learning Classifier that utilizes the concept of Markov chains for prediction. Markov chains are mathematical models that represent a system where the future state of the system depends only on its current state, and not on the previous states. The MarkovChainClassifier uses this concept to make predictions by modeling the transition probabilities between different states or categories in the input data. It captures the probabilistic relationships between variables and uses them to classify new data points into one or more predefined categories. The MarkovChainClassifier can be useful in scenarios where the data has a sequential or time-dependent structure, and the relationships between variables can be modeled as Markov chains. It can be applied to various tasks, such as text classification, speech recognition, recommendation systems, and financial forecasting."
|
108 |
+
# Display the description in Streamlit app
|
109 |
+
st.write(mcclf_description)
|
110 |
|
111 |
elif app_mode == "Generate User Visit History":
|
112 |
st.subheader("Generate User Visit History")
|