배포 직전에 제약 조건을 발견하면 수정 비용이 많이 들 수 있기 때문이다. 개발 과정에서 이해
관계자들과 지속해서 소통하기를 원하는 이유다.
이제 제약 조건을 나열했으므로 애플리케이션을 구축하는 방법을 논의해보자.
12.1.3
문제 해결
리뷰가 영어로 되어 있다는 첫 번째 제약은 실제로 우리 작업을 더 쉽게 만든다. 집계 점수를
계산하는 데 걸리는 시간에 관한 두 번째 제약 조건은 우리가 구축할 수 있는 모델의 복잡성
을 제어하지만, 가벼운 제약이다. 우리에게는
IMDb
데이터셋이 있으며 프로그램을 빌드할
때
JSON
에서 로드할 것이다. 그러나 우리의 모델링 코드는 이러한 제약 조건을 따를 필요가
없다.
12.2
프로젝트 계획
프로젝트를 계획하기 위해 허용 기준이 무엇인지부터 정의해보자. 제품 소유자는 보통 이해관계
자의 요청을 통합하여 이러한 사항을 정의한다.
12
장에서 여러분은 제품 소유자이자 개발자다.
다음을 수행하는 스크립트가 필요하다.
●
JSON
개체의 리뷰가 포함된 파일을 한 줄에 하나씩 가져온다.
●
모델의 출력에 따라 분포 정보를 반환한다.
- 평균
- 표준편차
- 사분위수
- 최솟값
- 최댓값
Spark
NLP
를 사용하여 데이터를 처리하고
Spark
MLlib
모델을 사용하여 감성을 예측할 것
이다. 이제 이러한 높은 수준의 허용 기준이 있으므로 데이터를 살펴보자.
먼저 데이터를
DataFrame
에 로드하고 레이블 열을 추가한다.
316
3
부
애플리케이션
import sparknlp
from pyspark.ml ...
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.