Code Monkey home page Code Monkey logo

ethereum-machinelearning's Introduction

Machine Learning with Blockchain Technology

A smart contract was created that would allow the owner to uploaded an encoded json string that contains the parameters of a trained Logistic Regression model. The model should be trained off-chain to keep the data private, and simply upload the model parameters.

The contract also has functionality to retrieve the aforemetioned parameters, to allow a model to be built using those parameters. This will allow a client to create a model that generate predictions on unseen data, without ever needing access to the training data.

The contract was created using Remix.

A Ganache client was initiated, to create a local blockchain network as well as a number of test accounts which come loaded with ether.

Alt text

To communicate with the Ganache blockchain network, MetaMask was used.

Alt text

This then allowed the Remix console to communicate with the Ganache blockchain network. From here, the contract could then be compiled and deployed to the network. The user that was selected when performing this operation would be the owner of the contract.

Alt text

The ABI and contract address details where taken from here, and inserted into the configuration section within the python project.

Once the python project was configured and set up, it could communicate with the smart contract to store and retrieve the encoded parameters of the model. More details in the iPython notebook.

ethereum-machinelearning's People

Contributors

andcachia avatar hastons24ng 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.