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

Small dimensions problems #8

Open
miha-skalic opened this issue Aug 18, 2015 · 1 comment
Open

Small dimensions problems #8

miha-skalic opened this issue Aug 18, 2015 · 1 comment

Comments

@miha-skalic
Copy link

Two issues occur when working with small samples:

  • (rank = 1) problem.
    Running:
import numpy as np
from skfusion import fusion

R12 = np.random.rand(30, 40)
R23 = np.random.rand(40, 50)

t1 = fusion.ObjectType('Type 1', 2)
t2 = fusion.ObjectType('Type 2', 9)
t3 = fusion.ObjectType('Type 3', 1)

relations = [fusion.Relation(R12, t1, t2),
             fusion.Relation(R23, t2, t3)]
fusion_graph = fusion.FusionGraph(relations)

fuser = fusion.Dfmf()
fuser.fuse(fusion_graph)

yields: KeyError: (ObjectType("Type 1"), ObjectType("Type 3"))
the code works if t3 rank is >= 2

  • (dim < 5) problem.

Running:

import numpy as np
from skfusion import fusion

R12 = np.random.rand(30, 4)
R23 = np.random.rand(4, 50)

t1 = fusion.ObjectType('Type 1', 2)
t2 = fusion.ObjectType('Type 2', 9)
t3 = fusion.ObjectType('Type 3', 2)

relations = [fusion.Relation(R12, t1, t2),
             fusion.Relation(R23, t2, t3)]
fusion_graph = fusion.FusionGraph(relations)


fuser = fusion.Dfmf()
fuser.fuse(fusion_graph)

yield numpy warning and reconstructed matrices have NaN. This works if R12 has second dimension greater than 4.

@niloole
Copy link

niloole commented Apr 3, 2019

I want to run a program that predict gene function, but when I run that code error happen that
"'Dfmf' object has no attribute 'set_scheme'"
I see code of dfmf but there isn't set_scheme.
how can i correct it?

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

2 participants