From the course: Python for AI Projects: From Data Exploration to Impact

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Model fitting

Model fitting

- [Instructor] We've prepped our data. Now, it's time to train our first machine learning models, using them to predict which tour product a user is most likely to purchase based on their attributes. We'll start by experimenting with a few proven ML algorithms. Logistic regression is a fast and interpretable baseline that often performs well on structured data. We'll also use random forest, a robust ensemble method that captures non-linear patterns with little tuning. And finally, we'll look at LightGBM, a gradient-boosting framework that's highly optimized for both speed and accuracy on tabular datasets. These models give us a mix of simplicity, power, and flexibility, perfect for comparing performance across different types of learners. Machine learning models are like complex machines, full of knobs and levers that control how they learn from data. These are called hyperparameters, and adjusting them can…

Contents