Difference between revisions of "Week 5"
From m1p.org
								
												
				| m (→Resources) | |||
| Line 44: | Line 44: | ||
| ==Resources== | ==Resources== | ||
| + | # Font types and sizes, line width, LaTex [http://www.machinelearning.ru/wiki/index.php?title=JMLDA/Fig examples]  | ||
| + | |||
| + | # Colab variant  | ||
| + |  plt.rcParams['font.family'] = 'DejaVu Serif' | ||
| + |  plt.rcParams['lines.linewidth'] = 2 | ||
| + |  plt.rcParams['xtick.labelsize'] = 12#24 | ||
| + |  plt.rcParams['ytick.labelsize'] = 12#24 | ||
| + |  plt.rcParams['legend.fontsize'] = 12#24 | ||
| + |  plt.rcParams['axes.labelsize'] = 16 | ||
| + |  plt.xlabel('Number of transmitters, N', fontname='DejaVu Serif') | ||
| + |  plt.ylabel('Probability', fontname='DejaVu Serif') | ||
| + |  plt.legend() | ||
| + |  plt.show() | ||
| + | |||
| + | # LaTeX variant | ||
| + |  plt.rcParams.update({ | ||
| + |     "text.usetex": True,            # Use LaTeX for text rendering | ||
| + |     "font.family": "serif",         # Use serif font (default LaTeX font) | ||
| + |     "font.serif": ["Computer Modern"],  # Set specific LaTeX font (optional) | ||
| + |     "axes.labelsize": 14,           # Font size for axis labels | ||
| + |     "axes.titlesize": 16,           # Font size for title | ||
| + |     "legend.fontsize": 12,          # Font size for legend | ||
| + | |||
| + | |||
| * [http://www.machinelearning.ru/wiki/images/a/aa/M1p_lect5.pdf Slides for week 5], variant [http://www.machinelearning.ru/wiki/images/3/38/M1p_lect5_max.pdf plus], [http://www.machinelearning.ru/wiki/images/e/ed/M1p2022lect5_part1.pdf 2022-1], [http://www.machinelearning.ru/wiki/images/1/10/M1p2022lect5_part2.pdf 2022-2], [http://www.machinelearning.ru/wiki/images/5/55/M1p2022lect5_part3.pdf 2022-3]. | * [http://www.machinelearning.ru/wiki/images/a/aa/M1p_lect5.pdf Slides for week 5], variant [http://www.machinelearning.ru/wiki/images/3/38/M1p_lect5_max.pdf plus], [http://www.machinelearning.ru/wiki/images/e/ed/M1p2022lect5_part1.pdf 2022-1], [http://www.machinelearning.ru/wiki/images/1/10/M1p2022lect5_part2.pdf 2022-2], [http://www.machinelearning.ru/wiki/images/5/55/M1p2022lect5_part3.pdf 2022-3]. | ||
| * [https://www.youtube.com/watch?v=6xR0EKMuXmE Video for week 5]. | * [https://www.youtube.com/watch?v=6xR0EKMuXmE Video for week 5]. | ||
| − | |||
| ==References: TikZ and  Beamer== | ==References: TikZ and  Beamer== | ||
Revision as of 14:13, 20 March 2025
The goal of the week is to visualize the principle.
Contents
C: Code of the computational experiment
Organize your code so the computational experiment runs every time with results stored. If your experiment run takes a long time, just cut the data set. Do not use big or sophisticated data. Put your efforts in your main message.
- Set the only main file to run the experiment.
- Decompose the project code, and write functions and modules.
- Gather the experiment parameters in a special-purpose section.
- A text description of the experiment flow helps.
- A generated-by-comments code helps.
- Think about testing, unit-tests help.
 
- Set a procedure of historical version points to return to the previous experiment.
- Commit schedule helps.
 
- Write named plots to a designated folder.
- Write your results to a .tex-file and compile.
 
V: Visualize project
Set the list of plots that will be included in your paper and presentation.
- Make a plot of the source data.
- Goal: put notations to the plot.
 
- List plots to illustrate with.
- Make a plot to show the main message.
O*: One-slide talk
Make a one-slide presentation to introduce the main principle of your work.
- Use the slide template
- Set the third slide with
- a plot or a diagram,
- main keywords or message,
- basic notations, and
- essential terms.
 
- Put the link to the slide in the Result table
- Prepare a talk up to one minute (1'20" max) long.
- See examples in the lecture slides.
Resources
- Font types and sizes, line width, LaTex examples
- Colab variant
plt.rcParams['font.family'] = 'DejaVu Serif'
plt.rcParams['lines.linewidth'] = 2
plt.rcParams['xtick.labelsize'] = 12#24
plt.rcParams['ytick.labelsize'] = 12#24
plt.rcParams['legend.fontsize'] = 12#24
plt.rcParams['axes.labelsize'] = 16
plt.xlabel('Number of transmitters, N', fontname='DejaVu Serif')
plt.ylabel('Probability', fontname='DejaVu Serif')
plt.legend()
plt.show()
- LaTeX variant
plt.rcParams.update({
   "text.usetex": True,            # Use LaTeX for text rendering
   "font.family": "serif",         # Use serif font (default LaTeX font)
   "font.serif": ["Computer Modern"],  # Set specific LaTeX font (optional)
   "axes.labelsize": 14,           # Font size for axis labels
   "axes.titlesize": 16,           # Font size for title
   "legend.fontsize": 12,          # Font size for legend
- Slides for week 5, variant plus, 2022-1, 2022-2, 2022-3.
- Video for week 5.
References: TikZ and Beamer
- The TikZ and PGF Packages: Manual for version 3.1.10, GitHub, by Till Tantau, 2024
- A Beamer Tutorial in Beamer by Charles T. Batts, 2007
- User’s Guide to the Beamer Class, and GitHub by Till Tantau, 2004
- LATEX-beamer Course by Katharina Hoff, 2007