Skip to content

The implementation of heterogeneous matrix factorization

Notifications You must be signed in to change notification settings

UMDataScienceLab/hmf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of the paper Heterogeneous Matrix Factorization: When Features Differ by Datasets

This repository contains the implementation of the paper Heterogeneous Matrix Factorization: When Features Differ by Datasets.

Files

solver.py implements the algorithm heterogeneous_matrix_factorization and heterogeneous_matrix_completion. main.py provides a few examples that call this function. For instance, running

python3 main.py --dataset=synthetic --logoutput=True

will apply hmf on the synthetic example.

torchimgpro.py, emailprocess.py, stockprocess.py are used for loading and preprocessing the video frames, email communication networks, and stock prices.

Data

The video frames are downloaded from BMC dataset

To run the experiment on video segmentation, firstly download the video from the BMC dataset, next extract the frames in the video into jpg files and name these jpg files as 0.jpg, 1.jpg, ... Then change frame_folder in line 14 of torchimgpro.py to the folder that contains all jpg files. Finally, run

python3 main.py --dataset=video --logoutput=True

The email network data are downloaded from Stanford Large Network Dataset Collection.

To run the experiment on temporal graph feature extraction, firstly download the email communication record from the SLNP dataset, next extract the txt file. Then change line 14 of emailprocess.py to the folder that contains txt file. Finally, run

python3 main.py --dataset=email --logoutput=True

About

The implementation of heterogeneous matrix factorization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages