Python tutorials

Single Page Apps with Vue.js and Flask: JWT Authentication

JWT Authentication Welcome to the sixth installment to this multi-part tutorial series on full-stack web development using Vue.js and Flask. In this post I will be demonstrating a way to use JSON Web Token (JWT) authentication. The code for this post can be found on my GitHub account under the branch SixthPost. Series Content Seup and Getting to Know VueJS Navigating Vue Router State Management with Vuex RESTful API with Flask AJAX Integration with REST API JWT Authentication (you are […]

Read more

Basic Socket Programming in Python

In general, network services follow the traditional client/server model. One computer acts as a server to provide a certain service and another computer represents the client side which makes use of this service. In order to communicate over the network a network socket comes into play, mostly only referred to as a socket. This kind of socket communication can even be used internally in a computer for inter-process communication (IPC). This article explains how to write a simple client/server application […]

Read more

Implementing SVM and Kernel SVM with Python’s Scikit-Learn

A support vector machine (SVM) is a type of supervised machine learning classification algorithm. SVMs were introduced initially in 1960s and were later refined in 1990s. However, it is only now that they are becoming extremely popular, owing to their ability to achieve brilliant results. SVMs are implemented in a unique way when compared to other machine learning algorithms. In this article we’ll see what support vector machines algorithms are, the brief theory behind support vector machine and their implementation […]

Read more

Single Page Apps with Vue.js and Flask: Deployment

Deployment to a Virtual Private Server Welcome to the seventh and final installment to this multi-part tutorial series on full-stack web development using Vue.js and Flask. In this post I will be demonstrating how do deploy the application built throughout this series. The code for this post can be found on my GitHub account under the branch SeventhPost. Series Content Seup and Getting to Know VueJS Navigating Vue Router State Management with Vuex RESTful API with Flask AJAX Integration with […]

Read more

Local and Global Variables in Python

One of the basic elements of programming languages are variables. Simply speaking a variable is an abstraction layer for the memory cells that contain the actual value. For us, as a developer, it is easier to remember the name of the memory cell than it is to remember its physical memory address. A valid name can consist of characters from ‘a’ to ‘z’ (in both lower and upper cases) as well as digits. No spaces or special characters, like umlauts […]

Read more

Implementing PCA in Python with Scikit-Learn

With the availability of high performance CPUs and GPUs, it is pretty much possible to solve every regression, classification, clustering and other related problems using machine learning and deep learning models. However, there are still various factors that cause performance bottlenecks while developing such models. Large number of features in the dataset is one of the factors that affect both the training time as well as accuracy of machine learning models. You have different options to deal with huge number […]

Read more

Implementing LDA in Python with Scikit-Learn

In our previous article Implementing PCA in Python with Scikit-Learn, we studied how we can reduce dimensionality of the feature set using PCA. In this article we will study another very important dimensionality reduction technique: linear discriminant analysis (or LDA). But first let’s briefly discuss how PCA and LDA differ from each other. PCA vs LDA: What’s the Difference? Both PCA and LDA are linear transformation techniques. However, PCA is an unsupervised while LDA is a supervised dimensionality reduction technique. […]

Read more

Introduction to the Python Coding Style

Python as a scripting language is quite simple and compact. Compared to other languages, you only have a relatively low number of keywords to internalize in order to write proper Python code. Furthermore, both simplicity as well as readability of the code are preferred, which is what Python prides itself on. In order to achieve both goals, it is helpful that you follow the language’s specific guidelines. This article focuses on the guidelines mentioned above to write valid code that […]

Read more

Course Review: Python for Data Science and Machine Learning Bootcamp

Before we get started it would be helpful to know what data science and machine learning actually are. So in case you don’t know, here are some basic definitions: Data science is an interdisciplinary field of scientific methods, processes, algorithms and systems to extract knowledge or insights from data in various forms, either structured or unstructured Machine learning is a field of computer science that often uses statistical techniques to give computers the ability to “learn” with data, without being […]

Read more

Course Review: Complete Python Bootcamp – Go from zero to hero in Python 3

Introduction The Python programming language has been around for a long time now and given the powerful language that it is, it shouldn’t be a surprise for it to continue having a strong foothold for years to come. Python’s extensibile frameworks and rich set of libraries make it a top language across various fields such as data science, machine learning, and web development, to name a few. Students and professionals are using it alike to tackle day-to-day problems as well […]

Read more
1 160 161 162 163 164 167