Posts

MLOps Zoomcamp 2024 – Module 3

Image
  Module 3: Orchestration Source mlops-zoomcamp/03-orchestration at main · DataTalksClub/mlops-zoomcamp (github.com) Homework The goal of this homework is to train a simple model for predicting the duration of a ride, but use Mage for it. We'll use the same NYC taxi dataset , the Yellow taxi data for 2023. Question 1. Run Mage First, let's run Mage with Docker Compose. Follow the quick start guideline. What's the version of Mage we run? (You can see it in the UI) Answer of Question 1: v0.9.71 Question 2. Creating a project Now let's create a new project. We can call it "homework_03", for example. How many lines are in the created metadata.yaml file? 35 45 55 65 Solution docker exec -it mlops-magic-platform-1 bash root@4c0edc9c9a86:/home/src# cd mlops root@4c0edc9c9a86:/home/src/mlops# mage init homework_03 root@4c0edc9c9a86:/home/src/mlops# cd homework_03 root@4c0edc9c9a86

MLOps Zoomcamp 2024 – Module 2

  Module 2 – Experiment-Tracking Source https://github.com/DataTalksClub/mlops-zoomcamp/tree/main/02-experiment-tracking Homework Q1. Install MLflow To get started with MLflow you’ll need to install the MLflow Python package. For this we recommend creating a separate Python environment, for example, you can use conda environments, and then install the package there with pip or conda. Once you installed the package, run the command mlflow –version and check the output. What’s the version that you have? import mlflow mlflow.__version__ '2.13.0' Answer of Q1: 2.13.0 Q2. Download and preprocess the data We’ll use the Green Taxi Trip Records dataset to predict the duration of each trip. Download the data for January, February and March 2023 in parquet format from here. Use the script preprocess_data.py located in the folder homework to preprocess the data. The script will: load the data from the folder <TAXI

Stock Market Analytics Zoomcamp - Module 3

  Module 3: Modeling for Time Series Source https://github.com/DataTalksClub/stock-markets-analytics-zoomcamp/tree/main/03-modeling Homework https://github.com/garjita63/stock-market-analytics-zoomcamp/blob/main/homework/module-3/homework-3.ipynb

Streaming Demo with Redpanda using NY Taxi Dataset

Image
  Table of Contents Redpanda Demo Project Architecture Session Terminal 1 (Preparations) Session Terminal 2 (Kafka Producer) Session Terminal 3 (Kafka Consumer) Check (Monitor) Output Overview This repository contains some homework solutions from module 6 (Streaming) in DTC Data Engineering Zoomcamp 2024. Instead of Kafka, here will use Red Panda , which is a drop-in replacement for Kafka. Ensure we have the following set up : Docker (module 1) PySpark (module 5) For this homework we will be using the files from Module 5 homework i.e. : Green 2019-10 data from here Note: Don't run these all steps on Jupyter Notebook. Otherwise the ipynb script file will grow very quickly when running the producer and consumer steps. Please run on terminal. All scripts created using pyhton (.py) extention Redpanda Streaming Demo Architecture Session Terminal 1 (Preparations) Open Operating System terminal Creat

Data Engineering Zoomcamp 2024 – Project 1

Image
  DE Zoomcamp 2024 – Project1 This repository contains a brief description of my DE Zoomcamp 2024 Project 1 Problem statement The Retailrocket has collected a large dataset of E-commerce i.e a file with behaviour data (events.csv), a file with item properties (item_properties.сsv) and a file, which describes category tree (category_tree.сsv). The data has been collected from a real-world ecommerce website. It is raw data, i.e. without any content transformations, however, all values are hashed due to confidential issues. The purpose of publishing is to motivate researches in the field of recommender systems with implicit feedback. The goal of this project is to create a streamlined and efficient process for ingesting and analyzing e-commerce on Cloud by implementing Data Engineering concepts. About the Dataset Retailrocket recommender system The dataset consists of three context files i.e. : a file with behaviour data (events.csv) a file, which describes category tree (category_tree.сs