A mudslide caused by a storm struck a village, hitting and damaging homes and injuring several people. Residents said the mudslide caused serious damage to buildings and injuries to those who were hit, with at least one person reported to have died from their injuries.
Top Notch Fundamentals (student book) ThiemPTIT HCM
油
The document discusses the history and development of artificial intelligence over the past several decades. It describes early work in the field starting in the 1950s and progress in areas such as problem solving, game playing, and machine learning. Recent advances in deep learning now allow AI systems to perform complex tasks like visual perception and language translation.
This document contains a summary of an individual named Nguyen who works as an accountant and insurance agent in Vietnam. It provides their full name, occupation, and address in Bac Tu Liem District, Hanoi. It also mentions they have a relative in the UAE. The document contains basic contact information about this individual.
El documento habla sobre la importancia de la privacidad y la seguridad en l鱈nea en la era digital. Explica que los usuarios deben tomar medidas para proteger su informaci坦n personal, como usar contrase単as seguras y software antivirus actualizado. Tambi辿n enfatiza que las empresas deben implementar pol鱈ticas claras sobre c坦mo protegen los datos de los clientes.
This MATLAB code simulates the channel capacity of a MIMO (Multiple Input Multiple Output) Rayleigh fading channel with varying numbers of transmit and receive antennas. It generates random channel matrices with Rayleigh distributed elements, performs SVD decomposition, allocates power using waterfilling algorithm, and calculates channel capacity over different SNR values. The code plots the average channel capacity versus SNR for each configuration, and the PDF of elements in the diagonal matrix obtained from SVD decomposition.
2. Python
NGUYEN
Hong Thinh
2/16
S董 l動 c v Python
動 c t o ra nh ng nm 90 b i
Guido van Rossum
L m t ph n m m mi n ph鱈,
ph叩t tri n b i c c ng ng
L ng担n ng h動 ng i t動 ng,
b c cao, module ho叩.
T c ph c p v m c ph
bi n nh t hi n nay
4. Python
NGUYEN
Hong Thinh
4/16
Python l ng担n ng module ho叩
1-C坦 r t nh u th動 vi n (th動 vi n chu n, th動 vi n ph叩t
tri n b i c叩 nh但n, t ch c ho c c c ng ng)
2-C叩ch s d ng 董n gi n
1 import numpy
2 import os
3 import dlib
4 import tensoflow
5
5. Python
NGUYEN
Hong Thinh
4/16
Python l ng担n ng module ho叩
1-C坦 r t nh u th動 vi n (th動 vi n chu n, th動 vi n ph叩t
tri n b i c叩 nh但n, t ch c ho c c c ng ng)
2-C叩ch s d ng 董n gi n
1 import numpy
2 import os
3 import dlib
4 import tensoflow
5
3-T x但y d ng th動 vi棚n cho ri棚ng m狸nh:
1 import my_lib
2
6. Python
NGUYEN
Hong Thinh
5/16
Ci t Python
C坦 th ci t Python t ng ph n v c叩c th動 vi n ri棚ng r
s d ng pip tr棚n CMD/terminal:
Link download: https://www.python.org/downloads
Ci t full-package s d ng anaconda:
Link download:https://www.anaconda.com/distribution
7. Python
NGUYEN
Hong Thinh
6/16
Tr狸nh so n th o v bi棚n d ch
Python kh担ng c n m t ch動董ng tr狸nh so n th o ri棚ng
M t s tr狸nh so n th o chuy棚n d ng: Visual Studio
Thonny, PyCharm, Spider..
G n 但y: Jupyter Notebook, Jupyter Lab
D h c, d debug, d hi n th h狸nh v , b ng bi u => s
d ng Jupyter cho kho叩 h c
Kh i ng Jupyter, tr棚n CMD/terminal d湛ng l nh:
jupyter notebook
11. Python
NGUYEN
Hong Thinh
10/16
M t s ch炭 箪 v i Jupyter
C叩c cell u h tr s d ng Tab auto complete (g i 箪
l nh, bi n ..)
Khi mu n th c hi n 1 l nh tr棚n cmd /terminal tr棚n cell
h達y s d ng ph鱈a tr動 c l nh c n th c hi n
1 !pip install keras
2
C叩c o n cell ch y kh担ng theo th t tr棚n/d動 i c a Cell,
m theo vi c ta ch n cell v k鱈ch run. Th t 坦 動 c
l動u l i ID-number c a Cell trong [ ]
12. Python
NGUYEN
Hong Thinh
11/16
Python library
s d ng th動 vi n ta d湛ng l nh import
1 import numpy as
2
C坦 th s d ng m t ph n c a th動 vi n:
1 from scikit -learn import svm
2
C叩c th動 vi n ph bi n c a Python:
numpy, scipy, os
matplotlib, seaborn
time,date
scikitlearn,tensorflow, keras
kivy, tkinter
1 !pip install keras
2
Debug: Khi s d ng m t th動 vi n ch動a 動 c ci t
c湛ng v i Python, s c坦 l i ModuleNotFoundError: No
module named keras
13. Python
NGUYEN
Hong Thinh
12/16
Python Statement
L m t l nh m ch動董ng tr狸nh c坦 th hi u v ch y
Th動 ng c叩c l nh s n m tr棚n 1 d嘆ng. N u ph i vi t 1
l nh tr棚n nhi u d嘆ng, d湛ng
1 "hello."+
2 "How are you"
3
Python c滴ng cho ph辿p vi t nhi u l nh tr棚n 1 d嘆ng, s
d ng d u ; ngn c叩ch c叩c l nh:
1 a=1;b=2;c=3
2
14. Python
NGUYEN
Hong Thinh
13/16
Python : Indentation
Python s d ng nh d ng tab (th t vo 1 tab) cho c叩c
level gi a c叩c o n l nh kh叩c nhau
1 tab = 4 white-spaces = 1 level. Tuy nhi棚n ch n棚n s
d ng Tab ho c white-spaces kh担ng s d ng l n l n d
g但y l i.
Debug: C叩c white-space v tab c c k畛 quan tr ng khi
vi t code python. L i th動 ng g p khi sai nh d ng
tab/white-space: unexpected indent
1 a=1
2 b=2
3
4 ^
5 IndentationError : unexpected indent
6
7
15. Python
NGUYEN
Hong Thinh
14/16
Python: Comment
M i ng担n ng l p tr狸nh v m i ch動董ng tr狸nh u c n
comment gi i th鱈ch l nh/o n l nh no d湛ng lm g狸.
C叩c l nh quan tr ng, c叩c o n l nh ph i 動 c vi t ch炭
gi i.
th c hi n comment, s d ng d u #. Ph鱈a sau d u #
ch動董ng tr狸nh s hi u l comment v kh担ng bi棚n d ch.
1
2 # Write the wellcome:
3 s=input("What is your name")
4 print("hello",s)
5
6
Ri棚ng tr棚n jupyter: c坦 th ch n 1 cell v ki u mardown
vi t comment.
16. Python
NGUYEN
Hong Thinh
15/16
Python script v function
Script l m t o n l nh, th c hi n 1 nhi m v no y,
th動 ng 動 c save d動 i d ng .py. N u o n l nh ny ch
r探 input/ouput ta c坦 hm con (function). M t script c坦
th g m nhi u functions
1 def say_Hello ():
2 s=input("What is your name")
3 print("Hello", s)
4 return
5
C叩c o n l nh c坦 th ch y c l p ho c 動 c g i t
ch動董ng tr狸nh kh叩c, project kh叩c (import. . . .). Trong file
script, v tr鱈 c叩c hm con c坦 th u hay cu i c a main
program. Trong jupyter, l動u 箪 ph i run Cell c坦 khai b叩o
ch動董ng tr狸nh con tr動 c khi g i.
Run 1 ch動董ng tr狸nh .py: tr棚n c a s CMD/terminal:
1 python <filename.py >
2
17. Python
NGUYEN
Hong Thinh
16/16
Ch炭 箪 khi h c:
S d ng Juyter nh動 gi y nh叩p, th m i th v r炭t ra
k t lu n
V i m i l nh 炭ng, h達y th s a n坦 thnh sai v ki m tra
xem n坦 b叩o l i th no
1 a=1; 1=b; #??
2
C g ng vi t code ng n nh t, 董n gi n nh t c坦 th
1 a,b,c=1,2,3; # a=1; b=2; c=3
2
Debug code: Nguy棚n l箪 chia 担i. t狸m l i c a 1 ch動董ng
tr狸nh, h達y chia 担i r i test tr棚n t ng n a. L p l i qu叩
tr狸nh, th狸 ch c n test kho ng 5-6 b動 c s ph叩t hi n c坦
v湛ng l i x y ra.