Skip to Content
精通機器學習
book

精通機器學習

by Aurélien Géron
April 2020
Intermediate to advanced
816 pages
18h 32m
Chinese
GoTop Information, Inc.
Content preview from 精通機器學習
TensorFlow 模型提供服務
|
657
19-7 
Google IAM
中建立服務帳戶
太棒了
接下來
我們要寫一個小腳本來查詢預測服務
Google
有許多程式庫可讓你更輕
鬆地使用它的服務
Google API Client 程式庫
這是建構在
OAuth 2.0https://oauth.net/)(
進行身分驗證
REST
上面的很薄的軟
體層
你可以和所有
GCP
服務一起使用它
包括
AI Platform
你可以使用
pip
來安裝
這個程式庫稱為
google-api-python-client
Google Cloud Client 程式庫
這些程式庫比較高階
每一種程式庫都是讓特定服務使用的
例如
GCSGoogle
BigQueryGoogle Cloud Natural Language
Google Cloud Vision
你可以用
pip
安裝
所有的服務
例如
GCS Client Library
稱為
google-cloud-storage
)。
當特定的服務有
用戶端程式庫可用時
建議你直接使用它
不要使用
Google API Client Library
因為
它實作了所有最佳做法
通常會使用
gRPC
而非
REST
來取得更好的性能
在行文至此時
AI Platform
沒有用戶端程式庫可用
所以我們使用
Google API Client
Library
它需要使用服務帳戶的私用金鑰
你可以設定
GOOGLE_APPLICATION_CREDENTIALS
環境變數來告訴它金鑰在哪裡 ...
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

下一代空间计算:AR与VR创新理论与实践

下一代空间计算:AR与VR创新理论与实践

Erin Pangilinan, Steve Lukas, Vasanth Mohan
C语言核心技术(原书第2版)

C语言核心技术(原书第2版)

Peter Prinz, Tony Crawford

Publisher Resources

ISBN: 9789865024345