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

Why TypeError: 'float' object cannot be interpreted as an index ? #6

Open
hl-henry opened this issue Aug 3, 2019 · 0 comments
Open

Comments

@hl-henry
Copy link

hl-henry commented Aug 3, 2019

Macintosh# python financeInference.py
left timesteps: = 3
right timesteps: = 13
Use perturbation node penalty function
number of samples per time: 3
lambda = 0.18, beta = 13
analyze stock data
Distributed ADMM (4 processors)
Iteration 1
Traceback (most recent call last):
File "financeInference.py", line 417, in
gvx, empCov_set = solveProblem(gvx, index_penalty, cov_mode, alpha, beta, timesteps, timeShift, Cov_set, use_kernel, sigma, sample_set, empCov_set, eps_abs, eps_rel)
File "financeInference.py", line 327, in solveProblem
gvx.Solve(EpsAbs=eps_abs, EpsRel=eps_rel,Verbose=True,MaxIters=500)
File "/private/var/root/TVGL/PaperCode/inferGraphPN.py", line 147, in Solve
Verbose)
File "/private/var/root/TVGL/PaperCode/inferGraphPN.py", line 437, in __SolveADMM
pool.map(ADMM_x, node_list)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 251, in map
return self.map_async(func, iterable, chunksize).get()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 567, in get
raise self._value
TypeError: 'float' object cannot be interpreted as an index

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