PyCon 2020

Hey Folks! I finally got around to watching a bunch of the talks and found several of the talks useful for improving my Python coding skills in general and/or in the context of doing Data Science. Here are some interesting talks from PyCon 2020: Beautiful Python Refactoring video. The talk was simple but powerful in demonstrating the process of refactoring in Python. Docker and Python: making them play nicely and securely for Data Science and ML. Talk discussed why use Docker in general and for machine learning, and how to manage security and performance while using Docker. It’s a great introduction to Docker - motivating its use case as a Data Scientist. Some tips that she shared include getting standard project templates from cookie cutter data science. Another was to use repo2docker to build a docker based on a local or remote repo. It was also very engaging. Small Big Data: Using Numpy and Pandas When Your Data Doesn’t Fit In Memory. This talk expanded my knowledge of Numpy and Pandas for handling small big data, which happens more than you think. Pro-tip: Watch at ~1.5 speed to save time!

January 14, 2021 · 1 min

Writing Awesome READMEs

This article will explore possible items to include your Git repo README file. We will discuss several items that we can include in a README and when to include them. What is a README? A README file is a text file that explains a project to new user. It helps users quickly understand where to find information on the project such as brief description of your project, how to install/fork it and/or how to use your code. READMEs live in the top level directory of your repo in GitHub, Bitbucket or GitLab. ...

January 13, 2021 · 2 min

Using Classes in Python

We know that you’ve probably heard of object oriented programming (OOP), but outside of designing games, when is best to use it for data science? We haven’t used OOP much until recently when we refactored a data science project code base. In this article, we give a brief refresher for OOP and discuss our top reasons for using OOP with a few examples. When we code, we generally skew towards more of a functional style of programming, but sometimes we get frustrated with code that is too long. This means that we focus on building our code using functional modules of code and functions. However, at some point, our functions become too large to keep track of and we consider refactoring into classes. ...

December 8, 2020 · 4 min

Staying Up-To-Date on AI/ML

Great Email Newsletters on AI/ML All newsletters are released weekly. Import AI - AI newsletter that summarizes recent news articles and research; I enjoy how honest and succinct this newsletter is; also like that the implications of new algorithms are always discussed by Jack, who is an advocate for improved ML model explicability and data privacy. AI News Weekly - curated list of AI-related articles; presents a brief summary of each article describing the latest news, applied use cases and ethics; has ads AI Applied use Cases Top News - curated list of the latest AI news articles; subscribers can customize their newsletters according to topics of interest; weekly The Batch - newsletter from deeplearning.ai more academic with discussion of recent AI research papers; great breakdown of topics e.g. what’s new, why it matters and the implications TOPBOTS - list of various AI articles recently released on TOPBOT.com; articles cover a wide array of topics e.g. NLP, ML in marketing and interpretability; articles tend to be more technical PyImageSearch - articles on using Python to tackle real-world computer vision and deep learning problems; very practical, well-done computer vision blog. I highly recommend Adrian’s free email courses. ODSC - newsletter with articles spanning various topics geared to beginners, experts and everyone in between. They also offer webinars (free and paid) as well as online meetups. Podcasts Data Skeptic has short episodes that cover various ML concepts TWIML AI - Formally This Week in ML & AI is hosted by Sam Charrington who asks really strong questions to the latest and greatest AI/ML researchers. Practical AI - aims to make AI accessible to everyone Find Practical Information on AI/ML ...

November 24, 2020 · 5 min

R vs Python

I generally reach for Python when building data science pipelines, however I discovered R before I decided to invest in learning Python. R has saved me lots of time when it came to quickly and easily preparing nice-looking plots for research. It begs the question of where is R better than Python for certain purposes? We will discuss the benefits and downsides of Python and R so that we can reach for the appropriate tool when needed, instead of treating all problems like nails when a screwdriver is required. ...

October 26, 2020 · 3 min

Export Images to PowerPoint in Python

Data Scientists spend a significant amount of time visualizing data for storytelling or conveying insights to end users of a data product. Often, the ability to succinctly and accurately explain the methods used and insights derived hinges on the medium of communication and time taken to prepare visualizations. In order to limit time spent on manually building reports or PowerPoint slides, one page at a time, we could automate the process. Let’s automatically create a slide deck containing plots created in Python. It’s not too hard, but there are a few tips that definitely make the process easier. We will use the python-pptx library read in template PowerPoint files and create new slides with exciting content. Python-pptx has the capability to add text, SmartArt, and other media formats to slides based on a template file. ...

October 26, 2020 · 6 min

Exporting Richly Formatted Text In Python

Today, I wondered whether I could automatically save an image of colored text from the Python console. I was looking for a way to display very long strings that automatically wrapped to its container, so I avoided the dreaded run-on string that never ends. Also, could I save the image elegantly with high resolution? In this article, I will discuss potential approaches for getting a file with nice-looking colored text that can be programmatically generated. ...

October 7, 2020 · 5 min

Building Recommendations Systems

Recommendations systems are good for matching users to their favorite products and are incredibly popular. In fact you have likely used a recommendation system at least once in your life. For example, Amazon uses recommendation systems to suggest new exciting products to purchase based on users’ previous purchase patterns and those similar users. Netflix also utilizes recommendation systems to suggest new TV Shows and movies. Before we get into recommendation systems, it is important to briefly cover two general-purpose approaches for identifying target customer groups and making product recommendations. These two approaches are called Clustering and Association Rules. ...

September 7, 2020 · 4 min

Recurrent Neural Networks in PyTorch

Feed forward networks cannot learn from the past, but Recurrent Neural Networks (RNNs) can learn by accepting data in a sequence. Examples of applications for RNNs include the text autocomplete feature on your phone and performing language translations. Recurrent Neurons (RNs) act as the building blocks of RNNs. The difference between RNs and feed forward neurons is that RNs accept input x, at time t, as well as a hidden state or output from time t-1 from another RN. The output of a RN is a vector, unlike for a feed forward neuron. RNNs are trained (i.e. their weights are calculated) using backpropagation via Gradient Descent Optimization in time. Output from a single RNN layer at time instance,t is an input to the next layer. Each layer in the RNN represents an instance in time. ...

September 7, 2020 · 2 min

Fastai’s Practical Deep Learning for Coders Course Release - 2020 Update!

On Aug 21st, 2020, fastai released a new version of their Practical Deep Learning for Coders -Part 1 course. This course is a must-take for new and intermediate deep learning practitioners. It is well done and teaches you intuition without drowning you in theory. The only prerequisites are some high-school math, and a year of coding experience (preferably in Python). This course is free and can be done without any installation, by taking advantage of the Colab and/or Gradient platforms, which provide free, GPU-powered Python notebooks. Go here to learn more about the course. ...

September 3, 2020 · 1 min