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的数据科学实践
306
|
第
7
章
7.15.10 SageMaker
调试器的提前停止规则
SageMaker
调试器支持许多可在规则触发时执行的内建动作。例如,
StopTraining()
动作通过在目标指标(如准确度)到达峰值且无法通过额外训练来提升时,停止当
前训练任务的方式以节约开销。峰值通过诸如
overfit
这样的规则来检测。我们按照
一定时间或步骤数量内的相对变化来配置规则。例如,如果在一千个步骤之后,模
型准确度没有达到
1%
的提升,我们需要停止训练任务并节省一些金钱。
StopTraining()
动
作将在规则触发时果断结束训练任务。与使用
Spot
实例类似,
我们应在任务提前被终止之前使用检查点,尤其是最后一个检查点。
7.16
小结
在本章,我们使用
Keras API
、
TensorFlow 2.x
和
BERT
,在
Amazon SageMaker
中
训练了第一个模型。我们深入探索了
SageMaker
的基础设施,模型开发
SDK
和
SageMaker
训练任务。我们使用
SageMaker
训练模型,描述了安全方面的最佳实践,
并探索了一些节约开支并提升性能的技巧。
我们也了解到,
BERT
的转换器神经网络架构通过使用双向的方式学习语料库中词
语的上下文表示,彻底改变了
NLP
和
NLU
领域。我们演示了如何微调预训练的
BERT
模型来为产品评价构建领域特定的文本分类器。这与上一代
NLP
模型截然
相反,例如同时只学习一个方向的
Word2Vec
,只保留学到的嵌入而丢弃原始模型
的
GloVe
,和使用需要大量内存和计算资源的复杂循环神经网络( ...
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