# Customized Client and Dataset

**URL:** <https://discuss.flower.ai/t/customized-client-and-dataset/232>\
**Category:** Privacy & Security\
**Tags:** faq, datasets\
**Created:** [June 3, 2024, 9:18am UTC](https://discuss.flower.ai/t/customized-client-and-dataset/232 "2024-06-03T09:18:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomfl2312](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@randomfl2312](https://discuss.flower.ai/u/randomfl2312)\
**Post date:** [June 3, 2024, 9:18am UTC](https://discuss.flower.ai/t/customized-client-and-dataset/232/1 "2024-06-03T09:18:32Z")

</div>

Hello!  
I am very new to Flower framework. I want to know if we can implement k-anonymity on a few clients and local differential privacy on the others with different values of parameters using Flower.  
If yes, if someone could please explain how can I do that.  
Thanks

---

<div class="post-metadata">

**Author:** ![mohammad](https://dub1.discourse-cdn.com/flex013/user_avatar/discuss.flower.ai/mohammad/32/35_2.png) [@mohammad](https://discuss.flower.ai/u/mohammad)\
**Post date:** [June 17, 2024, 9:21pm UTC](https://discuss.flower.ai/t/customized-client-and-dataset/232/2 "2024-06-17T21:21:05Z")

</div>

Hey, thanks for the question.

Yes, it is possible. First, you need to define your clients and partition their data. For clients where you want to implement k-anonymity, apply it to their data before using it for training. Additionally, for clients where you want to use Local DP, utilize the existing mod.

These links may be helpful:

- Custom Mods: [Using custom mods 🧪 - Flower Examples 1.10.0](https://flower.ai/docs/examples/custom-mods.html)
- Explanation of Differential Privacy: [Flower Framework main](https://flower.ai/docs/framework/explanation-differential-privacy.html)"

Let me know if you have more questions.

---

<div class="post-metadata">

**Author:** ![randomfl2312](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@randomfl2312](https://discuss.flower.ai/u/randomfl2312)\
**Post date:** [September 18, 2024, 9:38am UTC](https://discuss.flower.ai/t/customized-client-and-dataset/232/3 "2024-09-18T09:38:38Z")

</div>

Can you share some example where Local DP has been used with Flower? Can this run on Colab Notebook?
