Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash representation for "rowLabels" and "columnLabels" #22

Closed
jcchuang opened this issue Sep 3, 2013 · 0 comments
Closed

Hash representation for "rowLabels" and "columnLabels" #22

jcchuang opened this issue Sep 3, 2013 · 0 comments
Assignees

Comments

@jcchuang
Copy link
Member

jcchuang commented Sep 3, 2013

Currently, MatrixState contains two copies of row labels (i.e., terms) and column labels (i.e., topic names).

When MatrixState reads the matrix information associated with a dataset, the received data (saved in MatrixState.data) contains two arrays "terms" and "topics" that are the list of vocabulary used in a topic model and the default names for topics, respectively. Currently, user-defined row labels and column labels are saved as arrays "rowLabels" and "columnLabels" as MatrixState attributes.

In MatrixState.js file:

  • Create two new attributes "rowModifiedLabels" and "columnModifiedLabels" of type {number: String} that record only the modified labels.
  • Automatically update attributes "rowLabels" and "columnLabels" whenever attributes "rowModifiedLabels" and "columnModifiedLabels" are changed.
  • Modify functions rowLabels() and columnLabels() so that they write to (or unset) attributes "rowModifiedLabels" and "columnModifiedLabels".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants