xgboost-haskell-0.1.0.0: XGBoost library for Haskell.

Safe HaskellNone
LanguageHaskell2010

ML.DMLC.XGBoost

Synopsis

Documentation

valueToLabel :: IntegralRounding a => a -> Int32 Source #

Cast floating point output to integer label.

compareLabels Source #

Arguments

:: UArray Float

Wanted

-> UArray Float

Actual output

-> Float

Successfully rate

compareLabels' Source #

Arguments

:: UArray Float

Wanted

-> UArray Float

Actual output

-> (Float -> Float -> Bool)

decide whether two given labels are equal

-> Float

Successfully rate

data BoosterParam Source #

Parameter passed to booster.

Constructors

Show a => Param 

Fields

newBooster :: (?params :: [BoosterParam]) => [DMatrix] -> IO Booster Source #

xgbTrain Source #

Arguments

:: (?params :: [BoosterParam], ?debug :: Bool) 
=> DMatrix

Data to be trained

-> Int32

Number of boosting iterations

-> IO Booster 

xgbPredict Source #

Arguments

:: (?debug :: Bool) 
=> Booster 
-> DMatrix 
-> [PredictMask] 
-> Int32

Limit number of trees in the prediction; defaults to 0 (use all trees).

-> IO (UArray Float)