Git Product home page Git Product logo

Comments (3)

niecf avatar niecf commented on May 27, 2024

Below is my configuration:

mnist = MNIST(data_root="./data", train_bs=32, num_clients=100) # built-in federated MNIST dataset

configuration parameters

conf_params = {
"dataset": mnist,
"aggregator": "krum", # aggregation
"aggregator_kws": {"num_clients": 100, # attacker parameters
"num_byzantine": 10},
"num_byzantine": 10, # number of Byzantine input
"attack": "noise", # attack strategy
# "attack_kws": {"num_clients": 100, # attacker parameters
# "num_byzantine": 10},
"num_actors": 4, # number of training actors
# "num_actors": 10, # number of training actors
"use_cuda": False,
"gpu_per_actor": 0.,
"seed": 1, # reproducibility
}

from blades.

lishenghui avatar lishenghui commented on May 27, 2024

Hi, this is because the dataset is dumped into a file to avoid unnecessary reconstruction. The code immediately loads the cache file if it exists. But we forgot to compare the detailed information with the new configuration. We will fix this issue soon.

So far, there is a quick solution to make it work: you can remove the "MNIST.obj" files in the data_root folder so that the dataset will be separated into your desired number of partitions.

from blades.

niecf avatar niecf commented on May 27, 2024

Thank you for your answer.

from blades.

Related Issues (20)

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.