This would open the door to massive studies of the relationships between optimism, pessimism, and a range of online behaviors.
in order to build computational models to differentiate between the optimistic and pessimistic users, we use five different methods from the scikit-learn python library 3 : Naive Bayes (NB), Nearest Neighbor (NN), Decision Tree (DT), Random Forest Classifier (RFC), Gradient Boosting Classifier (GBC) and Stochastic Gradient Descent (SGD).