Blog posts on Data Science, Machine Learning, Data Mining, Artificial Intelligence, Spark Machine Learning

Saturday, September 8, 2018

Getting started with google laboratory for running deep learning applications

What is Google Colab:


We all know that deep learning algorithms improve the accuracy of AI applications to great extent. But this accuracy comes with requiring heavy computational processing units such as GPU for developing deep learning models. Many of the machine learning developers cannot afford GPU as they are very costly and find this as a roadblock for learning and developing Deep learning applications. To help the AI, machine learning developers Google has released a free cloud based service Google Colaboratory - Jupyter notebook environment with free GPU processing capabilities with no strings attached for using this service. It is a ready to use service which requires no set at all.

Any AI developers can use this free service to develop deep learning applications using popular AI libraries like Tensorflow, Pytorch, Keras, etc.



Setting up colab:


Go to google drive → new item → More → colaboratory


This opens up a python Jupyter notebook in browser.


By default, the Jupyter notebook runs on Python 2.7 version and CPU processor. We may change the python version to Python 3.6 and processing capability to GPU by changing the settings as shown below:

Go to Runtime → Change runtime type


This opens up a Notebook settings pop-up where we can change Runtime Type to Python 3.6 and processing Hardware to GPU.


Bingo, your python environment with the processing power of GPU is ready use.

Important things to remember:
  • The supported browsers are Chrome and Firefox
  • Currently only Python is supported
  • We can you use upto 12 hours of processing time in one go
Let’s check if our newly created Jupyter notebook works perfectly. Run below commands and see if we are getting expected results.


By default most frequently used python libraries such as Numpy, Pandas, scipy, Sklearn, Matplotlib etc are pre-installed when we create a notebook. Below we can see plotting

Running Machine Learning example:


Below Python Notebook code shows us an example of multi layer neural network using python and sklearn library.

Full code implementation:



In the next post we see how to import data into Colab environment

10 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Great Information. Thank You Author, for sharing your valuable information about Machine Learning with us. People who are reading this blog can continue your knowledge which you gained with us and know how to apply this practically along with our Machine Learning Course

    ReplyDelete
  3. I have read your blog its very attractive and impressive. I like it your blog.

    Guest posting sites
    Education

    ReplyDelete
  4. I'm really enjoying the design and layout of your blog. It's a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a designer to create your theme? Superb work! web development singapore

    ReplyDelete
  5. You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming. fisher scientific laboratory startup glassware

    ReplyDelete
  6. Heya i’m for the first time here. I came across this board and I find It really useful & it helped me out much. I hope to give something back and help others like you helped me.
    singapore web designer

    ReplyDelete