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
- Create a new folder for your project. You can name it " MyFramework "
- Go the folder directory in your terminal or cmd. $cd "MyFramework"
- Install the donifarakan framework.
$ pip install donifarakan - Create a python file which will be used to launch your central server.
$ touch server.py - 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
- Create a new folder for your project. You can name it " MyCompany AI "
- Go the folder directory in your terminal or cmd. $cd "MyCompany AI"
- Install the donifarakan framework.
pip install donifarakan - Create a python file which will be used to train a model on the client local data.
$touch train.py - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file donifarakan-0.1.3.tar.gz.
File metadata
- Download URL: donifarakan-0.1.3.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06c6fee74d3aea77cc4b74f845c9702d20e88f18ed9757f8f1ed53dc4bc0fb3d
|
|
| MD5 |
3520206ebef9141c26d9b4154a955853
|
|
| BLAKE2b-256 |
d81d1d6dab690455d46e8fb4b39b1e0193adcd8f621d83a8ed7b3c538917c894
|
File details
Details for the file donifarakan-0.1.3-py3-none-any.whl.
File metadata
- Download URL: donifarakan-0.1.3-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15445ef9fe5e912428c37213dd49070ad85790973cdb9faa989d6afa0b900a4f
|
|
| MD5 |
d21eacf410ebe4c1fc9cae8a7932dbdd
|
|
| BLAKE2b-256 |
7812cd25f77cbd3313dd786283024285aae363c638d8793d15c17d29034c1142
|