Goto

Collaborating Authors

 real python


Starting With Linear Regression in Python โ€“ Real Python

#artificialintelligence

This is just the beginning. Data science and machine learning are driving image recognition, autonomous vehicle development, decisions in the financial and energy sectors, advances in medicine, the rise of social networks, and more. Linear regression is an important part of this. Linear regression is one of the fundamental statistical and machine learning techniques. Whether you want to do statistics, machine learning, or scientific computing, there's a good chance that you'll need it.


Machine Learning With Python (Learning Path) โ€“ Real Python

#artificialintelligence

Machine learning is a field of computer science that uses statistical techniques to give computer programs the ability to learn from past experiences and improve how they perform specific tasks. In this step-by-step tutorial, you'll cover the basics of setting up a Python numerical computation environment for machine learning on a Windows machine using the Anaconda Python distribution. In this course on face detection with Python, you'll learn about a historically important algorithm for object detection that can be successfully applied to finding the location of a human face within an image. In this introductory tutorial, you'll learn how to simply segment an object from an image based on color in Python using OpenCV. A popular computer vision library written in C/C with bindings for Python, OpenCV provides easy ways of manipulating color spaces.


Python AI: How to Build a Neural Network & Make Predictions โ€“ Real Python

#artificialintelligence

Machine learning is a technique in which you train the system to solve a problem instead of explicitly programming the rules. Getting back to the sudoku example in the previous section, to solve the problem using machine learning, you would gather data from solved sudoku games and train a statistical model. Statistical models are mathematically formalized ways to approximate the behavior of a phenomenon. A common machine learning task is supervised learning, in which you have a dataset with inputs and known outputs. The task is to use this dataset to train a model that predicts the correct outputs based on the inputs.


Natural Language Processing With spaCy in Python โ€“ Real Python

#artificialintelligence

Rule-based matching is one of the steps in extracting information from unstructured text. It's used to identify and extract tokens and phrases according to patterns (such as lowercase) and grammatical features (such as part of speech). Rule-based matching can use regular expressions to extract entities (such as phone numbers) from an unstructured text. It's different from extracting text using regular expressions only in the sense that regular expressions don't consider the lexical and grammatical attributes of the text. In this example, pattern is a list of objects that defines the combination of tokens to be matched. Both POS tags in it are PROPN (proper noun).


Generative Adversarial Networks: Build Your First Models โ€“ Real Python

#artificialintelligence

If you've studied neural networks, then most of the applications you've come across were likely implemented using discriminative models. Generative adversarial networks, on the other hand, are part of a different class of models known as generative models. Discriminative models are those used for most supervised classification or regression problems. As an example of a classification problem, suppose you'd like to train a model to classify images of handwritten digits from 0 to 9. For that, you could use a labeled dataset containing images of handwritten digits and their associated labels indicating which digit each image represents. During the training process, you'd use an algorithm to adjust the model's parameters.


Setting Up Python for Machine Learning on Windows โ€“ Real Python

#artificialintelligence

Since 2011, Python has included pip, a package management system used to install and manage software packages written in Python. However, for numerical computations, there are several dependencies that are not written in Python, so the initial releases of pip could not solve the problem by themselves. To circumvent this problem, Continuum Analytics released Anaconda, a Python distribution focused on scientific applications and Conda, a package and environment management system, which is used by the Anaconda distribution. It's worth noticing that the more recent versions of pip can handle external dependencies using wheels, but, by using Anaconda, you'll be able to install critical libraries for data science more smoothly. Anaconda is a full distribution of the software in the PyData ecosystem, including Python itself along with binaries for several third-party open-source projects. Besides Anaconda, there's also Miniconda, which is a minimal Python distribution including basically Conda and its dependencies so that you can install only the packages you need, from scratch Conda is a package, dependency, and environment management system that could be installed without the Anaconda or Miniconda distribution.


Python Machine Learning โ€“ Real Python

#artificialintelligence

Machine learning is a field of computer science that uses statistical techniques to give computer programs the ability to learn from past experiences and improve how they perform specific tasks. In the the following tutorials, you will learn how to use machine learning tools and libraries to train your programs to recognise patterns and extract knowledge from data. You will learn how to use tools such as OpenCV, NumPy and TensorFlow for performing tasks such as data analysis, face recognition and speech recognition.


Face Recognition with Python, in Under 25 Lines of Code โ€“ Real Python

#artificialintelligence

In this article, we'll look at a surprisingly simple way to get started with face recognition using Python and the open source library OpenCV. Free Bonus: Click here to get the Python Face Detection & OpenCV Examples Mini-Guide that shows you practical code examples of real-world Python computer vision techniques. OpenCV is the most popular library for computer vision. Originally written in C/C, it now provides bindings for Python. OpenCV uses machine learning algorithms to search for faces within a picture.


Face Recognition with Python, in under 25 lines of code - Real Python

#artificialintelligence

The following is a guest post by Shantnu Tiwari, who has worked in the low level/embedded domain for ten years. Shantnu suffered at the hands of C/C for several years before he discovered Python, and it felt like a breath of fresh air. He is now sharing his love. In this post we'll look at a surprisingly simple way to get started with face recognition using Python and the open source library OpenCV. OpenCV is the most popular library for computer vision.