Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.65 KB

File metadata and controls

56 lines (38 loc) · 1.65 KB

CLASS

SyftClient

Contents

  • Methods
    • init(url:authToken:)
    • newJob(modelName:version:)
public class SyftClient: SyftClientProtocol

Syft client for model-centric federated learning

Methods

init(url:authToken:)

convenience public init?(url: URL, authToken: String? = nil)

Initializes as SyftClient with a PyGrid server URL and an authentication token (if needed)

  • Parameters:
    • url: Full URL to a PyGrid server (ws(websocket) and http protocols suppported)
    • authToken: PyGrid authentication token

Parameters

Name Description
url Full URL to a PyGrid server (ws(websocket) and http protocols suppported)
authToken PyGrid authentication token

newJob(modelName:version:)

public func newJob(modelName: String, version: String) -> SyftJob

Creates a new federated learning cycle job with the given options

  • Parameters:
    • modelName: Model name as it is stored in the PyGrid server you are connecting to
    • version: Version of the model (ex. 1.0)
  • Returns: SyftJob

Parameters

Name Description
modelName Model name as it is stored in the PyGrid server you are connecting to
version Version of the model (ex. 1.0)