simdata = gen_data(n = 100, tps = ["ter", "con"])
print(simdata['X'][ : 6, : ])
estimate = latentcor(simdata['X'], tps = ["ter", "con"])
print(estimate['R'])
#####The following error was obtained:
estimate = latentcor(simdata['X'], tps = ["ter", "con"])
print(estimate['R'])
Traceback (most recent call last):
Cell In[14], line 1
estimate = latentcor(simdata['X'], tps = ["ter", "con"])
File ~/anaconda3/lib/python3.10/site-packages/latentcor/latentcor.py:509 in latentcor
R_lower[comb_select] = r_switch.r_approx(self = r_switch, K = K, zratio1 = zratio1, zratio2 = zratio2, comb = comb, tol = tol, ratio = ratio)
File ~/anaconda3/lib/python3.10/site-packages/latentcor/latentcor.py:245 in r_approx
bound = r_switch.bound_switch(self = r_switch, comb = comb, zratio1 = zratio1, zratio2 = zratio2).flatten()
File ~/anaconda3/lib/python3.10/site-packages/latentcor/latentcor.py:194 in bound_switch
return method(self = r_switch, zratio1 = zratio1, zratio2 = zratio2)
TypeError: r_switch.bound_switch.<locals>.<lambda>() got an unexpected keyword argument 'self'
Description
When running the following provided examples:
What I Did