A Pen by Shubhanshu Mishra on CodePen.
"""Spacy Embedding Transformer for Sklearn pipeline | |
Install spacy and floret | |
```bash | |
pip install spacy floret scikit-learn | |
``` | |
First download the vectors from: | |
```bash |
diff --git a/torchbiggraph/converters/importers.py b/torchbiggraph/converters/importers.py | |
index fa84bc6..765e9fa 100644 | |
--- a/torchbiggraph/converters/importers.py | |
+++ b/torchbiggraph/converters/importers.py | |
@@ -28,6 +28,7 @@ from torchbiggraph.graph_storages import ( | |
RELATION_TYPE_STORAGES, | |
) | |
from torchbiggraph.types import UNPARTITIONED | |
+from tqdm import tqdm | |
# ! pip install celluloid | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from celluloid import Camera | |
def plot_mat(A, evals=None, evecs=None, fig=None, ax=None): | |
if ax is None: | |
fig, ax = plt.subplots(1, 2, figsize=(8, 4)) | |
A = A / np.linalg.norm(A, axis=0, keepdims=True) | |
ax[0].imshow(A) |
from zipfile import ZipFile | |
from pathlib import Path | |
import pandas as pd | |
import numpy as np | |
import json | |
JOB_FILES = list(Path(".").glob("**/job_*.json.zip")) | |
JOB_ID_TO_OUTPUT_PART = { | |
1873084: 12, |
| Large-scale dataset? | Year of release | Name | Reference | URL to ref | URL to data | Access | Price | License
Steps for doing latexdiff
- Download 2 versions from overleaf
- Compile them using the TexStudio. I should create a bbl file.
- Create a new tex file where you replace the bibliography section with the contents of the bbl file.
- Do the same for the other version of the file.
- Check that the new tex file for both version compiles to the same contents of the original tex files.
- Open https://3142.nl/latex-diff/ and paste the contents of the new tex files from both versions in the text boxes.
- Click the box named "Generate LateX document showing differences"
- It will take some time and then create the diff file.
""" | |
# Grid Dist | |
what's a loss function that incorporates spatial distance? | |
e.g. i want... | |
loss(y..., y...) == 0 | |
0 < loss(yt, y1) < loss(yt, y2) | |
loss(yt, y2) == loss(yt, y2.T) | |
Tweet: https://twitter.com/TheShubhanshu/status/1482132766607265796 | |
""" |
NOTE: This is a hack to get the wordle solution
NOTE: Use it only when you are frustrated and just want to see the solution. It will ruin the fun of the game for you.
I am not doing anything fancy. It is just that the solution is always available on the page and I am reading it and firing the keypresses to get answer.
Be reminded that you should not copy JS from strangers on your pages, it can be used to steal your passwords or other sensitive information. You can read the full code used here and more details at: https://gist.github.com/napsternxg/a80021d6aec9d362db8c736bc2f9a888 Learn about internet security from A PROJECT OF THE ELECTRONIC FRONTIER FOUNDATION: SURVEILLANCE SELF-DEFENSE: TIPS, TOOLS AND HOW-TOS FOR SAFER ONLINE COMMUNICATIONS course from https://ssd.eff.org/en