Giter Club home page Giter Club logo

wfm's Introduction

Weighted Factorization Machines

This is an implementation of Weighted Factorization Machines (WFMs) with tensorflow based on tffm.

Documentation

Weighted Factorization Machines (WFM) is an extension to Factorization Machines where additional weight parameters are learned for groups of features (e.g. users, items and context).

This repository is an implementation of WFM with python and tensorflow. The implementation supports reading of multiple datasets, training and evalation. WFM can be used by its command line interface or by calling its API. Next section describes the usage of command line interface. This section will be completed with more details. For questions please contact: b DOT loni AT tudelf DOT nl.

Usage

usage: wfm.py [-h] [--dataset ml1m/frappe/kassandra/msd/goodbooks]
              [--model bpr/fm/fmp/wfm/wfmp/wmf] [--load_model FOLDER_PATH]
              [--save_model FOLDER_PATH] [--epochs N] [--eval_freq N]
              [--eval_results FILE_PATH] [--order N] [--k K]
              [--hyper_params LR,REG,STD] [--batch_size N]
              [--has_context true/false] [--implicit true/false]
              [--weights all-one/all-diff/c-one/c-diff]
              [--all-conf true/false]

Weighted Factorization Machines

optional arguments:
  -h, --help            show this help message and exit
  --dataset ml1m/frappe/kassandra/msd/goodbooks
                        name of dataset (default: )
  --model bpr/fm/fmp/wfm/wfmp/wmf
                        name of the model (default: fmp)
  --load_model FOLDER_PATH
                        the path to the model tf model folder (default: None)
  --save_model FOLDER_PATH
                        folder path to save the tf model (default: None)
  --epochs N            number of epochs (default: 10)
  --eval_freq N         evaluate every N epochs (default: 10)
  --eval_results FILE_PATH
                        name of the file to save evaluation results to
                        (default: None)
  --order N             order of FM (default: 2)
  --k K                 number of latent factors (default: 10)
  --hyper_params LR,REG,STD
                        comma-separated list of hyper-parameters:
                        LearningRate, Regularization, InitStd. (default:
                        0.01,0.01,0.01)
  --batch_size N        number of samples in each mini-batch (default: 10000)
  --has_context true/false
                        Whether data has context or not (default: True)
  --implicit true/false
                        Whether dataset is implicit or explicit (default:
                        True)
  --weights all-one/all-diff/c-one/c-diff
                        how the weights should be initialized (default: c-dif)
  --all-conf true/false
                        Run experiments with pre-defined configurartions
                        (default: False)

wfm's People

Contributors

babakx avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.