コード例 #1
0
ファイル: InterfazNMF.py プロジェクト: saaperezru/Zentity
def relationMatrix(LD,LT1,LT2):
    """Create and return a matrix M(ControlLatentTopic list(LT1) vs ControlLatentTopic list(LT2)) 
       where each i,j position is the number of documents where the ith latent topic was the most important
       in the LT1 list, and the jth latent topic was the most important in the LT2 list.
   	        
       If for a document the belonging degree is not define this does not count.
    """
    return LTRelation.createMatrix(LD,LT1,LT2)
コード例 #2
0
ファイル: InterfazNMF.py プロジェクト: saaperezru/Zentity
def matrixImage(path, escale, M):
    """Make an image with the M matrix and save it.  
    """
    LTRelation.imagePrint(path, M, escale)