Python tutorials

Python String Interpolation with the Percent (%) Operator

There are a number of different ways to format strings in Python, one of which is done using the % operator, which is known as the string formatting (or interpolation) operator. In this article we’ll show you how to use this operator to construct strings with a template string and variables containing your data. The % Operator This way of working with text has been shipped with Python since the beginning, and it’s also known as C-style formatting, as it […]

Read more

Python for NLP: Creating Multi-Data-Type Classification Models with Keras

This is the 18th article in my series of articles on Python for NLP. In my previous article, I explained how to create a deep learning-based movie sentiment analysis model using Python’s Keras library. In that article, we saw how we can perform sentiment analysis of user reviews regarding different movies on IMDB. We used the text of the review the review to predict the sentiment. However, in text classification tasks, we can also make use of the non-textual information […]

Read more

Minimax with Alpha-Beta Pruning in Python

Introduction Way back in the late 1920s John Von Neumann established the main problem in game theory that has remained relevant still today: Players s1, s2, …, sn are playing a given game G. Which moves should player sm play to achieve the best possible outcome? Shortly after, problems of this kind grew into a challenge of great significance for development of one of today’s most popular fields in computer science – artificial intelligence. Some of the greatest accomplishments in […]

Read more

Python for NLP: Multi-label Text Classification with Keras

Introduction This is the 19th article in my series of articles on Python for NLP. From the last few articles, we have been exploring fairly advanced NLP concepts based on deep learning techniques. In the last article, we saw how to create a text classification model trained using multiple inputs of varying data types. We developed a text sentiment predictor using textual inputs plus meta information. In this article, we will see how to develop a text classification model with […]

Read more

Introduction to the Python Pyramid Framework

Introduction In this tutorial, we’re going to learn how to use the Pyramid framework in Python. It is an open source web development framework which uses the Model-View-Controller (MVC) architecture pattern and is based on Web Server Gateway Interface (WSGI). The Pyramid framework has a lot of useful add-on packages that make web development a lot more convenient. Some other popular alternatives for web development in Python include Django and Flask. Prerequisites You need to have basic knowledge of HTML […]

Read more

Python for NLP: Working with Facebook FastText Library

This is the 20th article in my series of articles on Python for NLP. In the last few articles, we have been exploring deep learning techniques to perform a variety of machine learning tasks, and you should also be familiar with the concept of word embeddings. Word embeddings is a way to convert textual information into numeric form, which in turn can be used as input to statistical algorithms. In my article on word embeddings, I explained how we can […]

Read more

Object Detection with ImageAI in Python

Introduction Object detection is a technology that falls under the broader domain of Computer Vision. It deals with identifying and tracking objects present in images and videos. Object detection has multiple applications such as face detection, vehicle detection, pedestrian counting, self-driving cars, security systems, etc. The two major objectives of object detection include: To identify all objects present in an image Filter out the object of attention In this article, you will see how to perform object detection in Python […]

Read more

Deploying a Flask Application to Heroku

Introduction In this tutorial you will learn how to deploy a Flask application to Heroku. The app can be as simple as a “Hello World” app to a social media monitoring platform! Nowadays there is no business that doesn’t have a web app to help it a reach greater audience, or maybe provide its services through an online portal. Today you are about to learn how to make an API using Flask as a case study for how to deploy […]

Read more

Solving Sequence Problems with LSTM in Keras

In this article, you will learn how to perform time series forecasting that is used to solve sequence problems. Time series forecasting refers to the type of problems where we have to predict an outcome based on time dependent inputs. A typical example of time series data is stock market data where stock prices change with time. Similarly, the hourly temperature of a particular place also changes and can also be considered as time series data. Time series data is […]

Read more

Reading and Writing YAML to a File in Python

Introduction In this tutorial, we’re going to learn how to use the YAML library in Python 3. YAML stands for Yet Another Markup Language. In recent years it has become very popular for its use in storing data in a serialized manner for configuration files. Since YAML essentially is a data format, the YAML library is quite brief, as the only functionality required of it is the ability to parse YAML formatted files. In this article we will start with […]

Read more
1 160 161 162 163 164 182