Video where this script is discussed: https://youtu.be/Lsf4eAGvODs
Consider a non-strictly ordered space
Video where this script is discussed: https://youtu.be/Lsf4eAGvODs
Consider a non-strictly ordered space
| #!/usr/bin/env python3 | |
| """ | |
| Minimal Wikipedia semantic search wrapper for web integration. | |
| Install hints (CPU): | |
| - python, duh | |
| - pip install -U sentence-transformers faiss-cpu numpy | |
| Expected index artifacts (see zip): | |
| - path/to/pages_embeddings.index (main data item, 200 MB) |
Script for the video
Notes:
\mathcal, since it doesn't render in gist_\# became _HThe relevant content starts at page 17 in the script. The chapter ends on page 25. Note that the exercises are different ones from the listing in the script.
==== Exercise's context ====
We consider the general minimization problem
| """ | |
| Code and prompt used in the video | |
| https://youtu.be/xcE_0azawvM | |
| """ | |
| """You'll get two tasks | |
| First part: | |
| Consider a joint distirbution of two random variables X_k with k in {a, b} (i.e. two random variables X_a and X_b), | |
| over a finite outcome sets of size n_a and n_b. | |
| Explain what the marginal distributions are. |
""" Script to the video at https://youtu.be/8w4jHN1LsnY """
===== Moving quantile series =====
=== Preliminary - Exponential distribution example ===
Density:
| """ | |
| Proof prsented in the video | |
| https://youtu.be/Ydyhe7KdRsk | |
| """ | |
| Reminder: | |
| === Theorem 1, the geometric sum and series formulae === | |
| $\sum_{k=0}^n a^k = \dfrac{a^{n+1}-1}{a-1}$ |
| """ | |
| Code for the video at | |
| https://youtu.be/CquQe7Y05VA | |
| This script will be easy to generalize, also. | |
| """ | |
| from datetime import datetime | |
| import imageio.v2 as imageio | |
| from io import BytesIO |