Machine Learning แบบ End-to-End
Joshua Stapleton
Machine Learning Engineer
การ Deploy

คอนเทนเนอร์:

Dockerfile: คำสั่งสำหรับสร้างคอนเทนเนอร์
# Use an official Python runtime as a parent image FROM Python:3.7# Set the working directory in the container to /app WORKDIR /ML_pipeline# Copy the current directory contents into the container at /app ADD . /ML_pipeline# Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt
# ... continued
# Make port 80 available to the world outside this container
EXPOSE 80
# Define environment variable
ENV NAME World
# Run app.py when the container launches
CMD ["Python", "ML_pipeline.py"]
สร้าง image ที่กำหนดไว้:
docker build -t heart_disease_model .
การ Tag:
docker tag heart_disease_model:latest heart_disease_model:1.0

แม้ Docker จะทำให้การบรรจุโมเดลง่ายขึ้น...
หากแอปพลิเคชันมีข้อมูลที่ละเอียดอ่อน...

Machine Learning แบบ End-to-End