Copyright | (c) Dominik Schrempf 2020 |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Creation date: Fri May 29 11:11:49 2020.
Batch mean monitors.
Synopsis
- data MonitorParameterBatch a = MonitorParameterBatch {}
- monitorBatchMeanInt :: Integral b => String -> Lens' a b -> MonitorParameterBatch a
- monitorBatchMeanIntF :: Integral b => String -> Lens' a b -> MonitorParameterBatch a
- monitorBatchMeanRealFloat :: RealFloat b => String -> Lens' a b -> MonitorParameterBatch a
- monitorBatchMeanRealFloatF :: RealFloat b => String -> Lens' a b -> MonitorParameterBatch a
- monitorBatchMeanRealFloatS :: RealFloat b => String -> Lens' a b -> MonitorParameterBatch a
- monitorBatchCustom :: String -> Lens' a b -> ([b] -> b) -> (b -> Builder) -> MonitorParameterBatch a
Documentation
data MonitorParameterBatch a Source #
Instruction about a parameter to monitor via batch means. Usually, the monitored parameter is average over the batch size. However, arbitrary functions performing more complicated analyses on the states in the batch can be provided.
XXX: Batch monitors are slow at the moment because the monitored parameter has to be extracted from the state for each iteration.
:: Integral b | |
=> String | Name of monitor. |
-> Lens' a b | Instruction about which parameter to monitor. |
-> MonitorParameterBatch a |
Batch monitor integral parameters such as Int
. Print the mean with eight
decimal places (half precision).
:: Integral b | |
=> String | Name of monitor. |
-> Lens' a b | Instruction about which parameter to monitor. |
-> MonitorParameterBatch a |
Batch monitor integral parameters such as Int
. Print the mean with full
precision.
monitorBatchMeanRealFloat Source #
:: RealFloat b | |
=> String | Name of monitor. |
-> Lens' a b | Instruction about which parameter to monitor. |
-> MonitorParameterBatch a |
Batch monitor real float parameters such as Double
with eight decimal
places (half precision).
monitorBatchMeanRealFloatF Source #
:: RealFloat b | |
=> String | Name of monitor. |
-> Lens' a b | Instruction about which parameter to monitor. |
-> MonitorParameterBatch a |
Batch monitor real float parameters such as Double
with full precision.
monitorBatchMeanRealFloatS Source #
:: RealFloat b | |
=> String | Name of monitor. |
-> Lens' a b | Instruction about which parameter to monitor. |
-> MonitorParameterBatch a |
Batch monitor real float parameters such as Double
with scientific
notation and eight decimal places.
:: String | Name of monitor. |
-> Lens' a b | Instruction about which parameter to monitor. |
-> ([b] -> b) | Function to calculate the batch mean. |
-> (b -> Builder) | Custom builder. |
-> MonitorParameterBatch a |
Batch monitor parameters with custom lens and builder.