GithubHelp home page GithubHelp logo

troth_giza's Introduction

Troth's bot

Hackathon winner for Starknet Winter hackathon (3rd place general, 1st place Giza track)

This project was developed for the Giza's track of the Starknet Winter hackathon. The idea was to demonstrate how Giza actions could be used for Telegram bots and other chat applications, so that async functions (i.e. actions) could process incoming messages to a bot. The bot can be accessed at https://t.me/giza_sentiment_bot.

The use case we explored here was a standard one, namely ETH price prediction. We used the Giza's Dataset loader for fetching token prices, combined with a Prophet model to generate a forecast for the next 5 days. This forecast is produced via a Giza action and finally sent to the user as a message over Telegram.

We believe this use-case is innovative since it demonstrates different ways in which ZKML can be packaged and delivered to users, this time in a more social way.

We also briefly discuss our choice of ML model for forecasting. We used Prophet because it offers fast training and inference with reasonable results. However, it's worth mentioning that other models (particularly tsai or LagLlama) are very promising, but we note that the large model size might prove troublesome for ZK verification with Cairo.

How we would have expanded this with more time

The verifiability part of the model could not be achieved due to difficulties related to a. converting the Prophet model into the ONNX format and b. converting from ONNX to the Cairo format (we expect the model to have a large size hence be non-trivial to convert). It would be great to continue working on this conversion and allowing more models to be verifiable on-chain.

troth_giza's People

Contributors

gabrielfior avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.