Submitted by Steven_Johnson34 t3_zspu96 in MachineLearning

Hex Application

Since we are heading into the holiday season, I thought it would be interesting to take a look if you could create a model to look at morality with user's Reddit comments. I used Scikit-Learn's Logistic Regression Model for this.

I started by downloading around 750 comments from Social Grep's website. They have pulled Reddit comments from different sets of subreddits. I pulled from their datasets for confession-like subreddits, the irl subreddits, and the dataset subreddit. I classified the comments manually by a set rule of morality. Once they were scored, I trained/tested the Logistic model with those comments.

For the specific user testing, I used PRAW to pull the most recent 50 comments from the username provided in the Hex Application. I ran the trained model and outputted the probability of each comment being nice and took an average of the probabilities and used that value to determine whether the user was naughty or nice. I use a script to email a CSV with all of the tested comments and the final score to the user.

Based on the results that have came through so far, the model is definitely biased towards giving the user a nice decision. I believe that is based on the training data being around 70% nice versus naughty. Does anyone have a way to help the model from being biased like that?

Feel free to try the app out and let me know what you think!

25

Comments

You must log in or register to comment.

shitboots t1_j19bbmw wrote

Santa making meta jokes. It determined with 69% certainty that I've been nice. Nice.

3

Phoneaccount25732 t1_j19v3re wrote

Focal loss is typical for class imbalanced data.

My brain prefers solutions that modify the training objective to resampling based solutions on the grounds of elegance. I'm not sure if that's a good attitude to have or not, if anyone has any thoughts.

3

A1-Delta t1_j1ao5gn wrote

Would be great if you’d just let it show me results in browser. I’m not going to supply my email address no matter how many times you pinky promise it wont end up in a marketer’s hands.

17

Cherubin0 t1_j1cm12j wrote

Nice, one step closer to full Social Credit System.

2

impossiblefork t1_j1cqvnr wrote

We would be crazy to hand you our e-mail addresses. It's a fun idea, but that just isn't happening.

1

Steven_Johnson34 OP t1_j1dv8xk wrote

Completely understand. I knew that could be a concern when I was building it out. Process wise, it was not possible for me to show the results in the browser or else I would have done so based on API capabilities. We are going to try and use this as a jump off point to expand the API to be able to send statuses back on a webhook.

2

Lajamerr_Mittesdine t1_j1fuu1j wrote

It's 2022. Everyone should be having their own email address dumps with their domain name.

For example with Google Domains you can easily spin up 100 email addresses forwarded to your main mailbox no extra charge. Comes with your yearly domain renewal.

I create emails for each service I use.

reddit@mydomain.com , google@mydomain.com , walmart@mydomain.com

I can just create an email called junktest@mydomain.com

And if it ever gets to spammy you can just delete that email from the list and it won't get forwarded to your main inbox

0