Package-level declarations

Types

Link copied to clipboard
interface Client

Abstract base class for Flower clients.

Link copied to clipboard
object Code

The Code class defines client status codes used in the application.

Link copied to clipboard
annotation class CodeAnnotation
Link copied to clipboard
typealias Config = Map<String, Scalar<Any>>

Represents a map of configuration values.

Link copied to clipboard
data class DisconnectRes(val reason: String)

DisconnectRes message from client to server.

Link copied to clipboard
data class EvaluateIns(val parameters: Parameters, val config: Config)

Evaluate instructions for a client.

Link copied to clipboard
data class EvaluateRes(val status: Status, val loss: Float, val numExamples: Int, val metrics: Metrics)

Evaluate response from a client.

Link copied to clipboard
data class FitIns(val parameters: Parameters, val config: Config)

Fit instructions for a client.

Link copied to clipboard
data class FitRes(val status: Status, val parameters: Parameters, val numExamples: Int, val metrics: Metrics)

Fit response from a client.

Link copied to clipboard
data class GetParametersIns(val config: Config)

Parameters request for a client.

Link copied to clipboard
data class GetParametersRes(val status: Status, val parameters: Parameters)

Response when asked to return parameters.

Link copied to clipboard
data class GetPropertiesIns(val config: Config)

Properties request for a client.

Link copied to clipboard
data class GetPropertiesRes(val status: Status, val properties: Properties)

Properties response from a client.

Link copied to clipboard
typealias Metrics = Map<String, Scalar<Any>>

Represents a map of metric values.

Link copied to clipboard
data class Parameters(val tensors: Array<ByteBuffer>, val tensorType: String)

Model parameters.

Link copied to clipboard
typealias Properties = Map<String, Scalar<Any>>

Represents a map of properties.

Link copied to clipboard
data class ReconnectIns(val seconds: Long?)

ReconnectIns message from server to client.

Link copied to clipboard
sealed class Scalar<T>

The Scalar class represents a scalar value that can have different data types.

Link copied to clipboard
data class Status(val code: Int, val message: String)

Client status.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun createFlowerRere(serverAddress: String, useTLS: Boolean, client: Client)
Link copied to clipboard
suspend fun startClient(serverAddress: String, useTls: Boolean, client: Client)

Start a Flower client node which connects to a Flower server.