r/learnpython • u/EnvironmentalSong567 • Jan 13 '23
Is it possible to program an artificial girlfriend?
This is serious, I am very lonely.
15
u/DisagreeableMale @decorator Jan 13 '23
Read the story of Pygmalion. Go outside, mate, and meet people even if they just want to talk about Python with you.
1
u/dparks71 Jan 14 '23
It's legitimately hard to tell what's real vs. what's very intricate subliminal advertising anymore... There's an AI pip package with that name.
1
u/Particular-Watch-779 Jan 14 '23
Actually, don't read that story. Pygmalion is an incel creep, who - at first glance - gets rewarded for his simpism.
The better explanation for his story: he drifts into insanity, the further the poem progresses. There is literally no better way to see this, regarding my female students.
4
u/synthphreak Jan 14 '23 edited Jan 14 '23
from dataclasses import dataclass
from datetime import datetime
from random import random
@dataclass
class Girlfriend:
name: str
birthday: datetime
def __post_init__(self):
self._bone_probability = random()
def bone(self):
today = datetime.today().strftime('%A')
if self._bone_probability > 0.9:
print('Yeah baby!')
self._bone_probability /= 2
elif today == 'Tuesday':
print('I guess.')
self._bone_probability /= 2
else:
print("I'm not in the mood.")
def marry(self, rejection_threshold=0.1):
desire = random()
if desire > rejection_threshold:
print('I do.')
else:
if desire > rejection_threshold ** 2:
print("It's not you, it's me.")
else:
print("It's definitely you.")Okay I’m out of ideas. Guess I’m not a great boyfriend myself.
I did want to do something like if you remember her birthday, _bone_probability increments by 0.1. But then we need a Boyfriend class, and once I find myself coding that up, I’ll be in need of my own Python girlfriend.
3
2
u/Mdna2 Jan 13 '23
I would say you can, problem is "she" might get way more line you based on the training data, so not exactly a real girlfriend
2
2
u/AnarchoDesign Jan 14 '23
I feel that, buddy. The pandemics took the last of my youth and now I feel like I'll stay single forever. And python doesn't seem like a solution...
2
Jan 13 '23
Not necessary. There’s girls just as shy/lonely as you are. Here’s my best advice. Say hello to strangers, tell them to have a nice day etc.. you’d be surprised how many genuine conversations you can spark up! Good luck :)
1
1
u/barrycarter OK to DM me questions/projects, no promises, not always here Jan 13 '23
This isn't really a Python-specific question, and the answer depends on how good of an artificial girlfriend you want, but you might want to look into openai.com's latest chatbots. With a little semantic fiddling, you can (or could) convince it to be an artificial girlfriend, at least in terms of text. Other AI sites might let you create images of "her", potential backstory, etc.
You probably expect me to add a paragraph here explaining how much more rewarding and fulfilling it is to find a real life girlfriend and form a relation that grows and matures, but it's not. And that's not a diss on women either. I'm not convinced human beings are monogamous or even that men and women should spend so much time together. It's possible that, in ancient times, men mostly hung out with men and women mostly hung out with women, but, whatever the arrangement was then, male/female (or other romantic relationship) take a lot of work, and it's often not worth it.
DISCLAIMER: this comment does not necessarily reflect my actual views
10
u/debian_miner Jan 13 '23
It's possible that, in ancient times, men mostly hung out with men and women mostly hung out with women
It's also possible this is something you just made up and used it to support your "not actual views".
3
1
0
2
u/Beoekheer Jan 13 '23
Your down bad, bro. I will pray for you.