물론 모델을 개선하는 방법을 파악할 수 있다. 하지만 첫 번째 버전을 얻는 것이 중요하다. 초
기 버전을 배포한 뒤에 모델을 개선하는 방법을 모색할 수 있다.
12.4.8
배포
이 애플리케이션의 경우 배포는 단순히 스크립트를 사용할 수 있게 만들 뿐이다. 사실상 오프
라인에서의 ‘배포’는 종종 주문형
on
demand
또는 주기적으로 실행할 수 있는 워크플로 생성을 포
함한다. 이 애플리케이션의 경우 새로운 검토를 위해 실행할 수 있는 위치에 스크립트를 두기
만 하면 된다.
%%writefile movie_review_analysis.py
"""
이 스크립트는 동일한 리뷰를 포함하는 파일을 가져온다.
분석 결과를 std.out에 출력한다.
"""
import argparse as ap
import json
from pyspark.sql import SparkSession
from pyspark.ml import PipelineModel
326
3
부
애플리케이션
if __name__ == '__main__':
print('beginning...') ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.