HaskellGBM-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

LightGBM.Utils.Types

Contents

Description

Some utility types used across the library.

Synopsis

Refined Types

type PositiveInt = Refined Positive Int Source #

An Int in the range [1, maxBound :: Int]

type IntGreaterThanOne = Refined (GreaterThan 1) Int Source #

An Int in the range [2, maxBound :: Int]

type ProperFraction = Refined (And (Not (LessThan 0)) (Not (GreaterThan 1))) Double Source #

A Double in the range [0, 1]

type OpenProperFraction = Refined (And (GreaterThan 0) (LessThan 1)) Double Source #

A Double in the range (0, 1)

type OneToTwoLeftSemiClosed = Refined (And (Not (LessThan 1)) (LessThan 2)) Double Source #

A Double in the range [1, 2)

Logging Types

newtype OutLog Source #

A transcript of the output logging of LightGBM

Constructors

OutLog Text 

Instances

newtype ErrLog Source #

A transcript of the error logging of LightGBM

Constructors

ErrLog Text 

Instances

Orphan instances

(Hashable a, Predicate p a) => Hashable (Refined p a) Source # 

Methods

hashWithSalt :: Int -> Refined p a -> Int #

hash :: Refined p a -> Int #