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

Initializing one-feature state causes freeze #5

Closed
BaxterEaves opened this issue Nov 19, 2013 · 0 comments
Closed

Initializing one-feature state causes freeze #5

BaxterEaves opened this issue Nov 19, 2013 · 0 comments
Assignees

Comments

@BaxterEaves
Copy link
Contributor

Trying to initialize a one-feature crosscat state cause a freeze. The interactive python session below recreates this phenomenon.

>>> import crosscat.utils.data_utils as du
>>> import crosscat.cython_code.State as State
>>> n_rows = 20
>>> n_cols = 1
>>> n_clusters = 1
>>> n_splits = 1
>>> T, M_r, M_c = du.gen_factorial_data_objects(0, n_clusters, n_cols, n_rows, n_splits)
>>> T
[[-5.787782515779506], [-5.826566594944548], [-4.958365620785989], [-5.492487488802081], [-6.224880036852396], [-6.827562219103892], [-5.56692163658829], [-6.292623845594414], [-6.5554462707688455], [-7.177709985746689], [-6.642867927741707], [-7.009385232315293], [-5.2122421142029545], [-6.465641354565031], [-5.991088472905642], [-5.195031202572548], [-4.403616309173517], [-5.86833115423013], [-5.037314522029348], [-6.54195489382407]]
>>> M_r
{'idx_to_name': {'11': 11, '10': 10, '13': 13, '12': 12, '15': 15, '14': 14, '17': 17, '16': 16, '19': 19, '18': 18, '1': 1, '0': 0, '3': 3, '2': 2, '5': 5, '4': 4, '7': 7, '6': 6, '9': 9, '8': 8}, 'name_to_idx': {'11': 11, '10': 10, '13': 13, '12': 12, '15': 15, '14': 14, '17': 17, '16': 16, '19': 19, '18': 18, '1': 1, '0': 0, '3': 3, '2': 2, '5': 5, '4': 4, '7': 7, '6': 6, '9': 9, '8': 8}}
>>> M_c
{'idx_to_name': {'0': 0}, 'column_metadata': [{'code_to_value': {}, 'value_to_code': {}, 'modeltype': 'normal_inverse_gamma'}], 'name_to_idx': {0: 0}}
>>> state = State.p_State(M_c, T)

Then nothing happens.

@ghost ghost assigned dlovell Nov 26, 2013
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