by Closi · 6y ago · 0 comments
Competition time - Can anyone come up with a title better than "Rust"?
Edit: I've beaten "Rust" by putting in the title " ". Can anyone beat that?! AI clearly has worked out the less substance the better!
const randAlphaStr = length =>
String.fromCharCode(
...Array.from({ length }, () => 97 + Math.floor(Math.random() * 26))
);
const pitRustAgainstRandomFourCharAlphaStrings = async sampleSize => {
const rustScore = await getPrediction("rust");
let rustLosses = 0;
for (let i = 0; i < sampleSize; i++) {
if ((await getPrediction(randAlphaStr(4))) > rustScore) {
rustLosses++;
}
}
console.log(`rust lost ${rustLosses} times out of ${sampleSize}`);
};
pitRustAgainstRandomFourCharAlphaStrings(100000);
Result: rust lost 55469 times out of 100000
I'd say rust fairs worse than the average random four character string with the letters a-z. That should tell you something about the usefulness of this model.Edit: looks like it's maybe a tie, instead. B wins in case of a tie.