Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Metric dytpe method = Metric {
- _metric_name :: String
- _metric_labelname :: [String]
- _metric_instance :: IORef Int
- _metric_sum :: IORef dytpe
- metric_sum :: forall dytpe method dytpe method. Lens (Metric dytpe method) (Metric dytpe method) (IORef dytpe) (IORef dytpe)
- metric_name :: forall dytpe method method. Lens (Metric dytpe method) (Metric dytpe method) String String
- metric_labelname :: forall dytpe method method. Lens (Metric dytpe method) (Metric dytpe method) [String] [String]
- metric_instance :: forall dytpe method method. Lens (Metric dytpe method) (Metric dytpe method) (IORef Int) (IORef Int)
- newMetric :: (DType dtype, MonadIO m) => method -> String -> [String] -> m (Metric dtype method)
- resetMetric :: (DType dtype, MonadIO m) => Metric dtype method -> m ()
- getMetric :: (DType dtype, MonadIO m) => Metric dtype method -> m Float
- formatMetric :: (DType dtype, MonadIO m) => Metric dtype method -> m String
- class EvalMetricMethod method where
- data CrossEntropy = CrossEntropy
- data EvalMetricExc = InvalidInput
Documentation
data Metric dytpe method Source #
Metric data
Metric | |
|
metric_sum :: forall dytpe method dytpe method. Lens (Metric dytpe method) (Metric dytpe method) (IORef dytpe) (IORef dytpe) Source #
metric_name :: forall dytpe method method. Lens (Metric dytpe method) (Metric dytpe method) String String Source #
metric_labelname :: forall dytpe method method. Lens (Metric dytpe method) (Metric dytpe method) [String] [String] Source #
metric_instance :: forall dytpe method method. Lens (Metric dytpe method) (Metric dytpe method) (IORef Int) (IORef Int) Source #
newMetric :: (DType dtype, MonadIO m) => method -> String -> [String] -> m (Metric dtype method) Source #
create a new metric data
resetMetric :: (DType dtype, MonadIO m) => Metric dtype method -> m () Source #
reset all information
formatMetric :: (DType dtype, MonadIO m) => Metric dtype method -> m String Source #
format the metric as string
class EvalMetricMethod method where Source #
Abstract Evaluation type class
data CrossEntropy Source #
Basic evluation - cross entropy
data EvalMetricExc Source #
Possible exceptions in evaluation.