Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

unpack-feature-vector could be cleaner #89

Open
robinkraft opened this issue Jul 13, 2012 · 2 comments
Open

unpack-feature-vector could be cleaner #89

robinkraft opened this issue Jul 13, 2012 · 2 comments
Assignees
Labels

Comments

@robinkraft
Copy link
Contributor

See discussion.

Aaron suggests modifying the function so we can replace the current mess with something akin to this:

(map thrift/unpack seq)

As structured now, that wouldn't work in this function since we're only taking bits and pieces of the various inputs to create the feature vector, and the feature vector has a very specific ordering.

@robinkraft
Copy link
Contributor Author

Could we use a feature vector map to make the feature vector a little cleaner? It's not cool counting on the position of values to ensure that the feature vector is created correctly. It'd be something like

{:min-break -1 :avg-break -0.5 ,,,,}

Instead of knowing that the last two elements in the feature vector are reserved for the hansen stat, and that min always comes before avg in the feature vector (I think).

@robinkraft
Copy link
Contributor Author

Of course then it wouldn't be a vector anymore, but we could dump the values into a vector just before estimation. The order of elements doesn't matter as far as the statistical model is concerned. And the workflow only cares that the ordering is consistent. So it would require less brain overhead to understand how the estimation steps worked if we just made the feature vector a feature map instead, and dumped it to a vector or array (as needed) for use with JBlas.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant