report outline, added state transitions to constants
This commit is contained in:
parent
18c30e55e9
commit
cd3be666aa
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -1,3 +1,5 @@
|
|||||||
{
|
{
|
||||||
"python.pythonPath": "venv/bin/python"
|
"python.pythonPath": "venv/bin/python",
|
||||||
|
"python.linting.pylintEnabled": true,
|
||||||
|
"python.linting.enabled": true
|
||||||
}
|
}
|
11
constants.py
11
constants.py
@ -1,7 +1,8 @@
|
|||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True) # implements constructor among other boilerplate
|
||||||
class State:
|
class State:
|
||||||
mean: float
|
mean: float
|
||||||
variance: float
|
variance: float
|
||||||
@ -14,3 +15,11 @@ state1 = State(1, 1.44, 0.44, 0.02)
|
|||||||
state2 = State(4, 0.49, 0.56, 0.03)
|
state2 = State(4, 0.49, 0.56, 0.03)
|
||||||
|
|
||||||
observations = [3.8, 4.2, 3.4, -0.4, 1.9, 3.0, 1.6, 1.9, 5.0]
|
observations = [3.8, 4.2, 3.4, -0.4, 1.9, 3.0, 1.6, 1.9, 5.0]
|
||||||
|
|
||||||
|
a_matrix = np.array([[0.92, 0.06],
|
||||||
|
[0.04, 0.93]])
|
||||||
|
|
||||||
|
state_transition = np.array([[0, 0.44, 0.56, 0],
|
||||||
|
[0, 0.92, 0.06, 0.02],
|
||||||
|
[0, 0.04, 0.93, 0.03],
|
||||||
|
[0, 0, 0, 0]])
|
||||||
|
@ -9,6 +9,12 @@
|
|||||||
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
|
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
|
||||||
\let\endchangemargin=\endlist
|
\let\endchangemargin=\endlist
|
||||||
\pagenumbering{roman}
|
\pagenumbering{roman}
|
||||||
|
|
||||||
|
\usepackage{color}
|
||||||
|
|
||||||
|
\definecolor{commentgreen}{RGB}{0,94,11}
|
||||||
|
\definecolor{darkblue}{rgb}{0,0,0.75}
|
||||||
|
\definecolor{darkred}{rgb}{0.6,0,0}
|
||||||
\end_preamble
|
\end_preamble
|
||||||
\use_default_options true
|
\use_default_options true
|
||||||
\begin_modules
|
\begin_modules
|
||||||
@ -39,13 +45,13 @@ figs-within-sections
|
|||||||
\output_sync 0
|
\output_sync 0
|
||||||
\bibtex_command biber
|
\bibtex_command biber
|
||||||
\index_command default
|
\index_command default
|
||||||
\paperfontsize 11
|
\paperfontsize default
|
||||||
\spacing onehalf
|
\spacing onehalf
|
||||||
\use_hyperref true
|
\use_hyperref true
|
||||||
\pdf_title "Multi-Source Holoportation with LiveScan3D"
|
\pdf_title "Hidden Markov Models"
|
||||||
\pdf_author "Andy Pack"
|
\pdf_author "Andy Pack"
|
||||||
\pdf_subject "Undergraduate dissertation outlining developments made to extend the LiveScan3D suite to support streaming multiple scenes simultaneously"
|
\pdf_subject "EEEM030"
|
||||||
\pdf_keywords "LiveScan3D, Kinect, Holoportation, AR"
|
\pdf_keywords "EEEM030"
|
||||||
\pdf_bookmarks true
|
\pdf_bookmarks true
|
||||||
\pdf_bookmarksnumbered false
|
\pdf_bookmarksnumbered false
|
||||||
\pdf_bookmarksopen false
|
\pdf_bookmarksopen false
|
||||||
@ -113,13 +119,32 @@ figs-within-sections
|
|||||||
\begin_layout Title
|
\begin_layout Title
|
||||||
|
|
||||||
\size giant
|
\size giant
|
||||||
Speech Recognition: Hidden Markov Models
|
Hidden Markov Model Analysis
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Author
|
\begin_layout Author
|
||||||
Andy Pack
|
Andy Pack
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
\begin_inset VSpace 15pheight%
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
\align center
|
||||||
|
\begin_inset Graphics
|
||||||
|
filename ../../../matlab/lpss/report/surrey.png
|
||||||
|
lyxscale 15
|
||||||
|
width 40col%
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
\begin_inset VSpace vfill
|
\begin_inset VSpace vfill
|
||||||
\end_inset
|
\end_inset
|
||||||
@ -130,6 +155,10 @@ Andy Pack
|
|||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
\noindent
|
\noindent
|
||||||
\align center
|
\align center
|
||||||
|
EEEM030
|
||||||
|
\begin_inset Newline newline
|
||||||
|
\end_inset
|
||||||
|
|
||||||
January 2021
|
January 2021
|
||||||
\size large
|
\size large
|
||||||
|
|
||||||
@ -154,6 +183,10 @@ University of Surrey
|
|||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Abstract
|
||||||
|
abstract
|
||||||
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
\begin_inset CommandInset toc
|
\begin_inset CommandInset toc
|
||||||
LatexCommand tableofcontents
|
LatexCommand tableofcontents
|
||||||
@ -164,7 +197,7 @@ LatexCommand tableofcontents
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
\begin_inset Newpage newpage
|
\begin_inset Newpage pagebreak
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
@ -226,8 +259,24 @@ setcounter{page}{1}
|
|||||||
Introduction
|
Introduction
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Subsection
|
||||||
Intro
|
Brief
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Section
|
||||||
|
Implementation
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Section
|
||||||
|
Results
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Section
|
||||||
|
Discussion
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Section
|
||||||
|
Conclusion
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
@ -258,7 +307,22 @@ options "bibtotoc"
|
|||||||
|
|
||||||
\begin_layout Section
|
\begin_layout Section
|
||||||
\start_of_appendix
|
\start_of_appendix
|
||||||
appendix
|
Intermediate Results
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Section
|
||||||
|
Source Code
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
\begin_inset CommandInset include
|
||||||
|
LatexCommand lstinputlisting
|
||||||
|
filename "../constants.py"
|
||||||
|
lstparams "language=Python,breaklines=true,frame=tb,otherkeywords={self},emph={State},emphstyle={\\ttb\\color{darkred}},basicstyle={\\ttfamily},commentstyle={\\color{commentgreen}\\itshape},keywordstyle={\\color{darkblue}},emphstyle={\\color{red}},stringstyle={\\color{red}},caption={Constants file defining state transition probabilities and PDFs},label={constants-listing}"
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\end_body
|
\end_body
|
||||||
|
BIN
report/surrey.png
Normal file
BIN
report/surrey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
@ -1,4 +1,5 @@
|
|||||||
argon2-cffi==20.1.0
|
argon2-cffi==20.1.0
|
||||||
|
astroid==2.4.2
|
||||||
async-generator==1.10
|
async-generator==1.10
|
||||||
attrs==20.3.0
|
attrs==20.3.0
|
||||||
backcall==0.2.0
|
backcall==0.2.0
|
||||||
@ -14,6 +15,7 @@ idna==2.10
|
|||||||
ipykernel==5.3.4
|
ipykernel==5.3.4
|
||||||
ipython==7.19.0
|
ipython==7.19.0
|
||||||
ipython-genutils==0.2.0
|
ipython-genutils==0.2.0
|
||||||
|
isort==5.6.4
|
||||||
jedi==0.17.2
|
jedi==0.17.2
|
||||||
Jinja2==2.11.2
|
Jinja2==2.11.2
|
||||||
json5==0.9.5
|
json5==0.9.5
|
||||||
@ -24,8 +26,10 @@ jupyterlab==2.2.9
|
|||||||
jupyterlab-pygments==0.1.2
|
jupyterlab-pygments==0.1.2
|
||||||
jupyterlab-server==1.2.0
|
jupyterlab-server==1.2.0
|
||||||
kiwisolver==1.3.1
|
kiwisolver==1.3.1
|
||||||
|
lazy-object-proxy==1.4.3
|
||||||
MarkupSafe==1.1.1
|
MarkupSafe==1.1.1
|
||||||
matplotlib==3.3.3
|
matplotlib==3.3.3
|
||||||
|
mccabe==0.6.1
|
||||||
mistune==0.8.4
|
mistune==0.8.4
|
||||||
nbclient==0.5.1
|
nbclient==0.5.1
|
||||||
nbconvert==6.0.7
|
nbconvert==6.0.7
|
||||||
@ -44,6 +48,7 @@ prompt-toolkit==3.0.8
|
|||||||
ptyprocess==0.6.0
|
ptyprocess==0.6.0
|
||||||
pycparser==2.20
|
pycparser==2.20
|
||||||
Pygments==2.7.3
|
Pygments==2.7.3
|
||||||
|
pylint==2.6.0
|
||||||
pyparsing==2.4.7
|
pyparsing==2.4.7
|
||||||
pyrsistent==0.17.3
|
pyrsistent==0.17.3
|
||||||
python-dateutil==2.8.1
|
python-dateutil==2.8.1
|
||||||
@ -53,8 +58,10 @@ Send2Trash==1.5.0
|
|||||||
six==1.15.0
|
six==1.15.0
|
||||||
terminado==0.9.1
|
terminado==0.9.1
|
||||||
testpath==0.4.4
|
testpath==0.4.4
|
||||||
|
toml==0.10.2
|
||||||
tornado==6.1
|
tornado==6.1
|
||||||
traitlets==5.0.5
|
traitlets==5.0.5
|
||||||
urllib3==1.26.2
|
urllib3==1.26.2
|
||||||
wcwidth==0.2.5
|
wcwidth==0.2.5
|
||||||
webencodings==0.5.1
|
webencodings==0.5.1
|
||||||
|
wrapt==1.12.1
|
||||||
|
@ -12,29 +12,30 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 3,
|
"execution_count": 2,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"output_type": "execute_result",
|
"output_type": "execute_result",
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"1"
|
"0.92"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"execution_count": 3
|
"execution_count": 2
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"from constants import *\n",
|
"from constants import *\n",
|
||||||
"\n",
|
"\n",
|
||||||
"state1.mean"
|
"state1.mean\n",
|
||||||
|
"state_transition[1,1]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 6,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": []
|
"source": []
|
||||||
@ -56,7 +57,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.8.5-final"
|
"version": "3.8.6-final"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user