10 Amazing Articles On Python Programming And Machine Learning
Tags: python, machinelearning, sql, database
Published: 2019-10-05 21:09:12



Optimizing CUDA Recurrent Neural Networks with TorchScript
==========================================================


![](https://miro.medium.com/max/2048/0*2bL4vQtpwimoMAH5.png)

To get started, you can use [this file](https://github.com/pytorch/pytorch/blob/master/benchmarks/fastrnns/custom_lstms.py) as a template to write your own custom RNNs.

We are constantly improving our infrastructure on trying to make the performance better. If you want to gain the speed/optimizations that TorchScript currently provides (like operator fusion, batch matrix multiplications, etc.), here are some guidelines to follow. The next section explains the optimizations in depth.

[Read More Here](https://pytorch.org/blog/optimizing-cuda-rnn-with-torchscript/)

Bring your Jupyter Notebook to life with interactive widgets
============================================================

[Semi Koen](https://towardsdatascience.com/@semika)

Traditionally, every time you need to modify the output of your notebook cells, you need to change the code and rerun the affected cells. This can be cumbersome, inefficient and error prone and in the case of a non-technical user it may even be impracticable.

[Read More Here](https://towardsdatascience.com/bring-your-jupyter-notebook-to-life-with-interactive-widgets-bc12e03f0916)

10x Faster Parallel Python Without Python Multiprocessing
=========================================================

![](https://miro.medium.com/max/1200/0*CHJESdfcIGvZ20DP.jpeg)

[Robert Nishihara](https://towardsdatascience.com/@robertnishihara)

While [Python's multiprocessing library](https://docs.python.org/3/library/multiprocessing.html#module-multiprocessing) has been used successfully for a wide range of applications, in this blog post, we show that it falls short for several important classes of applications including numerical data processing, stateful computation, and computation with expensive initialization.

[Read More Here](https://towardsdatascience.com/10x-faster-parallel-python-without-python-multiprocessing-e5017c93cce1)

The reason I am using Altair for most of my visualization in Python
===================================================================

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/9gvciaw0gg2wg8f4dyzk.gif)

Sadly, in Python, we do not have a ggplot2.

Python's go to visualization library, matplotlib, is very powerfulmatplotlib recently came into the spotlight again for being [attributed the first black hole image](https://twitter.com/matplotlib/status/1116477991763218432).

but has severe limitations. At times its flexibility is a blessing, but it is easy to get frustrated adding a small feature to your graph. Also, matplotlib dual [object oriented and state-based interface](https://matplotlib.org/tutorials/introductory/lifecycle.html) is confusing. I still don't completely grasp it even though I have been using matplotlib for years. Lastly, it is not easy to make interactive charts.

[Read More here](http://fernandoi.cl/blog/posts/altair/)

Extreme Rare Event Classification using Autoencoders in Keras
=============================================================


[Chitta Ranjan](https://towardsdatascience.com/@cran2367)

In a rare-event problem, we have an unbalanced dataset. Meaning, we have fewer positively labeled samples than negative. In a typical rare-event problem, the positively labeled data are around 5--10% of the total. In an extreme rare event problem, we have less than 1% positively labeled data. For example, in the dataset used here it is around 0.6%.

[Read More Here](https://towardsdatascience.com/extreme-rare-event-classification-using-autoencoders-in-keras-a565b386f098)

Tutorial: Text Analysis in Python to Test a Hypothesis
======================================================

People often complain about important subjects being covered too little in the news. One such subject is climate change. The scientific consensus is that this is an important problem, and it stands to reason that the more people are aware of it, the better our chances may be of solving it. But how can we assess how widely covered climate change is by various media outlets? We can use Python to do some text analysis!

[Read More Here](https://www.dataquest.io/blog/tutorial-text-analysis-python-test-hypothesis/)

Introducing TensorFlow Graphics: Computer Graphics Meets Deep Learning
======================================================================

*Posted by *[*Julien Valentin*](https://twitter.com/JPCValentin)* and *[*Sofien Bouaziz*](https://twitter.com/_sofien_)


from [TensorFlow](https://medium.com/@tensorflow)

Github repository: <https://github.com/tensorflow/graphics>

The last few years have seen a rise in novel differentiable graphics layers which can be inserted in neural network architectures. From spatial transformers to differentiable graphics renderers, these new layers leverage the knowledge acquired over years of [computer vision and graphics research](https://click.linksynergy.com/deeplink?id=GjbDpcHcs4w&mid=40328&murl=https%3A%2F%2Fwww.coursera.org%2Fspecializations%2Fcomputervision) to build new and more efficient network architectures. 

[Read More Here](https://medium.com/tensorflow/introducing-tensorflow-graphics-computer-graphics-meets-deep-learning-c8e3877b7668)

How to get started with Python for Deep Learning and Data Science
=================================================================

![](https://miro.medium.com/max/2048/0*cPQJTOBUVXDPCej2.png)

By [Joseph Lee Wei En](https://medium.freecodecamp.org/@josephleeweien)

You can code your own Data Science or Deep Learning project in just a couple of lines of code these days. This is not an exaggeration; many programmers out there have done the hard work of writing tons of code for us to use, so that all we need to do is plug-and-play rather than write code from scratch.

[Read More Here](https://medium.freecodecamp.org/how-to-get-started-with-python-for-deep-learning-and-data-science-3bed07f91a08)

How back-propagation works, and how you can use Python to build a neural network
================================================================================

[Samay Shamdasani](https://medium.freecodecamp.org/@samayshamdasani)

Neural networks can be intimidating, especially for people new to machine learning. However, this tutorial will break down how exactly a neural network works and you will have a working flexible neural network by the end. Let's get started!

[Read More Here](https://medium.freecodecamp.org/build-a-flexible-neural-network-with-backpropagation-in-python-acffeb7846d0)

We're All Using Airflow Wrong and How to Fix It --- ( Personal Favorite!)
=======================================================================

[Jessica Laughlin](https://medium.com/@jldlaughlin)

![](https://miro.medium.com/max/1504/1*eo-mY-gbdescZu7IG17Llw.jpeg)

Tl;dr: only use Kubernetes Operators

At [Bluecore](https://www.bluecore.com/), we have been investing in Airflow as our primary workflow management tool. After a few months of work and promoting the platform internally, we found that we still had low adoption across the team.

[Read More Here](https://medium.com/bluecore-engineering/were-all-using-airflow-wrong-and-how-to-fix-it-a56f14cb0753)

If you enjoyed this post about python then consider these posts as well!
[DynamoDB vs. Hadoop vs. MongoDB](https://www.theseattledataguy.com/dynamodb-vs-hadoop-vs-mongodb/)
[Great Data Engineering Interview Questions](http://www.acheronanalytics.com/acheron-blog/great-data-engineering-interview-questions)
[Why Use Data Science And Machine Learning](http://www.acheronanalytics.com/acheron-blog/why-use-data-science-and-machine-learning)
[Top 10 Business Intelligence (BI) Implementation Tips](https://www.theseattledataguy.com/top-10-of-business-intelligence-bi-implementation-tips/)