Skip to Content
피처 스토어를 활용한 머신러닝 시스템 구축
book

피처 스토어를 활용한 머신러닝 시스템 구축

by Jim Dowling
November 2025
Beginner to intermediate
508 pages
8h 36m
Korean
O'Reilly Media, Inc.
Content preview from 피처 스토어를 활용한 머신러닝 시스템 구축

제6장. 모델 독립적 변환

이 작품은 AI를 사용하여 번역되었습니다. 여러분의 피드백과 의견을 환영합니다: translation-feedback@oreilly.com

이제 우리는 피처 파이프라인을 위한 데이터 변환 로직을 작성하는 방법에 초점을 맞출 것입니다. 2장에서 설명했듯이, 피처 파이프라인은 모델 독립적인 데이터 변환을 실행하여 피처 스토어에 저장되는 재사용 가능한 피처를 생성하는 프로그램입니다. 즉, 생성된 피처 데이터는 피처 파이프라인을 개발하는 첫 번째 모델뿐만 아니라 잠재적으로 다양한 모델에서 사용할 수 있습니다. 피처 재사용은 사용 및 테스트 증가, 저장 비용 절감, 피처 개발 및 운영 비용 절감을 통해 더 높은 품질의 피처를 제공합니다. 그리고 기억하세요, 가장 비용이 낮은 피처 파이프라인은 만들 필요가 없는 파이프라인입니다.

모델 독립적 변환(MIT)의 예로는 추출, 검증, 집계, 압축(EVAC) 변환이 있습니다:

  • 특징 추출 (지연된 특징, 빈닝, LLMs을 위한 청킹)

  • 데이터 검증 (Great Expectations 활용) 및 데이터 정리

  • 집계 (시간 창에 대한 카운트 및 합계)

  • 압축 (벡터 임베딩)

또한 피처 파이프라인의 모듈성, 테스트 가능성 및 성능을 개선하기 위해 변환을 구성하는 방법도 살펴보겠습니다. 그러나 먼저 개발 프로세스를 설정하는 것부터 시작하겠습니다—소스 코드를 패키지로 구성하는 방법과 피처 파이프라인에서 변환을 구현하는 데 사용할 수 있는 기술들입니다.

소스 코드 구성

신용카드 사기 탐지 프로젝트의 소스 코드를 템플릿으로 활용하여 머신러닝 파이프라인 개발 시 생산 환경 최적 관행을 따르는 소스 코드 구성 방식을 제시합니다. 생산 환경 수준의 파이프라인 구축을 위해서는 단순한 노트북 작성 단계를 넘어, 지속적 통합 및 지속적 배포(CI/CD)를 포함한 테스트 주도 개발과 같은 소프트웨어 엔지니어링 관행을 따라야 합니다. 소스 코드를 변경할 경우, 테스트를 통해 변경 사항이 파이프라인이나 파이프라인에서 생성된 아티팩트(특징, 훈련 데이터셋, 모델, 예측 결과 등)에 의존하는 클라이언트를 손상시키지 않을 것이라는 확신을 높일 수 있습니다. 테스트 실행을 자동화하면 개발 시 반복 속도가 느려지지 않습니다. 단위 테스트를 작성해 본 적이 없다면 걱정하지 마세요—LLMs(예: ChatGPT)이 단위 테스트 작성 시작을 도와줄 수 있습니다.

우리는 전체 신용카드 사기 예측 시스템을 구축, 테스트, 실행하는 데 필요한 모든 소스 코드를 구성하는 디렉터리 구조를 사용합니다( 그림 6-1 참조).

Diagram showing a directory structure for organizing source code in a credit card fraud prediction system, with separate directories for notebooks, pipelines, features, tests, and scripts.
그림 6-1. Python으로 구축된 AI시스템의 경우 , 다양한 프로그램, 함수 및 테스트를 서로 다른 디렉터리에 배치하여 프로젝트 내 프로덕션 코드를 노트북 및 헬퍼 스크립트의 EDA(Exploratory Data Analysis)와 ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’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
QuotationMarkI 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
QuotationMarkI’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
QuotationMarkI'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.
Mark W.
Embedded Software Engineer

You might also like

Scikit-Learn과 PyTorch를 활용한 실전 머신러닝

Scikit-Learn과 PyTorch를 활용한 실전 머신러닝

Aurélien Géron
실무자를 위한 그래프 데이터 활용법

실무자를 위한 그래프 데이터 활용법

마티아스 브뢰헬러, 데니즈 고즈넬

Publisher Resources

ISBN: 0642572279523