Spaces:
Runtime error
Runtime error
Commit
·
b2a5542
1
Parent(s):
ff57fdc
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ def main():
|
|
97 |
if app_mode == "Instructions":
|
98 |
st.write("Welcome to the Markov Chain Classifier app!")
|
99 |
# st.write("This app allows you to generate user visit history, train a Markov Chain Classifier model, and predict conversion.")
|
100 |
-
st.write("This app allows you to 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.")
|
@@ -170,4 +170,10 @@ def main():
|
|
170 |
# st.write(f"UserID: {user_id}, Prediction: Visitor is unlikely to convert into a customer.")
|
171 |
|
172 |
if __name__ == "__main__":
|
173 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
if app_mode == "Instructions":
|
98 |
st.write("Welcome to the Markov Chain Classifier app!")
|
99 |
# st.write("This app allows you to generate user visit history, train a Markov Chain Classifier model, and predict conversion.")
|
100 |
+
st.write("This app allows you to generate user visit history and predict conversion of the visitor into customer.")
|
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.")
|
|
|
170 |
# st.write(f"UserID: {user_id}, Prediction: Visitor is unlikely to convert into a customer.")
|
171 |
|
172 |
if __name__ == "__main__":
|
173 |
+
main()
|
174 |
+
|
175 |
+
# Description of MarkovChainClassifier
|
176 |
+
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."
|
177 |
+
|
178 |
+
# Display the description in Streamlit app
|
179 |
+
st.write(mcclf_description)
|