Probnet 0.1.0.1 → 0.1.0.2
raw patch · 3 files changed
+51/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Probnet.cabal +1/−1
- Probnet.hs +49/−0
- README.md +1/−1
Probnet.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: Probnet-version: 0.1.0.1+version: 0.1.0.2 synopsis: Geometric Extrapolation of Integer Sequences with error prediction description: Solves thousands of oeis.org math functions just in one, Probnet . A new way to calculate and predict results from the data source without knowing the function who composes a data set. Aplications in math, AI, infromation compresion when the data source follows math patterns. Describe the 100 % accuracy functions in 3 fraction parameters and 1 parameter for the index. homepage: https://github.com/pedroelbanquero/geometric-extrapolation
Probnet.hs view
@@ -70,6 +70,55 @@ err = zipWith subtract pred dat -- differences between elements and its predictions pred = fmap predict1 $ inits dat -- 2 first inits have 0 and 1 elements, will be dropped +++-- | Encode data sequence+-- convert data sequence to f = (index,frac1,frac2,frac3,longitude)+-- TODO convert data secuence to a function / symbol dictionary and replace sequence patterns for the symbol+-- example parse 1,2,3,4,5,8,16.... / output -> (.,30,1,1,1),(,,10,2,4,8) .....,,+-- the idea is convert different values in the same symbol, in decode moment replace the function symbol by the element in the index of the data sequence.+--+encode dat = (l,f2-f1,f3-f2,f4-f3)+ where+ l = length dat+ f1 = dat !! 0+ f2 = dat !! 1+ f3 = dat !! 2+ f4 = dat !! 3+ -- add split patterns function to the dictionary+ -- rewrite sequence to new function symbols+ -- rewrite base for encoding+ -- output dictionary + rewrited symbols sequence+ -- return imposible to encode if no improve in the encodening comparing bit size are detected+++-- | Encode function for files + lzma+--++++-- | Decode data sequence+-- convert encoded probnet function parameters to data sequence+-- TODO convert encoded data sequence to real data converting each symbol by his element in the function data secuence in the dictionary.+decode encoded = probnet (i-(length encoded-1)) [fromIntegral f1,fromIntegral f2,fromIntegral f3,fromIntegral f4]+ where+ i = encoded!!0+ f1 = encoded!!1+ f2 = encoded!!2+ f3 = encoded!!3+ f4 = encoded!!4+ -- get dictionary function+ -- replace funcion data secuence by function elements to generate the real data sequence+ -- output results+ -- return no function dictionary was found , or no functionon decoding for this sequence+++++-- | Decode file to a file+-- ++ -- | Property of Cobalt Technologies Panamá -- | Authors : Vicent Nos Ripolles (Main Author) -- | Enrique Santos (Refactor Code)
README.md view
@@ -30,7 +30,7 @@ - uncertain prediction - data modeling - risk modeling-+- data encoder decoder ## A geometric way of prediction