Config
ParallelConfig
dataclass
¶
Configuration for parallel computation backend.
PARAMETER | DESCRIPTION |
---|---|
backend |
Type of backend to use. Defaults to 'joblib'
TYPE:
|
address |
Address of existing remote or local cluster to use. |
n_cpus_local |
Number of CPUs to use when creating a local ray cluster. This has no effect when using an existing ray cluster. |
logging_level |
Logging level for the parallel backend's worker. |
wait_timeout |
Timeout in seconds for waiting on futures.
TYPE:
|
MemcachedClientConfig
dataclass
¶
Configuration of the memcached client.
PARAMETER | DESCRIPTION |
---|---|
server |
A tuple of (IP|domain name, port). |
connect_timeout |
How many seconds to wait before raising
TYPE:
|
timeout |
seconds to wait for send or recv calls on the socket connected to memcached.
TYPE:
|
no_delay |
set the
TYPE:
|
serde |
a serializer / deserializer ("serde"). The default
TYPE:
|
MemcachedConfig
dataclass
¶
Configuration for memcached(), providing memoization of function calls.
Instances of this class are typically used as arguments for the construction of a Utility.
PARAMETER | DESCRIPTION |
---|---|
client_config |
Configuration for the connection to the memcached server.
TYPE:
|
time_threshold |
computations taking less time than this many seconds are not cached.
TYPE:
|
allow_repeated_evaluations |
If
TYPE:
|
rtol_stderr |
relative tolerance for repeated evaluations. More precisely,
memcached() will stop evaluating
the function once the standard deviation of the mean is smaller than
TYPE:
|
min_repetitions |
minimum number of times that a function evaluation on the same arguments is repeated before returning cached values. Useful for stochastic functions only. If the model training is very noisy, set this number to higher values to reduce variance.
TYPE:
|
ignore_args |
Do not take these keyword arguments into account when hashing the wrapped function for usage as key in memcached. |
Created: 2023-10-14