Skip to Content
基于AWS的数据科学实践
book

基于AWS的数据科学实践

by Chris Fregly, Antje Barth
September 2022
Intermediate to advanced
549 pages
11h 27m
Chinese
China Electric Power Press Ltd.
Content preview from 基于AWS的数据科学实践
195
第 6 章
为模型训练准备数据集
在第
5
章,我们使用
SageMaker Studio
和不同的
Python
可视化库探索了数据集。我
们使用
Amazon
客户评价数据集得到了关于产品目录的一些关键的商业洞见。此外,
我们使用
SageMaker
处理任务,
Apache Spark
和
AWS Deequ
开源库在数据集上分
析了汇总统计并运行了质量检查。
在本章,我们讨论如何通过称为“特征工程”的过程将人类可读的文本转换为机器
可读的向量。具体来说,我们会将
Amazon
客户评价数据集中的原始
review_body
列转化为
BERT
向量。我们使用这些
BERT
向量在第
7
章训练评价分类模型,并在
第
8
章优化该模型。我们也会在第
7
章更深入了解自然语言处理和
BERT
的起源。
我们会使用评价分类模型来预测来自社交网络、合作伙伴网站等的产品评价给出的
star_rating
。通过粗略地预测评价的
star_rating
,产品管理和客户服务团队可以
使用这些预测在质量问题被公开讨论时修正它们,而不是等到直接的邮件或电话再
进行修复。这将检测质量问题的平均时间从数天乃至数月,减少到数分钟或数小时。
6.1
特征选择和特征工程
人工智能和机器学习算法是操作数值和向量的数值优化方法,而非原始文本和图像。
这些向量通常被称作“嵌入”,它们被投影到高维向量空间。
算法在这一高维向量
空间运行优化。
196
|
第
6
章
独热编码(
one-hot encoding
)是为在表数据集内编码类别数据的一种嵌入形式。通
过独热编码,我们将每个类型值表示为一个由
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

设计机器学习系统

设计机器学习系统

Chip Huyen
Spark快速大数据分析(第2版)

Spark快速大数据分析(第2版)

Jules S. Damji, Brooke Wenig, Tathagata Das, Denny Lee

Publisher Resources

ISBN: 9787519869663