An Introduction To Google Cloud Platform For Machine Learning

Samadhan Kadam
Petabytz
Published in
5 min readJun 25, 2019

In this post, we introduce the Google Cloud Platform (GCP) as a simple, yet powerful, and cost effective cloud option for performing machine learning. Whats more, we provide a simple walk through on how to set up the environment for machine learning model development on GCP.

Why we Choose Google cloud Platform?

One of the enormous rivals in the distributed computing space is Google, with their cloud asset offering named as “Google Cloud Platform” prominently alluded to as GCP for short.

Google is likewise one of the top innovation pioneers in the web space with a scope of top web items, for example, Gmail, YouTube, Google Hangouts, Google Maps, and Google+, to make reference to only a couple. The previously mentioned items create, store and procedure huge amounts of Terabytes of information every day from web clients around the globe.

To manage this critical information, Google throughout the years has put intensely in preparing and capacity research and framework. Google, starting today, brags some the most great server farm plan and innovation on the planet to help their computational requests and figuring administrations.

Google Cloud Platform makes accessible to the open lighting quick computational speed (it is getting quicker!) and innovative capacity abilities with incredibly low inactivity (which means insignificant postponements in information move) and high throughput (which can be gullibly portrayed as the time taken to finish an occupation). Made conceivable by cutting edge organizing innovation/framework.

Why this is basically stunning is that the capacity and handling stage on which items like Gmail, Google Docs and so forth are manufactured, are currently open to and accessible for everybody to use.

Giving the community to incredible, very conveyed computational power has introduced another rush of “constant knowledge” to programming items. Besides, this has pushed the limits and can yet expand the boondocks of machine learning look into.

As we see later in this post, using GCP for machine learning practice is incredibly simple, and gets the peruser one bit nearer to utilizing front line machine learning innovation in the cloud in a matter of seconds.

Storage & Processing: The Core of Intelligence

The ultimate objective of man-made reasoning (of which machine learning is a subset) is to assemble machines that think like people, and reason, just as machines that demonstration like individuals and act soundly. To accomplish this accomplishment, figuring how to store data got from the earth, just as how to process that data to reveal new dimensions of insight is basic. Subsequently, we see that the two relentless mainstays of man-made reasoning are capacity and preparing, with systems administration coming in the middle of to encourage information stream.

An Inspiration from Natural Intelligence

As with the counterfeit, so is it with the normal. Human insight is similarly encouraged on our uncanny capacity to store and process data at vast rates (think organizing!) zillions of times quicker than the speed of light. I consider it the “speed of idea.”

How about we currently contact quickly on the key segments of GCP stockpiling and preparing abilities for machine learning practice.

Storage: Google Cloud Storage

Google Cloud Storage (GCS) on GCP is the phase for putting away for all intents and purposes any information, from level records, video, sound, and so on!

Google Cloud Storage is limitlessly versatile, in other words, the extra room develops as capacity needs increments. There is for all intents and purposes no restriction to the volume of information put away. Information put away on Google Cloud Storage is accessible whenever, and from any area around the globe. Whats more, this enormous stockpiling force comes at a practically insignificant cost, mulling over the size and monetary estimation of the put away information. Also, recognizing the availability, security, and consistency given by distributed storage, the expense appears nothing.

Processing: Google Compute Engine

Google process motor through GCP makes accessible to clients virtual machines that are physically running on Google’s server farms the world over. In like manner, with distributed storage, the virtual machine scales (for example develops) as your handling needs increments.

From a past post on Machine Learning on the Cloud, we see that the genuine increases of utilizing cloud figure assets are the point at which we utilize all the computational asset as is expected to comprehend a specific errand and give up these assets subsequent to handling.

Playground: Google Datalab

Google information lab on GCP is the place machine learning model structure and advancement happens. This stage is the place we run our bundles for information cleaning, information investigation, information derivation and information arrangement for machine learning, and see the outcomes in a flash in an intuitive way. It is here that the iterative procedure of machine learning model advancement happens.

Datalab keeps running on a Google figure motor occasion and gives access to information put away on Google distributed storage.

Setting Up Datalab for Machine Learning: A step-by-step walk through

Step 1: Create a free account on GCP with a $300 starting credit
1). Go to Google Cloud Platform
2). Create a free account — A credit card is needed to open this free account, although Google does not issue any billing without consent.

Step 2: Create a project
A project on GCP is like a container of some sort, which houses all GCP resources used.

Step 3: Upload data to Google Cloud Platform
1). Go to Storage from the project dashboard

2). Create a bucket on Google cloud storage to store data

– Choose a unique bucket name and click create

3). Click Upload files to upload data set to GCS. If data is in a folder, use Upload folder

Step 4: Launch a Datalab interactive environment running on Google compute instance

1). Click on the icon circled in red below to activate Google cloud shell.

2). From cloud shell, run the command:
datalab create my-first-lab

3). From the list of zones, select a geographically close zone. Here, we use [24] us-east1-b

4). When prompted to continue, Press Y and then press Enter

5). When asked for a passphrase, simply skip for now by pressing Enter. When asked again, press Enter once more.

6). After the connection to data lab is established, click on

and select Port 8081 to start using data lab

7). The data lab interface opens up in a new tab as shown below

8). Click on notebook in the top left corner to start a data lab notebook.
9). Congratulations! We are now ready for Machine Learning practice using Datalab on Google Cloud Platform.

--

--