lyst / lyst/lightfm

Can I use continuous variables as features. Such as Age, or Doc2Vec vector components.

Open
#598 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.1k
Forks
724
PR merge metrics
No merged PRs in 30d

Description

I'd like to use for example age as a user feature or the components of e.g. a Doc2Vec as item features. Take the doc2Vec as example. Say I have 5 compoments docvec=[1.2, -1.0, 3.4, -4.9, 0.0] fortthe first item and [2.2, ....] for the second and so on. I can create columns so that my item feature sparse matrix is
item= [
[0, 0, 1.2],
[0, 1, -1.0],
[0, 2, 3.4],
[0, 3, -4.9]
[0,0, 0.0],
[1, 0, 2.2],
[1, 1, ...]
]
The matris is really not sparse, but is anyway represented as such. This works in the sense that fit() gives a result but it takes some time. My question is: Is this supposed to work? the article doesn't say explicitly yes or no. Any help would be appreciated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by reviewing the article referenced in the issue and the fit() usage for continuous feature matrices; done means the documentation clearly states whether continuous values such as age and Doc2Vec components are supported and how they should be represented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, machine-learning
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.