Skip to main content

Donifarakan is a federated learning framework designed specially for the finance sector (banks, fintech companies, etc.), where the stakeholders will train a generalized model on their local data without sharing them in order to make predictions, prevent market risks, assess news impacts on the stock market, and more.

Project description

Introduction

"Dɔni farakan" is a robust federated learning framework designed to enable distributed machine/deep learning while safeguarding data privacy. This framework enable multiple clients to collaboratively train sophisticated models without exposing their raw data. Instead, clients share model updates (e.g., weights) with a central server. The server aggregates these updates to create a generalized and high-performing model.

Specifically tailored for the finance sector (banks, fintech companies, etc.), Dɔnifarakan allows stakeholders to train models on their local data without compromising sensitive information. This collaborative approach facilitates a wide range of applications, including:

  • Making accurate predictions (on stock trends,...)
  • Preventing market risks.
  • Assessing the impact of news on stock market.
  • ....

Follow the steps below to understand how does it works and start creating your own plateform where companies might susbcribe as client in order to use it!

Requirements

Before to start you need to have python installed on your laptop. If you don't have python please follow the steps on their website in order to get it.

Getting started

As we are in the context of federated learning, you should have at least two computers. One representing the central server and another one representing a sample client. You can many clients and as many as you can. Make sure that the computers including central and clients are all on the same local network.

On your central server computer

  1. Create a new folder for your project. You can name it " MyFramework "
  2. Go the folder directory in your terminal or cmd. $cd "MyFramework"
  3. Install the donifarakan framework. $ pip install donifarakan
  4. Create a python file which will be used to launch your central server. $ touch server.py
  5. Open the server.py file then copy and paste this code below:
# Here we are loading the required methods from donifrakan
from donifarakan.server import start

# Here we launching the central server
start(ip_address="10.12.167.82",port=6590)

On your client device

  1. Create a new folder for your project. You can name it " MyCompany AI "
  2. Go the folder directory in your terminal or cmd. $cd "MyCompany AI"
  3. Install the donifarakan framework. pip install donifarakan
  4. Create a python file which will be used to train a model on the client local data. $touch train.py
  5. Open the train.py file then copy and paste this code below:
# Here we are loading the required methods from donifrakan
from donifarakan.utils import download_dataset
from donifarakan.client import global_model, train

# If you don't have any dataset yet, execute this method to download a sample dataset, by default it will download a stock price dataset if you don't specify any!
download_dataset()

# Here you will be requested to provide your central server details in order to get the global model
get_global_model()

# Here you will be requested to provide all the details about your dataset before to start the training
train()

Contribution

This project is an open source, to contribute on it fell free to explore the architecture and leave your comments and suggestions!

FAQ

For any query you can reach me out at adamaseydoutraore86@gmail.com

LICENCE

MIT License

Copyright (c) 2025 TRAORE ADAMA SEYDOU

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

donifarakan-0.1.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

donifarakan-0.1.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file donifarakan-0.1.0.tar.gz.

File metadata

  • Download URL: donifarakan-0.1.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for donifarakan-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bfbae6dc461f062f2450ea387e680f3622909c72117a4e9741125ea7be096a15
MD5 8ff01e45446a57030927b0281c493173
BLAKE2b-256 207ec044bcc193b2593ca5e200ad77ed26a220437d77cbf47c16c761459b6157

See more details on using hashes here.

File details

Details for the file donifarakan-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: donifarakan-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for donifarakan-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84378b65d77a113a84fb1050d8a697349f3a7cc9d5e32fa2c0e240b55520c3b4
MD5 a5600104b21310c7644ca320f58b2761
BLAKE2b-256 ac12b14a3420604e006601811607d40809531ededfef6568195c03f5cf1438a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page