## Affine Function

Affine functions is a vector-valued functions of the form f(x_1,…,x_n)=A_1x_1+…+A_nx_n+b These coefficients can be scalar or dense or sparse matrices. The constant term is a scalar or a column vector. In geometry, an affine transformation or affine map (from the Latin, affinis, "connected with") between two vector spaces consists of a linear transformation followed by … Continue reading Affine Function

## Write with transformer

When I asked a GPT-2 transformer about "what is life", We can see how beautifully this model portray its thought about life. This is my first write up from GPT-2. Will post more such stories using these transformer models. "Life is suffering and pleasure. You are suffering for the pain you have caused yourself. Your … Continue reading Write with transformer

## Vector Norm in Machine Learning

Some of the most useful operators in linear algebra are norms. Informally, the norm of a vectortells us how big a vector is. The notion of size under consideration here concerns not dimensionalitybut rather the magnitude of the components. In linear algebra, a vector norm is a function f that maps a vector to a … Continue reading Vector Norm in Machine Learning

## Softmax Operation

The main approach that we are going to take here is to interpret the outputs of our model as probabilities. We will optimize our parameters to produce probabilities that maximize the likelihood ofthe observed data. Then, to generate predictions, we will set a threshold, for example, choosingthe label with the maximum predicted probabilities. Put formally, … Continue reading Softmax Operation