Hoogle Search
Within LTS Haskell 24.35 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Utility library to handle regression datasets this module exports only the loadDataset function.
type
DataSet = (SRMatrix, PVector, Maybe PVector)srtree Data.SRTree.Datasets No documentation available.
-
srtree Data.SRTree.Datasets loadDataset loads a dataset with a filename in the format: filename.ext:start_row:end_row:target:features:y_err it returns the X_train, y_train, X_test, y_test, varnames, target name where varnames are a comma separated list of the name of the vars and target name is the name of the target where
- *start_row:end_row** is the range of the training rows (default 0:nrows-1). every other row not included in this range will be used as validation
- *target** is either the name of the PVector (if the datafile has headers) or the index of the target variable
- *features** is a comma separated list of SRMatrix names or indices to be used as input variables of the regression model.
-
streamly Streamly.Internal.Data.SVar No documentation available.
-
streamly Streamly.Internal.Data.Stream.IsStream tapOffsetEvery offset n taps every nth element in the stream starting at offset. offset can be between 0 and n - 1. Offset 0 means start at the first element in the stream. If the offset is outside this range then offset mod n is used as offset.
>>> Stream.drain $ Stream.tapOffsetEvery 0 2 (Fold.rmapM print Fold.toList) $ Stream.enumerateFromTo 0 10 [0,2,4,6,8,10]
partCompareListSubset :: Eq a => [a] -> [a] -> Maybe Orderingswish Data.Ord.Partial Part-ordering comparison on lists based on subset relationship
parseToArgs :: String -> [String]tce-conf TCE.Data.KVConf Parse config file data into what looks like long args on a command line. Sometimes it's convenient to be able to supply commonly used long args in a config file. The idea here is you can prepend this [String] to your other command line args and send the whole mess to your System.Console.GetOpt-based code. For example, this:
--- file start --- foo=one # a comment bar baz-blorp=2 # spaces are permitted around the = qux = false --- file end ---
becomes:[ "--foo=one", "--bar", "--baz-blorp=2", "--qux=false" ]
As above, comments (prefixed with #) and blank lines in the config file are discarded.parseToMap :: String -> KVConftce-conf TCE.Data.KVConf Parse config file data into a simple (Map String String). For example, this:
--- file start --- foo=one # a comment bar baz-blorp=2 # spaces are permitted around the = qux = false --- file end ---
becomes:fromList [("foo","one"),("bar",""),("baz-blorp","2"),("qux","false")]Comments (prefixed with #) and blank lines in the config file are discarded.pthread_setspecific :: Key -> StablePtr a -> IO Intthread-local-storage Data.TLS.PThread.Internal No documentation available.
fromTSet :: ([c] -> a) -> TSet c -> TMap c atrie-simple Data.Trie.Map No documentation available.