gnosis / prediction-market-agent-tooling

Tools to benchmark, deploy and monitor prediction market agents.
GNU Lesser General Public License v3.0
11 stars 0 forks source link

[Friday Project] Random Forest in Solidity #306

Open kongzii opened 1 month ago

kongzii commented 1 month ago

Decision trees are just a bunch of if/else clauses in sequence. A random forest is a bunch of decision trees. After it's trained with Python, all the if/else can be extracted and should be relatively easy to convert it to a Solidity code. Question is how expensive it will be to publish such contract with a ton of if/else, but afterwards, its usage (making predictions) should be free.

Just a small idea to play with, but if it works, we could have specialized prediction markets and some agent could use this to predict them.

gabrielfior commented 1 month ago

Very nice, please share the results!