Add option for bootstrap resampling (not implemented yet)
This commit is contained in:
parent
d67061c230
commit
402ed73111
@ -168,7 +168,8 @@ data GEvalSpecification = GEvalSpecification
|
|||||||
gesGonitoHost :: Maybe String,
|
gesGonitoHost :: Maybe String,
|
||||||
gesToken :: Maybe String,
|
gesToken :: Maybe String,
|
||||||
gesGonitoGitAnnexRemote :: Maybe String,
|
gesGonitoGitAnnexRemote :: Maybe String,
|
||||||
gesReferences :: Maybe String }
|
gesReferences :: Maybe String,
|
||||||
|
gesBootstrapSampling :: Maybe Int }
|
||||||
|
|
||||||
|
|
||||||
gesMainMetric :: GEvalSpecification -> Metric
|
gesMainMetric :: GEvalSpecification -> Metric
|
||||||
@ -216,7 +217,8 @@ defaultGEvalSpecification = GEvalSpecification {
|
|||||||
gesGonitoHost = Nothing,
|
gesGonitoHost = Nothing,
|
||||||
gesToken = Nothing,
|
gesToken = Nothing,
|
||||||
gesGonitoGitAnnexRemote = Nothing,
|
gesGonitoGitAnnexRemote = Nothing,
|
||||||
gesReferences = Nothing}
|
gesReferences = Nothing,
|
||||||
|
gesBootstrapSampling = Nothing }
|
||||||
|
|
||||||
isEmptyFile :: FilePath -> IO (Bool)
|
isEmptyFile :: FilePath -> IO (Bool)
|
||||||
isEmptyFile path = do
|
isEmptyFile path = do
|
||||||
|
@ -196,6 +196,12 @@ specParser = GEvalSpecification
|
|||||||
<> help "External text file referenced"
|
<> help "External text file referenced"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
<*> ( optional $ option auto
|
||||||
|
(long "bootstrap-resampling"
|
||||||
|
<> short 'B'
|
||||||
|
<> metavar "NUMBER-OF-SAMPLES"
|
||||||
|
<> help "Tests on NUMBER-OF-SAMPLES bootstrap samples rather than just on the whole test set" ))
|
||||||
|
|
||||||
|
|
||||||
defaultMinFrequency :: Integer
|
defaultMinFrequency :: Integer
|
||||||
defaultMinFrequency = 1
|
defaultMinFrequency = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user