Go to file
2022-06-15 00:46:25 -04:00
.vscode tweak: add coefficient of variation 2022-04-11 14:39:29 -04:00
data fix: urls and amount formatting 2022-05-02 18:12:55 -04:00
lib fix: updated squiggle endpoint 2022-06-15 00:46:25 -04:00
pages feat: Added OpenPhil 2018 AI risk grants 2022-04-08 16:26:24 -04:00
public MVP with just an ordering, but no quantitative estimates 2021-06-06 23:14:05 +02:00
styles fix: munging around with tailwinds configuration 2021-12-08 13:49:29 +01:00
.gitignore fix: cleanup 2022-01-31 17:09:46 -05:00
netlify.toml fix: install netlify plugin 2022-01-28 15:51:29 -05:00
package-lock.json fix: install netlify plugin 2022-01-28 15:51:29 -05:00
package.json fix: install netlify plugin 2022-01-28 15:51:29 -05:00
postcss.config.js fix: munging around with tailwinds configuration 2021-12-08 13:49:29 +01:00
README.md typo: squiggle url 2022-04-11 15:38:38 -04:00
tailwind.config.js fix: munging around with tailwinds configuration 2021-12-08 13:49:29 +01:00

About

This repository creates a react webpage that allows to extract a utility function from possibly inconsistent binary comparisons. It presents the users with a series of elements to compare, using merge-sort in the background to cleverly minimize the number of choices needed. Then, it cleverly aggregates them, by taking each element as a reference point in turn, and computing the possible distances from that reference point to all other points, and taking the geometric mean of these distances. This produces a number representing the value of each element, such that the ratios between elements represent the user's preferences: a utility function!

Initially, users could only input numbers, e.g., "A is 3 times better than B". But now, users can also input distributions, using the squiggle syntax, e.g., "A is 1 to 10 times better than B", or "A is mm(normal(1, 10), uniform(0,100)) better than B".

Object structure

The core structure is json array of objects. Only the "name" attribute is required. If there is a "url", it is displayed nicely.

[
    {
        "name": "Peter Parker",
        "someOptionalKey": "...",
        "anotherMoreOptionalKey": "...",
    },
    {
        "name": "Spiderman",
        "someOptionalKey": "...",
        "anotherMoreOptionalKey": "..."
    }
]

Netlify

https://github.com/netlify/netlify-plugin-nextjs/#readme