Giter Site home page Giter Site logo

Comments (4)

katbusch avatar katbusch commented on August 26, 2024

And another

Error in puma 03720
Traceback (most recent call last):
  File "scripts/generate_all_pumas.py", line 123, in generate_population
    marginals, households, persons)
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/allocation.py", line 73, in from_cleaned_data
    HouseholdAllocator._allocate_households(households, persons, marginals)
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/allocation.py", line 147, in _allocate_households
    hh_table, A, B, w_extend, gamma * mu_extend.T, meta_gamma
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/listbalancer.py", line 168, in balance_multi_cvx
    weights_out = np.insert(weights_out, zero_marginals, zero_weights, 0)
  File "/home/kat/.local/lib/python2.7/site-packages/numpy/lib/function_base.py", line 4937, in insert
    old_mask[indices] = False
IndexError: index 29 is out of bounds for axis 1 with size 29

from doppelganger.

katbusch avatar katbusch commented on August 26, 2024

And one is still not converging:

Error in puma 03713
Traceback (most recent call last):
  File "scripts/generate_all_pumas.py", line 123, in generate_population
    marginals, households, persons)
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/allocation.py", line 73, in from_cleaned_data
    HouseholdAllocator._allocate_households(households, persons, marginals)
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/allocation.py", line 154, in _allocate_households
    discretized_hh_weights = discretize_multi_weights(hh_table, hh_weights)
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/listbalancer.py", line 225, in discretize_multi_weights
    prob.solve(verbose=verbose_solver)
  File "/home/kat/.local/lib/python2.7/site-packages/cvxpy/problems/problem.py", line 210, in solve
    return self._solve(*args, **kwargs)
  File "/home/kat/.local/lib/python2.7/site-packages/cvxpy/problems/problem.py", line 336, in _solve
    self._update_problem_state(results_dict, sym_data, solver)
  File "/home/kat/.local/lib/python2.7/site-packages/cvxpy/problems/problem.py", line 448, in _update_problem_state
    "Solver '%s' failed. Try another solver." % solver.name())

from doppelganger.

katbusch avatar katbusch commented on August 26, 2024

Looks like we're getting another broadcast error, eg in PUMA 03701:

Traceback (most recent call last):
  File "scripts/generate_all_pumas.py", line 123, in generate_population
    marginals, households, persons)
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/allocation.py", line 73, in from_cleaned_data
    HouseholdAllocator._allocate_households(households, persons, marginals)
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/allocation.py", line 147, in _allocate_households
    hh_table, A, B, w_extend, gamma * mu_extend.T, meta_gamma
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/listbalancer.py", line 180, in balance_multi_cvx
    np.zeros((n_controls, 1)), axis=1)
  File "/home/kat/.local/lib/python2.7/site-packages/numpy/lib/function_base.py", line 4856, in insert
    arr[...] = values
ValueError: could not broadcast input array from shape (4,1) into shape ()

from doppelganger.

katbusch avatar katbusch commented on August 26, 2024

And only one PUMA (00101) is seeing this issue:

Traceback (most recent call last):
  File "scripts/generate_all_pumas.py", line 123, in generate_population
    marginals, households, persons)
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/allocation.py", line 73, in from_cleaned_data
    HouseholdAllocator._allocate_households(households, persons, marginals)
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/allocation.py", line 147, in _allocate_households
    hh_table, A, B, w_extend, gamma * mu_extend.T, meta_gamma
  File "/home/kat/.local/lib/python2.7/site-packages/doppelganger/listbalancer.py", line 143, in balance_multi_cvx
    prob.solve(verbose=verbose_solver)
  File "/home/kat/.local/lib/python2.7/site-packages/cvxpy/problems/problem.py", line 210, in solve
    return self._solve(*args, **kwargs)
  File "/home/kat/.local/lib/python2.7/site-packages/cvxpy/problems/problem.py", line 332, in _solve
    kwargs)
  File "/home/kat/.local/lib/python2.7/site-packages/cvxpy/problems/solvers/ecos_intf.py", line 126, in solve
    **solver_opts)
  File "/home/kat/.local/lib/python2.7/site-packages/ecos.py", line 62, in solve
    return _ecos.csolve((m,n1,p), c, data, indices, colptr, h, dims, A.data, A.indices, A.indptr, b, **kwargs)
RuntimeError: Internal problem occurred in ECOS while setting up the problem.
Please send a bug report with data to Alexander Domahidi.
Email: [email protected]

from doppelganger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.