This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ eventgroup git:(main) ✗ uv run python matcher.py data/answers.csv 4 | |
Person 1 is more similar to... | |
- Person 5, with a similarity of 0.8963876720217021 | |
- Person 3, with a similarity of 0.8905567720281826 | |
- Person 4, with a similarity of 0.8882988656868803 | |
- Person 6, with a similarity of 0.8535375789847595 | |
- Person 2, with a similarity of 0.8311989560377757 | |
- Person 9, with a similarity of 0.8286727973358272 | |
- Person 8, with a similarity of 0.8182674031453949 | |
- Person 7, with a similarity of 0.8158040760765586 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given a directory path in a file system, implement a library that is able to recursively find the file with the same content. | |
As long as the contents are the same, group them. The filename can be different | |
If a file has unique content that no other file has, exclude it. | |
Instruction: | |
- Implement `FileNode` class that can represent the example above | |
- Build test cases based on example, and run the code | |
- Group the files that have same content in a two dimensional array | |
Example: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import torch | |
from snowflake.ml.registry import Registry | |
from snowflake.snowpark import Session | |
DEVICE = "cuda" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
General guidelines for LandingLens client: | |
- Types should match what users see in the Web UI, and should be defined at `landingai.types` | |
- Each entity represented in the UI should have a unique identifier, preferrably a single attribute | |
- If the entity has a compound ID that references another entity (snapshot, for example, has its | |
own ID and the project ID), we should allow users to refer to the outer entity ID by its ID *OR* | |
by the entity itself. For example: | |
`Snapshot(id=111, project_id=222)` or `Snapshot(id=111, project=Project(id=222))` | |
- Methods names should preferrably follow this naming convertion: | |
- get_xxxx(identifier) -> Something: Get a single instance of something that exists in the UI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ast | |
import time | |
import torch | |
import numpy as np | |
from torchvision import models, transforms | |
import cv2 | |
from PIL import Image | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swipe: | |
2: | |
left: | |
command: 'xdotool key Alt+Left' | |
right: | |
command: 'xdotool key Alt+Right' | |
3: | |
left: | |
command: 'xdotool key super+Shift+Right' | |
right: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
app: | |
build: app | |
command: python manage.py runserver 0:8000 | |
environment: | |
- DEBUG=true | |
ports: | |
- 8003:8000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app: | |
build: app | |
command: python manage.py runserver 0:8000 | |
volumes: | |
- ./app:/usr/src/app | |
environment: | |
- DEBUG=true | |
ports: | |
- 8003:8000 | |
links: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
app: | |
build: app | |
command: python manage.py runserver 0:8000 | |
volumes: | |
- ./app:/usr/src/app | |
environment: | |
- DEBUG=true |
NewerOlder