Skip to content

ATNoG/adjusted-mf

Repository files navigation

adjusted-mf

This repository contains the code of the experiments described in "Misalignment problem in matrix decomposition with missing values" by Sofia Fernandes, Mário Antunes, Diogo Gomes and Rui L. Aguiar

Requirements

The code is written in Python 3.6. To install the required libraries run:

pip install -r requeriments.txt

Usage

Datasets

Except for the indoor climate dataset, the datasets used are publicly available, and should be downloaded and renamed as follows:

  • the gas sensor dataset is available here - the file should be unzipped into folder experiments_on_gas_sensor_dataset/data/gas_sensor
  • daily average temperature datasets should be downloaded using the script get_noaa_temp_data.R at experiments_on_temperature_datasets/data, along with a token that should be requested at NOAA's National Climatic Data Center
  • Seattle traffic dataset can be obtained from here - the file should renamed to 'seattle.csv' and placed at experiments_on_traffic_datasets/data
  • Guangzhou traffic dataset can be obtained from here - the file should be renamed to 'guangzhou.mat' and placed at experiments_on_traffic_datasets/data

The daily average temperature and traffic datasets require further preprocessing that is carried out by running the preprocessing scripts (found in the corresponding 'data' folders).

Run

After downloading and preprocessing the datasets as previously indicated, the experiments scripts should be run in the corresponding experiment folder, for example to run the experiments on the gas sensor data, run:

cd experiments_on_gas_sensor
mkdir results
python gas_NMF_adjustment_exps.py

the script outputs the PRESS for the multiple settings and stores all the results in the results folder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published