fastFM icon indicating copy to clipboard operation
fastFM copied to clipboard

Question: Restrict Columns Involved with Interaction

Open AllardJM opened this issue 9 years ago • 1 comments

Is there a way or a work-around to run a FM on a standard regression type data set but only allow the factorized interaction between certain column sets? For example only allow interactions between column A and columns B through Z?

AllardJM avatar Nov 20 '15 15:11 AllardJM

@AllardJM That's currently not implemented, but excluding certain columns from the second order interactions shouldn't be to complicated to do. What's you motivation?

For the ALS/CD solver the following hack would be possible (let's assume you want to exclude column A):

  • set the initial values for column A to zero
  • never update the value in column A (skip p==A in https://github.com/ibayer/fastFM-core/blob/master/src/ffm_als_mcmc.c#L173 )

ibayer avatar Nov 23 '15 09:11 ibayer