Priyanka-Kumavat-At-TE commited on
Commit
8f853c4
1 Parent(s): b2a5542

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -103,6 +103,11 @@ def main():
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**: Upload an ML config file using the file uploader, and click the 'Predict' button to make predictions with the trained model.")
105
 
 
 
 
 
 
106
  elif app_mode == "Generate User Visit History":
107
  st.subheader("Generate User Visit History")
108
  num_users = st.number_input("Number of users", min_value=1, max_value=10000, value=100, step=1)
@@ -171,9 +176,3 @@ def main():
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)
 
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**: Upload an ML config file using the file uploader, 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")
113
  num_users = st.number_input("Number of users", min_value=1, max_value=10000, value=100, step=1)
 
176
 
177
  if __name__ == "__main__":
178
  main()