Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Hacker-AI chose this title (hacker-ai.com)
11 points by ihmissuti on Nov 26, 2020 | hide | past | favorite | 7 comments



Wish it shed more insight how it deemed one title better than the other.

I tested with: Title A: Google pledging to spend 2 billion by 2022 to get rid of php on the web.

Title B: I stopped using php and here’s how it saved my marriage.

Title B won.

Note: nothing against php, just wanted to test some typical cringey, hyperbolic tech article titles I constantly see LOL.


Thanks for testing! I'll write a description of how it makes the predictions and add it to the tool.

But in short, it uses a machine learning model that I trained with a dataset that contains all stories and comments between 2006 and 2017: https://www.kaggle.com/hacker-news/hacker-news

I've tested various approaches, and currently, the algorithm takes the title as an input and transforms it into an array of numbers between 0 and 1 (each character is a number). Then I give these arrays to the machine learning model (brain.js feed-forward neural network) and the number of scores as an output. After learning and iterating over the data, it spits out the prediction model that I can use to predict the outcome of different title variations.

I've tested the algorithm with approx. 10.000 posts and it has been able to predict 60% of the cases correctly. So, it's not perfect yet, but I use this method in a situation where I don't have any experience of which type of title would work + I don't have time to do "proper" pre-testing.


Thank you for this tool! I think it's a cool idea. Also, it is private, for not sending any requests.

What I would love is the actual predicted number of points (I don't mind that the error would be quite large given the title alone, given that it is not overfit).


Thanks for the feedback and glad to hear you like it! I'll add the predicted number of points to the UI. That's a good addition imo as well.


The predicted number of points are now displayed in the UI.


Interesting but I’m not sure I trust it.

Test 1:

  Title A: Trump

  Title B: Biden

  Winner: B - Biden

Test 2:

  Title A: Trump Sucks

  Title B: Biden Sucks

  Winner: B - Biden Sucks
Note: Sorry about the political stuff. It was just the first one word thing I could think of that would likely have clear winner loser.


With ”Biden sucks” you could expect something more interesting in the context of hackernews. ”Trump sucks” is something so obvious and whole heartedly agreed in hn that it is a blasé/tldr. :)




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: