This campaign rewards users who run worker nodes providing inferences for the US presidential election party winner once a day. Every inference should be the likelihood of the republican party winning the election. source
run-inference-political
TopicId 11
D
: DemocratR
: Republicmodel.py
%
total 0 - 100%
24
hoursgit clone https://github.com/arcxteam/allora-usa-election.git
cd allora-usa-election
Provided and config environment file modify model-tunning
Copy and read the example .env.example for your variables
nano .env.example .env
Here are the currently accepted configuration
D
or R
)SVR
or modify your own model)ctrl X + Y and Enter
Modify model-tunning or check /models folder
nano model.py
Edit your config & initialize worker
Edit for key wallet - name wallet - RPC endpoint & interval etc
nano config.json
Run the following commands root directory to initialize the worker
chmod +x init.config
./init.config
Start the Services
Run the following command to start the worker node, inference, and updater nodes:
docker compose up --build -d
Check running
docker compose logs -f --tail=100
To confirm that the worker successfully sends the inferences to the chain, look for the following logs:
{"level":"debug","msg":"Send Worker Data to chain","txHash":<tx-hash>,"time":<timestamp>,"message":"Success"}
Send requests to the inference model. For example, request probability of Democrat(D
) or Republic(R
)
curl http://127.0.0.1:8000/inference/D
Expected response of numbering: ` “value”:”xx.xxxx”`