Increase the stack size, or use a different serialiser (they're only a
half dozen lines to write), or different data structure?
-- Don
frigginfriggins:
I'm playing around with Netflix, implementing a simple KNN-algorithm, I will
later try SVD which seems to be the most successful approach.
import Data.Binary and then write a variant of something like how
Maps are currently serialised:
instance (Ord k, Binary k, Binary e) = Binary (Map.Map k e) where
put m = put (Map.size m) mapM_ put (Map.toAscList m)
get = liftM Map.fromDistinctAscList get
So you might
Hello friggin,
Saturday, March 7, 2009, 10:57:04 PM, you wrote:
dec = B.decodeFile C:/users/saftarn/desktop/bintest.txt = \a -
return $ (a :: M.Map (Int,Int) Int)
just a quick style hack:
dec = B.decodeFile C:/users/saftarn/desktop/bintest.txt :: IO (M.Map
(Int,Int) Int)
--
Best