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.

  1. module Data.SRTree.Datasets

    Utility library to handle regression datasets this module exports only the loadDataset function.

  2. type DataSet = (SRMatrix, PVector, Maybe PVector)

    srtree Data.SRTree.Datasets

    No documentation available.

  3. loadDataset :: FilePath -> Bool -> IO ((SRMatrix, PVector, SRMatrix, PVector), (Maybe PVector, Maybe PVector), String, String)

    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.

  4. resetBufferLimit :: forall (t :: (Type -> Type) -> Type -> Type) (m :: Type -> Type) a . SVar t m a -> IO ()

    streamly Streamly.Internal.Data.SVar

    No documentation available.

  5. tapOffsetEvery :: forall t (m :: Type -> Type) a b . (IsStream t, Monad m) => Int -> Int -> Fold m a b -> t m a -> t m a

    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]
    

  6. partCompareListSubset :: Eq a => [a] -> [a] -> Maybe Ordering

    swish Data.Ord.Partial

    Part-ordering comparison on lists based on subset relationship

  7. 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.

  8. parseToMap :: String -> KVConf

    tce-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.

  9. pthread_setspecific :: Key -> StablePtr a -> IO Int

    thread-local-storage Data.TLS.PThread.Internal

    No documentation available.

  10. fromTSet :: ([c] -> a) -> TSet c -> TMap c a

    trie-simple Data.Trie.Map

    No documentation available.

Page 215 of many | Previous | Next