Skip to Content
로우코드 AI
book

로우코드 AI

by 궨덜린 스트리플링, 마이클 아벨, 박찬성
December 2024
Beginner to intermediate
336 pages
7h 41m
Korean
Hanbit Media, Inc.
Content preview from 로우코드 AI
244
로우코드 AI
import joblib
joblib.dump(cls, 'filename.joblib')
cls = joblib.load('filename.joblib')
이는 모델뿐만 아니라 사용 중인 변환기 및 기타 객체에도 적용될 수 있습니다.
7.4.5
사이킷런의 파이프라인
이 절은 사이킷런의 파이프라인이라는 고급 주제를 자세히 다룹니다. 처음 읽을 때는 그냥 넘
어가도 좋지만, 나중에 다시 읽어서 사이킷런으로 변환기를 관리하는 방법을 배워보기 바랍니다.
다양한 변환을 단일 함수로 결합하는 과정은 다소 지루할 수 있습니다. 그러나 이는 학습-서빙
왜곡이라는 문제를 방지하는 데 매우 중요한 과정입니다. 한편, 사이킷런은 파이프라인(
Pipe-
line
)이라는 자료 구조를 제공하여, 이 과정을 간소화합니다. 파이프라인은 최종 객체인 모델
(예:
LinearRegression
)을 제외한
OneHot
Encoder
와 같은 모든 변환용 객체와 이들의 순서
정보를 포함합니다.
그런데 사이킷런의 변환기를 사용하지 않고 판다스의 데이터프레임을 직접 조작하는 작업이
존재합니다. 이 작업을 어떻게 사이킷런의 파이프라인에 포함할까요? 사이킷런의
Function-
Transformer
를 사용하면 됩니다.
FunctionTransformer
는 파이썬 함수를 파라미터로 입력받
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

AI 엔지니어링

AI 엔지니어링

Chip Huyen
만들면서 배우는 생성 AI

만들면서 배우는 생성 AI

데이비드 포스터

Publisher Resources

ISBN: 9791169213301