For great start, we should use some good tool for manuage the python and virtual environment We will be using UV. On your MacBook, we use a simple command line.
|
|
Then we make a new directory for contain our sourcecode.
|
|
We init our directory and add a few packages to make our own modal.
|
|
From now on, we can actually focus on the building process without worry python virtual environment
Introduction
In this Introduction, I will give you some fundimental concept and keywords just to get used to machine learning framework and how we combine with mathmatical theory.
Tensor
What is a Tensor? This can be different based on different backgroud. In the field of AI, we use Tensor as a continous memory of the data. We use it to store the numerical data and compute with it.
Here in Pytorch framework, we can easily create one.
|
|
Tensor has different dimensions, with can be used as a features of the data, since the protein structure is a 3d structure.
|
|
The dimension of the Tensor, from outer to inner is : 0...N, from inner to outer is : -1..-N-1
Tensor operation obey the rule of matrix operation and vector operation
- Indexing and Slicing
- Operation
- broadcasting
- auto-derivatitive
Machine Learning
Machine Learning is about learning the pattern
- Similarity Estimation
- Classification
Loss Function: $ Loss(w) $ Chain rule AffineLine
Elegent torch.einsum()
Attention is all you need
Sequence of data
Attention: Neural Network
Handle the Sequence divide sequence of the words
RNN and Attention Machecism (watch build a large language model from scratch) NLP computer Vision