The very first script that you will write working in deep learning, will not be to perform training but to split the dataset. Every time I start a new project, the first task is to manage the given data. This blog is about image data for computer vision based tasks, mostly classification. If you are… Read More »
One-hot encoding using keras.
from keras.utils.np_utils import to_categorical
Quick Install: List of Useful Python Libraries for Deep Learning Here is a list of Python libraries with installation commands that are very useful if you are working in deep learning, AI, Computer Vision. Run these commands in bash or shell. Note: If you are using Python virtualenv, then do not forget to activate virtualenv… Read More »
SSLError, URLError – URL fetch error occurs Keras, Python Recently, I was trying to use pre-trained InceptionResNetV2 model in one of my project on Mac. The following error(sslerror) occurred when the program tried to download the weights of the pre-trained model: “SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)” “URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1… Read More »
Run Jupyter Notebook on AWS EC2 Instance Data scientists largely prefer working on Jupyter Notebook for number of reasons. It makes Python code more visible and easy to interpret. Simultaneously with programming, we can visualise our data using different Python libraries. I personally enjoy working in this environment. It let’s me visualise each step of… Read More »
Kaggle Digit Recognizer using Softmax regression As a machine learning enthusiast, one would definitely want to solve some practical problems. Kaggle is one of the best platform to do so. It provides list of data science problems, including paid competitions. Kaggle digit recognizer is one of those problems. One of the tutorial problem is called… Read More »
Install OpenCV 3 + Python 3.5 macOS tutorial This is a rapid tutorial to install OpenCV 3 on macOS. I have eliminated long description and focused only on installation commands more. 1. Install XCode In order to compile OpenCV on macOS, we need to install XCode first. The simplest way to get XCode is right… Read More »