Skip to Content
Machine Learning with R, the tidyverse, and mlr
book

Machine Learning with R, the tidyverse, and mlr

by Hefin Rhys
April 2020
Intermediate to advanced
536 pages
16h 55m
English
Manning Publications
Content preview from Machine Learning with R, the tidyverse, and mlr

A.2. Vectors

Figure A.2. An example of a two-dimensional vector at point x = 3, y = 5. The arrow shows how vectors encode magnitude, which we can represent as their distance from the origin (or another vector). The curved line representing the angle between the x-axis and the arrow indicates how vectors encode direction.

A vector is a set of numbers that encodes both magnitude and direction. Imagine a coordinate system with an x-axis and a y-axis, as shown in figure A.2. If we pick a point on the coordinate system, that point will have a value for each axis: let’s say x = 3 and y = 5. We can represent this point as the vector (3,5). The vector ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Machine Learning with R

Advanced Machine Learning with R

Cory Lesmeister, Dr. Sunil Kumar Chinnamgari
R Machine Learning Projects

R Machine Learning Projects

Dr. Sunil Kumar Chinnamgari

Publisher Resources

ISBN: 9781617296574Publisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link