Closed loretoparisi closed 5 years ago
@loretoparisi Hi, yes your interpretation is correct as the user ID is not presented in the test file. We plan to add explicit user ID with embedding for this train mode so it is more clear.
@ledw thanks. So assumed I'm using this version, I would like to infer the predictions on a single item. When working in FastText I'm doing this like fasttext predict-prob my_model - 3
to get the 3 most likely prediction for my supervised model. Does StarSpace support this stdin
mode?
@loretoparisi Hi, the query_predict does provide functionality similar to the stdin
mode you mentioned. Check it out and let us know if that works for your case.
Looking at the current example
examples/recomm_user_artists.sh
, that is usingtrainMode 1
and apagespace
model I'm not sure how to interpret the results. The predictions files is likewhere the labels values should be the artist identifiers for a certain user, where "LHS" stands for left-hand-side and the label as "RHS" stands for right-hand-side, while in the train and test files I have like
that is a mapping created by the conversion script in the example that writes out a list of artist_id from the source dataset that has a format like
so this will create
where each row/example defines a user implicitly and it contains the labels of the artist fanned by the user.
Back to the predictions file, where is the user id in the output file? Is the example number/row hence
Example #5
stands for user 4 (since it starts from 0) that is the line 4 in the training set?