A fun love-hate prediction algorithm
Project description
LoveHateAlgorithm
Which person do you want to be around with right now?
How to run the package
- import pprint
- pprint("Love Hate Algorithm Started")
- person_image = r"C:\Users\gprak\Downloads\Github Repos\archive\train\disgusted\im7.png"
- p = r"C:\Users\gprak\Downloads\Github Repos\archive\train\angry"
- list_of_other_people_images = [os.path.join(p,name) for name in os.listdir(p)]
- algorithm_type = "simple"
- people_less_likely_to_have_conflicts, people_more_likely_to_have_conflicts, app = get_output_of_love_hate_algorithm(person_image,list_of_other_people_images,algorithm_type)
- pprint("People less likely to have conflicts with the person in the image:")
- pprint(people_less_likely_to_have_conflicts)
- pprint("People more likely to have conflicts with the person in the image:")
- pprint(people_more_likely_to_have_conflicts)
- run_dash_app_for_persons_with_less_and_more_likely_to_have_conflicts(app)
for a mixture of emotions
- import pprint
- pprint("Love Hate Algorithm Started")
- person_image = r"C:\Users\gprak\Downloads\Github Repos\archive\train\disgusted\im7.png"
- p = r"C:\Users\gprak\Downloads\Github Repos\archive\train\angry"
- list_of_other_people_images = [os.path.join(p,name) for name in os.listdir(p)]
- algorithm_type = "more_real"
- people_less_likely_to_have_conflicts, people_more_likely_to_have_conflicts, app = get_output_of_love_hate_algorithm(person_image,list_of_other_people_images,algorithm_type)
- pprint("People less likely to have conflicts with the person in the image:")
- pprint(people_less_likely_to_have_conflicts)
- pprint("People more likely to have conflicts with the person in the image:")
- pprint(people_more_likely_to_have_conflicts)
- run_dash_app_for_persons_with_less_and_more_likely_to_have_conflicts(app)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
your_best_friend-0.3.1.tar.gz
(14.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file your_best_friend-0.3.1.tar.gz.
File metadata
- Download URL: your_best_friend-0.3.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b129af53f03a3b34fae041a506001357c0a105f42e701fc923b0806e0bc85c82
|
|
| MD5 |
e4c34e4bc513b9b7bdbdcd58cb5b1242
|
|
| BLAKE2b-256 |
d2c42c76e6ef6a6a825284a617228fb3e4f3cb057550f1bfd140c5ff6e8673d9
|
File details
Details for the file your_best_friend-0.3.1-py3-none-any.whl.
File metadata
- Download URL: your_best_friend-0.3.1-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73dfa7e9ed0c3217a24122841aec752d6d4c8a9d00bb061d4859132c6853e9d8
|
|
| MD5 |
36ed0cbc06f5b0f0bfd8379e61a434fa
|
|
| BLAKE2b-256 |
a496c72bf0426349c6e01383a73e380e40a1875afc2592ce909cb12d40fbefdd
|