construct weight vector
Merge branch 'master' of github.com:DevMine/devmine-core