Giter VIP home page Giter VIP logo

omega's Introduction

My Last SDM Project -- Really

Once more with feeling: more of an exercise in Haskell performance tuning than thinking I'll get anymore mileage out of this. Was inspired by fast bitvector. Probably more useful as a pre-processing step for training a LSTM using say, Grenade.

Might repurpose the vector space abstraction

omega's People

Contributors

sebeaumont avatar

Watchers

 avatar  avatar

omega's Issues

Make vectors storable

Rather than just unboxed we can base our vectors on storable too (assuming unboxed and storable are compatible) this will enable integration with e.g. hmatrix or roll our own c/llvm code. Since we are now running with dense word vectors even for bit vectors we might be able to get good performance. Repa would have been perfect but is now unmaintained, accelerate seems too burdensome having to port to a one off DSL and we have superfast code so we might as well use it. We can perhaps look at mmf again for sharing the vector space and creating the maps on heap.

Let's get back to ghc-8.8

The only blocker is grenade and the singleton changes that affect that. We could decouple by saving sparse vectors to disk for downstream model training.

Just realised that sparse vectors with values are cartesian product of index and value sets

data SparseVector i v = SVec !i !(SL.SortedList (i,v))

So what does that imply for the type definition? I think the pairs are cool. Do we really need a
different constructor for the BVec? Complicates all the definitions but at least we have to think about what the algebra operations mean.

Converting to dense only makes sense for the bit vectors (or for GPGPU computation where dense arithmetic might win).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.