True
738;
Albert David Bangura Graduate Teaching and R... @ Bahcesehir Cyprus...
city Nicosia, Cyprus
187
297
5
6
In Technology 1 min read
Vectorization in Machine Learning
๐—ฉ๐—ฒ๐—ฐ๐˜๐—ผ๐—ฟ๐—ถ๐˜‡๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ถ๐—ป ๐— ๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ฒ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด In machine learning, vectorization refers to the process of converting operations into vector or matrix from. Vectorization is a key concept for achieving high performance in machine learning algorithms, especially when dealing with large datasets. Vectorized code can perform calculations in less time than code without vectorization. This matters more when you are running learning algorithms on large datasets or trying to train large models which is always the case in machine learning. Benefits of vectorized code. 1. Results in smaller code 2. Results in faster code In sum, being able to write vectorized implementations of learning algorithms has been a key step to getting learning algorithms to run efficiently and therefore scale well to the large datasets that many machine learning algorithms now must operate on. Below is an implementation of vectorization in Python. The vectorized version can use parallel hardware in the computer and therefore took less time when I ran the program. Duration of Non-Vectorized Code: 598.6779 ms Duration of Vectorized Code: 2.5864 ms #machinelearning #bigdata #algorithms #performance #efficiency

Other insights from Albert David Bangura

Insights for you.
What is TwoCents? ×