SlideShare a Scribd company logo
1 of 14
Jinho Seo
Network Science Lab
Dept. of CSIE
The Catholic University of Korea
E-mail: kkinho04@catholic.ac.kr
1
 Vectors and Matrices and Tensors
 Tensors
 Sample and Feature
 The operation of vectors and matrices
 Application
 Discussion
2
1. Vectors and Matrices and tensors
A vector is a quantity with size and direction. It is a shape listed with numbers and represented by a one-
dimensional array or list in Python.
A matrix, on the other hand, is a structure that has two-dimensional shapes with rows and columns.
In Python, we represent it as a two-dimensional array.
The horizontal lines are called rows and the vertical lines are called columns.
From three dimensions onwards, we call them tensors. Tensor is represented by more than three-dimensional
array in Python.
3
2. Tensors
Artificial neural networks solve complex models of operations primarily through matrix operations.
However, matrix operations here do not just mean matrix operations through two-dimensional arrays.
As the input and output of machine learning become more complex, an understanding of three-
dimensional tensors is essential.
For example, in RNN, one of the artificial neural network models, it is not easy to understand without
understanding the concept of three-dimensional tensors.
Let me explain the tensor using Numpy.
4
2. Tensors
Scalar refers to data consisting of one real value. This is called a zero-dimensional tensor.
Dimension is called a zero-dimensional tensor in English.
1) Zero-dimensional tensor (Scalar)
Note the value that comes out when ndim of Numpy is output. We call the value that comes
out when ndim is output the number of axes or the dimension of the tensor. Be sure to
remember these two terms.
5
2. Tensors
The arrangement of numbers is called a vector. A vector is a one-dimensional tensor.
It should be noted that the term dimension is also used in vectors, but the dimension of the vector
and the dimension of the tensor are different concepts.
The example below is a four-dimensional vector, but it is a one-dimensional tensor. It is also
called a 1D tensor.
2) 1D Tensor (Vector)
It can be confused by the definition of the dimension of the vector and the dimension of the
tensor, where the dimension in the vector means the number of elements placed on one axis,
and the dimension in the tensor means the number of axes.
6
2. Tensors
An array of vectors in which rows and columns exist, i.e., a matrix is called a two-dimensional
tensor, also called a 2D tensor.
3) 2D Tensor (Matrix)
Let's also summarize the shape of the tensor. The size of the tensor is a value that indicates how
many dimensions there are along each axis. It is useful for model design if you can immediately
think of the size of the tensor. It can be difficult at first, but it is also a way to expand it
sequentially. In the above case, there are three large data, and each large data can be thought of
as four small data.
7
3. Sample and Feature
When the input matrix of the training data is X, the definitions of Sample and Feature are as follows.
In machine learning, when data is divided into countable units, each is called a sample,
and each independent variable x for predicting dependent variable y is called a property.
8
4. The operation of vectors and matrices
Addition and subtraction of vectors and matrices
Two vectors or matrices of the same size can be added and subtracted.
In this case, you can perform operations between elements in the same location. These
operations are called element-wise operations.
Let's say that there are two vectors, A and B.
9
4. The operation of vectors and matrices
Addition and subtraction of vectors and matrices
The addition and subtraction of the two vectors A and B are shown below.
10
4. The operation of vectors and matrices
Addition and subtraction of vectors and matrices
The same applies to matrices. Assuming that there are two matrices, A and B, the addition and
subtraction of the matrices A and B are as follows.
11
5. Application
12
5. Todo
• 3D tensors (multi-dimensional arrangements)
• Higher tensors
• Multiplication of the inner part of the vector with the matrix
• Understanding as multiple linear regression matrix operations
• Determining the size of weights and deflection matrices
List
There's a lot I haven't understood yet. I'll try to study more.
13
7. Q / A
Q / A

More Related Content

Similar to Vector and Matrix operationsVector and Matrix operations

A New Method Based on MDA to Enhance the Face Recognition Performance
A New Method Based on MDA to Enhance the Face Recognition PerformanceA New Method Based on MDA to Enhance the Face Recognition Performance
A New Method Based on MDA to Enhance the Face Recognition PerformanceCSCJournals
 
Linear_Algebra_final.pdf
Linear_Algebra_final.pdfLinear_Algebra_final.pdf
Linear_Algebra_final.pdfRohitAnand125
 
Matrix algebra in_r
Matrix algebra in_rMatrix algebra in_r
Matrix algebra in_rRazzaqe
 
Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02Rabby Bhatt
 
Linear algebra for deep learning
Linear algebra for deep learningLinear algebra for deep learning
Linear algebra for deep learningSwayam Mittal
 
Two dimensional array
Two dimensional arrayTwo dimensional array
Two dimensional arrayRajendran
 
Vectors Preparation Tips for IIT JEE | askIITians
Vectors Preparation Tips for IIT JEE | askIITiansVectors Preparation Tips for IIT JEE | askIITians
Vectors Preparation Tips for IIT JEE | askIITiansaskiitian
 
A Novel Algorithm for Design Tree Classification with PCA
A Novel Algorithm for Design Tree Classification with PCAA Novel Algorithm for Design Tree Classification with PCA
A Novel Algorithm for Design Tree Classification with PCAEditor Jacotech
 
Applications of Matrices
Applications of MatricesApplications of Matrices
Applications of Matricessanthosh kumar
 
Programming in python
Programming in pythonProgramming in python
Programming in pythonIvan Rojas
 
A new survey on biclustering of
A new survey on biclustering ofA new survey on biclustering of
A new survey on biclustering ofcsandit
 
A NEW SURVEY ON BICLUSTERING OF MICROARRAY DATA
A NEW SURVEY ON BICLUSTERING OF MICROARRAY DATAA NEW SURVEY ON BICLUSTERING OF MICROARRAY DATA
A NEW SURVEY ON BICLUSTERING OF MICROARRAY DATAcscpconf
 
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM csandit
 

Similar to Vector and Matrix operationsVector and Matrix operations (20)

Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
A New Method Based on MDA to Enhance the Face Recognition Performance
A New Method Based on MDA to Enhance the Face Recognition PerformanceA New Method Based on MDA to Enhance the Face Recognition Performance
A New Method Based on MDA to Enhance the Face Recognition Performance
 
Linear_Algebra_final.pdf
Linear_Algebra_final.pdfLinear_Algebra_final.pdf
Linear_Algebra_final.pdf
 
Statistics lab 1
Statistics lab 1Statistics lab 1
Statistics lab 1
 
Matrix algebra in_r
Matrix algebra in_rMatrix algebra in_r
Matrix algebra in_r
 
Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02Mc0079 computer based optimization methods--phpapp02
Mc0079 computer based optimization methods--phpapp02
 
Linear algebra for deep learning
Linear algebra for deep learningLinear algebra for deep learning
Linear algebra for deep learning
 
Two dimensional array
Two dimensional arrayTwo dimensional array
Two dimensional array
 
Vectors Preparation Tips for IIT JEE | askIITians
Vectors Preparation Tips for IIT JEE | askIITiansVectors Preparation Tips for IIT JEE | askIITians
Vectors Preparation Tips for IIT JEE | askIITians
 
U36123129
U36123129U36123129
U36123129
 
1376846406 14447221
1376846406  144472211376846406  14447221
1376846406 14447221
 
A Novel Algorithm for Design Tree Classification with PCA
A Novel Algorithm for Design Tree Classification with PCAA Novel Algorithm for Design Tree Classification with PCA
A Novel Algorithm for Design Tree Classification with PCA
 
F5233444
F5233444F5233444
F5233444
 
StrucA final report
StrucA final reportStrucA final report
StrucA final report
 
TensorFlow.pptx
TensorFlow.pptxTensorFlow.pptx
TensorFlow.pptx
 
Applications of Matrices
Applications of MatricesApplications of Matrices
Applications of Matrices
 
Programming in python
Programming in pythonProgramming in python
Programming in python
 
A new survey on biclustering of
A new survey on biclustering ofA new survey on biclustering of
A new survey on biclustering of
 
A NEW SURVEY ON BICLUSTERING OF MICROARRAY DATA
A NEW SURVEY ON BICLUSTERING OF MICROARRAY DATAA NEW SURVEY ON BICLUSTERING OF MICROARRAY DATA
A NEW SURVEY ON BICLUSTERING OF MICROARRAY DATA
 
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM
 

More from ssuser2624f71

240219_RNN, LSTM code.pptxdddddddddddddddd
240219_RNN, LSTM code.pptxdddddddddddddddd240219_RNN, LSTM code.pptxdddddddddddddddd
240219_RNN, LSTM code.pptxddddddddddddddddssuser2624f71
 
Sparse Graph Attention Networks 2021.pptx
Sparse Graph Attention Networks 2021.pptxSparse Graph Attention Networks 2021.pptx
Sparse Graph Attention Networks 2021.pptxssuser2624f71
 
인공지능 로봇 윤리_1229_9차시.pptx
인공지능 로봇 윤리_1229_9차시.pptx인공지능 로봇 윤리_1229_9차시.pptx
인공지능 로봇 윤리_1229_9차시.pptxssuser2624f71
 
인공지능 로봇 윤리_1228_8차시.pptx
인공지능 로봇 윤리_1228_8차시.pptx인공지능 로봇 윤리_1228_8차시.pptx
인공지능 로봇 윤리_1228_8차시.pptxssuser2624f71
 
인공지능 로봇 윤리_1227_7차시.pptx
인공지능 로봇 윤리_1227_7차시.pptx인공지능 로봇 윤리_1227_7차시.pptx
인공지능 로봇 윤리_1227_7차시.pptxssuser2624f71
 
인공지능 로봇 윤리_1226_6차시.pptx
인공지능 로봇 윤리_1226_6차시.pptx인공지능 로봇 윤리_1226_6차시.pptx
인공지능 로봇 윤리_1226_6차시.pptxssuser2624f71
 
인공지능 로봇 윤리_1222_5차시.pptx
인공지능 로봇 윤리_1222_5차시.pptx인공지능 로봇 윤리_1222_5차시.pptx
인공지능 로봇 윤리_1222_5차시.pptxssuser2624f71
 
인공지능 로봇 윤리_1221_4차시.pptx
인공지능 로봇 윤리_1221_4차시.pptx인공지능 로봇 윤리_1221_4차시.pptx
인공지능 로봇 윤리_1221_4차시.pptxssuser2624f71
 
인공지능 로봇 윤리_1220_3차시.pptx
인공지능 로봇 윤리_1220_3차시.pptx인공지능 로봇 윤리_1220_3차시.pptx
인공지능 로봇 윤리_1220_3차시.pptxssuser2624f71
 
인공지능 로봇 윤리_1219_2차시.pptx
인공지능 로봇 윤리_1219_2차시.pptx인공지능 로봇 윤리_1219_2차시.pptx
인공지능 로봇 윤리_1219_2차시.pptxssuser2624f71
 
인공지능 로봇 윤리_1218_1차시.pptx
인공지능 로봇 윤리_1218_1차시.pptx인공지능 로봇 윤리_1218_1차시.pptx
인공지능 로봇 윤리_1218_1차시.pptxssuser2624f71
 
디지털인문학9차시.pptx
디지털인문학9차시.pptx디지털인문학9차시.pptx
디지털인문학9차시.pptxssuser2624f71
 
디지털인문학8차시.pptx
디지털인문학8차시.pptx디지털인문학8차시.pptx
디지털인문학8차시.pptxssuser2624f71
 
디지털인문학7차시.pptx
디지털인문학7차시.pptx디지털인문학7차시.pptx
디지털인문학7차시.pptxssuser2624f71
 
디지털인문학6차시.pptx
디지털인문학6차시.pptx디지털인문학6차시.pptx
디지털인문학6차시.pptxssuser2624f71
 
디지털인문학 5차시.pptx
디지털인문학 5차시.pptx디지털인문학 5차시.pptx
디지털인문학 5차시.pptxssuser2624f71
 
디지털인문학4차시.pptx
디지털인문학4차시.pptx디지털인문학4차시.pptx
디지털인문학4차시.pptxssuser2624f71
 
디지털인문학3차시.pptx
디지털인문학3차시.pptx디지털인문학3차시.pptx
디지털인문학3차시.pptxssuser2624f71
 
디지털인문학2차시.pptx
디지털인문학2차시.pptx디지털인문학2차시.pptx
디지털인문학2차시.pptxssuser2624f71
 
디지털인문학1차시.pptx
디지털인문학1차시.pptx디지털인문학1차시.pptx
디지털인문학1차시.pptxssuser2624f71
 

More from ssuser2624f71 (20)

240219_RNN, LSTM code.pptxdddddddddddddddd
240219_RNN, LSTM code.pptxdddddddddddddddd240219_RNN, LSTM code.pptxdddddddddddddddd
240219_RNN, LSTM code.pptxdddddddddddddddd
 
Sparse Graph Attention Networks 2021.pptx
Sparse Graph Attention Networks 2021.pptxSparse Graph Attention Networks 2021.pptx
Sparse Graph Attention Networks 2021.pptx
 
인공지능 로봇 윤리_1229_9차시.pptx
인공지능 로봇 윤리_1229_9차시.pptx인공지능 로봇 윤리_1229_9차시.pptx
인공지능 로봇 윤리_1229_9차시.pptx
 
인공지능 로봇 윤리_1228_8차시.pptx
인공지능 로봇 윤리_1228_8차시.pptx인공지능 로봇 윤리_1228_8차시.pptx
인공지능 로봇 윤리_1228_8차시.pptx
 
인공지능 로봇 윤리_1227_7차시.pptx
인공지능 로봇 윤리_1227_7차시.pptx인공지능 로봇 윤리_1227_7차시.pptx
인공지능 로봇 윤리_1227_7차시.pptx
 
인공지능 로봇 윤리_1226_6차시.pptx
인공지능 로봇 윤리_1226_6차시.pptx인공지능 로봇 윤리_1226_6차시.pptx
인공지능 로봇 윤리_1226_6차시.pptx
 
인공지능 로봇 윤리_1222_5차시.pptx
인공지능 로봇 윤리_1222_5차시.pptx인공지능 로봇 윤리_1222_5차시.pptx
인공지능 로봇 윤리_1222_5차시.pptx
 
인공지능 로봇 윤리_1221_4차시.pptx
인공지능 로봇 윤리_1221_4차시.pptx인공지능 로봇 윤리_1221_4차시.pptx
인공지능 로봇 윤리_1221_4차시.pptx
 
인공지능 로봇 윤리_1220_3차시.pptx
인공지능 로봇 윤리_1220_3차시.pptx인공지능 로봇 윤리_1220_3차시.pptx
인공지능 로봇 윤리_1220_3차시.pptx
 
인공지능 로봇 윤리_1219_2차시.pptx
인공지능 로봇 윤리_1219_2차시.pptx인공지능 로봇 윤리_1219_2차시.pptx
인공지능 로봇 윤리_1219_2차시.pptx
 
인공지능 로봇 윤리_1218_1차시.pptx
인공지능 로봇 윤리_1218_1차시.pptx인공지능 로봇 윤리_1218_1차시.pptx
인공지능 로봇 윤리_1218_1차시.pptx
 
디지털인문학9차시.pptx
디지털인문학9차시.pptx디지털인문학9차시.pptx
디지털인문학9차시.pptx
 
디지털인문학8차시.pptx
디지털인문학8차시.pptx디지털인문학8차시.pptx
디지털인문학8차시.pptx
 
디지털인문학7차시.pptx
디지털인문학7차시.pptx디지털인문학7차시.pptx
디지털인문학7차시.pptx
 
디지털인문학6차시.pptx
디지털인문학6차시.pptx디지털인문학6차시.pptx
디지털인문학6차시.pptx
 
디지털인문학 5차시.pptx
디지털인문학 5차시.pptx디지털인문학 5차시.pptx
디지털인문학 5차시.pptx
 
디지털인문학4차시.pptx
디지털인문학4차시.pptx디지털인문학4차시.pptx
디지털인문학4차시.pptx
 
디지털인문학3차시.pptx
디지털인문학3차시.pptx디지털인문학3차시.pptx
디지털인문학3차시.pptx
 
디지털인문학2차시.pptx
디지털인문학2차시.pptx디지털인문학2차시.pptx
디지털인문학2차시.pptx
 
디지털인문학1차시.pptx
디지털인문학1차시.pptx디지털인문학1차시.pptx
디지털인문학1차시.pptx
 

Recently uploaded

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Recently uploaded (20)

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

Vector and Matrix operationsVector and Matrix operations

  • 1. Jinho Seo Network Science Lab Dept. of CSIE The Catholic University of Korea E-mail: kkinho04@catholic.ac.kr
  • 2. 1  Vectors and Matrices and Tensors  Tensors  Sample and Feature  The operation of vectors and matrices  Application  Discussion
  • 3. 2 1. Vectors and Matrices and tensors A vector is a quantity with size and direction. It is a shape listed with numbers and represented by a one- dimensional array or list in Python. A matrix, on the other hand, is a structure that has two-dimensional shapes with rows and columns. In Python, we represent it as a two-dimensional array. The horizontal lines are called rows and the vertical lines are called columns. From three dimensions onwards, we call them tensors. Tensor is represented by more than three-dimensional array in Python.
  • 4. 3 2. Tensors Artificial neural networks solve complex models of operations primarily through matrix operations. However, matrix operations here do not just mean matrix operations through two-dimensional arrays. As the input and output of machine learning become more complex, an understanding of three- dimensional tensors is essential. For example, in RNN, one of the artificial neural network models, it is not easy to understand without understanding the concept of three-dimensional tensors. Let me explain the tensor using Numpy.
  • 5. 4 2. Tensors Scalar refers to data consisting of one real value. This is called a zero-dimensional tensor. Dimension is called a zero-dimensional tensor in English. 1) Zero-dimensional tensor (Scalar) Note the value that comes out when ndim of Numpy is output. We call the value that comes out when ndim is output the number of axes or the dimension of the tensor. Be sure to remember these two terms.
  • 6. 5 2. Tensors The arrangement of numbers is called a vector. A vector is a one-dimensional tensor. It should be noted that the term dimension is also used in vectors, but the dimension of the vector and the dimension of the tensor are different concepts. The example below is a four-dimensional vector, but it is a one-dimensional tensor. It is also called a 1D tensor. 2) 1D Tensor (Vector) It can be confused by the definition of the dimension of the vector and the dimension of the tensor, where the dimension in the vector means the number of elements placed on one axis, and the dimension in the tensor means the number of axes.
  • 7. 6 2. Tensors An array of vectors in which rows and columns exist, i.e., a matrix is called a two-dimensional tensor, also called a 2D tensor. 3) 2D Tensor (Matrix) Let's also summarize the shape of the tensor. The size of the tensor is a value that indicates how many dimensions there are along each axis. It is useful for model design if you can immediately think of the size of the tensor. It can be difficult at first, but it is also a way to expand it sequentially. In the above case, there are three large data, and each large data can be thought of as four small data.
  • 8. 7 3. Sample and Feature When the input matrix of the training data is X, the definitions of Sample and Feature are as follows. In machine learning, when data is divided into countable units, each is called a sample, and each independent variable x for predicting dependent variable y is called a property.
  • 9. 8 4. The operation of vectors and matrices Addition and subtraction of vectors and matrices Two vectors or matrices of the same size can be added and subtracted. In this case, you can perform operations between elements in the same location. These operations are called element-wise operations. Let's say that there are two vectors, A and B.
  • 10. 9 4. The operation of vectors and matrices Addition and subtraction of vectors and matrices The addition and subtraction of the two vectors A and B are shown below.
  • 11. 10 4. The operation of vectors and matrices Addition and subtraction of vectors and matrices The same applies to matrices. Assuming that there are two matrices, A and B, the addition and subtraction of the matrices A and B are as follows.
  • 13. 12 5. Todo • 3D tensors (multi-dimensional arrangements) • Higher tensors • Multiplication of the inner part of the vector with the matrix • Understanding as multiple linear regression matrix operations • Determining the size of weights and deflection matrices List There's a lot I haven't understood yet. I'll try to study more.
  • 14. 13 7. Q / A Q / A