Artificial Intelligence Basics
Beginner · 30 minutes · 100 points
Get hands-on with foundational AI concepts using Python. In this lab, you will install core AI/ML libraries, explore data with NumPy, build a simple linear regression model with scikit-learn, and evaluate its performance. By the end, you will have a working understanding of the basic AI/ML workflow: prepare data, train a model, and measure results.
What you’ll learn
- Install and verify core AI/ML Python libraries (NumPy, scikit-learn, matplotlib)
- Generate and explore a synthetic dataset using NumPy
- Train a simple linear regression model using scikit-learn
- Evaluate model performance using Mean Squared Error and R-squared metrics
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: python:3.12-slim
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: ai, machine-learning, python, scikit-learn, numpy, linear-regression, data-science
Create a free account to start this lab.