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


  1. This comment has been removed by the author.

  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

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

    Guest posting sites

  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

  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

  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

  7. I really like what you guys tend to be up too. This sort of clever work and reporting! Keep up the amazing works guys I've you guys to our blogroll. marketing company singapore

  8. My spouse and I absolutely love your blog and find most of your post's to be just what I'm looking for. Would you offer guest writers to write content for yourself? I wouldn't mind creating a post or elaborating on some of the subjects you write regarding here. Again, awesome site!
    seo agency

  9. This is such a great article that you are providing to us. I like this article and keep sharing this type of article with us. If any one is looking for Beauty Parlour in Gurgaon or Beauty Parlour in Delhi then visit Lifeasy.

  10. Hey there! Do you know if they make any plugins to help with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains. If you know of any please share. Cheers!why should you outsource

  11. If you are looking for AKTU admission then KCCITM is one of the best engineering college in India as it ensure quality education.

  12. Jindal Poly Films manufacture variety of Flexible Packaging products like Biscuit packaging , Food packaging , etc that are available in different types of densities.

  13. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. Youtube KISS English

  14. I love your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz reply as I'm looking to construct my own blog and would like to find out where u got this from. kudos search engine marketing business

  15. Dial 1-888-500-9609 (Toll-Free) to Fix Epson Printer in Error State issue under the guidance of experienced Epson Support Printer technicians.

  16. High DA, PA and Do-follow Submission Site for Quality Back-link:-

    Also Check :- Blog Commenting Site

    Also Check :- Free Business Listing Sites

    Also Check :- Video Submission Sites

    Also Check :- Profile Creation Sites

    Also Check :- Dofollow Article Submission Sites

    Also Check :- Directory Submission Sites

    Also Check :- Image Submission Sites

  17. Flip Flops for kids, Kids Sandals, Kids Shoes all are available in variety of designs which are offered by Aqualite India.

  18. Sterco Digitex is one of the Best Digital Marketing company they provide digital marketing services, best seo services for small business, local seo services in us.

  19. LDB is best for Online shipment Tracking, logistics tracking system, container tracking system, vessel tracking systems.

  20. Xebia Academy Global offers best DevOps Training and Certification in Hyderabad, Big Data Developer Training in Hyderabad, SAFe Training in Hyderabad.

  21. Neat blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple adjustements would really make my blog jump out. Please let me know where you got your theme. Website security 

  22. Your website is really cool and this is a great inspiring article. website ranking