federer
Version:
Experiments in asynchronous federated learning and decentralized learning
34 lines • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CoordinatorCLIOptions = void 0;
const common_1 = require("../common");
const yargsOptions = {
"number-clients": { type: "number", demandOption: true },
"clients-port": { type: "number", demandOption: true },
"server-port": { type: "number", demandOption: true },
"fileserver-host": {
type: "string",
demandOption: false,
description: "If set, assume that an HTTP(S) server serves the /data and " +
"/models/coordinator directories at the given URL. " +
"Otherwise, assume all nodes have access to the same file system.",
},
environment: {
type: "string",
demandOption: true,
choices: ["aws", "local"],
},
};
let options;
exports.CoordinatorCLIOptions = {
get(name) {
return this.getAll()[name];
},
getAll() {
if (options === undefined) {
options = common_1.getArgs(yargsOptions);
}
return options;
},
};
//# sourceMappingURL=cli.js.map