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

Capture zero division error when all column data is nan #226

Open
fsaad opened this issue Sep 11, 2017 · 0 comments
Open

Capture zero division error when all column data is nan #226

fsaad opened this issue Sep 11, 2017 · 0 comments

Comments

@fsaad
Copy link
Collaborator

fsaad commented Sep 11, 2017

RuntimeError: Subprocess failed: Traceback (most recent call last):
  File "/scratch/fsaad/cgpm/cgpm/utils/parallel_map.py", line 50, in process_input
    ok, fx = True, f(x)
  File "/scratch/fsaad/cgpm/cgpm/crosscat/engine.py", line 37, in _intialize
    state = State(X, rng=gu.gen_rng(seed), **kwargs)
  File "/scratch/fsaad/cgpm/cgpm/crosscat/state.py", line 92, in __init__
    self.crp.transition_hyper_grids([1]*self.n_cols())
  File "/scratch/fsaad/cgpm/cgpm/mixtures/dim.py", line 175, in transition_hyper_grids
    [x for x in X if not math.isnan(x)], n_grid=n_grid)
  File "/scratch/fsaad/cgpm/cgpm/primitives/crp.py", line 150, in construct_hyper_grids
    grids['alpha'] = gu.log_linspace(1./len(X), len(X), n_grid)
ZeroDivisionError: float division by zero
@fsaad fsaad changed the title Capture zero division error in when all column data is nan Capture zero division error when all column data is nan Sep 11, 2017
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

1 participant