Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Python Machine Learning
  • Toc
  • feedback
Python Machine Learning

Python Machine Learning

By : Sebastian Raschka
4.3 (100)
close
Python Machine Learning

Python Machine Learning

4.3 (100)
By: Sebastian Raschka

Overview of this book

Machine learning and predictive analytics are transforming the way businesses and other organizations operate. Being able to understand trends and patterns in complex data is critical to success, becoming one of the key strategies for unlocking growth in a challenging contemporary marketplace. Python can help you deliver key insights into your data – its unique capabilities as a language let you build sophisticated algorithms and statistical models that can reveal new perspectives and answer key questions that are vital for success. Python Machine Learning gives you access to the world of predictive analytics and demonstrates why Python is one of the world’s leading data science languages. If you want to ask better questions of data, or need to improve and extend the capabilities of your machine learning systems, this practical data science book is invaluable. Covering a wide range of powerful Python libraries, including scikit-learn, Theano, and Keras, and featuring guidance and tips on everything from sentiment analysis to neural networks, you’ll soon be able to answer some of the most important questions facing you and your organization.
Table of Contents (15 chapters)
close
14
Index

An introduction to the basic terminology and notations

Now that we have discussed the three broad categories of machine learning—supervised, unsupervised, and reinforcement learning—let us have a look at the basic terminology that we will be using in the next chapters. The following table depicts an excerpt of the Iris dataset, which is a classic example in the field of machine learning. The Iris dataset contains the measurements of 150 iris flowers from three different species: Setosa, Versicolor, and Viriginica. Here, each flower sample represents one row in our data set, and the flower measurements in centimeters are stored as columns, which we also call the features of the dataset:

An introduction to the basic terminology and notations

To keep the notation and implementation simple yet efficient, we will make use of some of the basics of linear algebra. In the following chapters, we will use a matrix and vector notation to refer to our data. We will follow the common convention to represent each sample as separate row in a feature matrix An introduction to the basic terminology and notations, where each feature is stored as a separate column.

The Iris dataset, consisting of 150 samples and 4 features, can then be written as a An introduction to the basic terminology and notations matrix An introduction to the basic terminology and notations:

An introduction to the basic terminology and notations

Note

For the rest of this book, we will use the superscript (i) to refer to the ith training sample, and the subscript j to refer to the jth dimension of the training dataset.

We use lower-case, bold-face letters to refer to vectors An introduction to the basic terminology and notations and upper-case, bold-face letters to refer to matrices, respectively An introduction to the basic terminology and notations. To refer to single elements in a vector or matrix, we write the letters in italics (An introduction to the basic terminology and notations or An introduction to the basic terminology and notations, respectively).

For example, An introduction to the basic terminology and notations refers to the first dimension of flower sample 150, the sepal width. Thus, each row in this feature matrix represents one flower instance and can be written as four-dimensional column vector An introduction to the basic terminology and notations, An introduction to the basic terminology and notations.

Each feature dimension is a 150-dimensional row vector An introduction to the basic terminology and notations, for example:

An introduction to the basic terminology and notations

.

Similarly, we store the target variables (here: class labels) as a 150-dimensional column vector An introduction to the basic terminology and notations.

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete