Open imerelli opened 4 months ago
Hi @imerelli
I don't recommend using that example. Instead follow any other on the readme: https://github.com/earmingol/cell2cell/blob/master/README.md.
Regarding your issue, a quick way to solve is to add to your command the parameter svd
and pick any of the options that the error is giving you. For example, add svd='truncated_svd'
.
fig, error = tensor.elbow_rank_selection(upper_rank=25,
runs=10,
init='svd', # If it outputs a memory error, replace by 'random'
svd='truncated_svd',
automatic_elbow=True,
random_state=888,
filename=None # Put a path (e.g. ./Elbow.png) to save the figure
)
Alternatively replace init='svd'
with init='random'
.
fig, error = tensor.elbow_rank_selection(upper_rank=25,
runs=10,
init='random', # If it outputs a memory error, replace by 'random'
automatic_elbow=True,
random_state=888,
filename=None # Put a path (e.g. ./Elbow.png) to save the figure
)
Also, what versions of tensorly and numpy are you using?
I hope this helps.
Hi, I'm trying to run this example: Tensor-cell2cell-PBMC.ipynb
with c2c.version = '0.7.3'
But at this step:
fig, error = tensor.elbow_rank_selection(upper_rank=25, runs=10, init='svd', # If it outputs a memory error, replace by 'random' automatic_elbow=True, random_state=888, filename=None # Put a path (e.g. ./Elbow.png) to save the figure )
I get this error:
Any idea about to solve this?