Skip to content

Model output predication limit of top 100 #25

@dmhenke

Description

@dmhenke

At present, I do not see how to output more than the top 100 predicted hits on a model. For example:
_```
model <- paragraph2vec(x = df_d2v, type = "PV-DM"
vocab <- summary(model, type = "vocabulary", which = "docs")
Sentences <- "my bag of words"
sentences <- setNames(sentences, sentences)
sentences <- strsplit(sentences, split = " ")
model_predictions <-predict(
model,
newdata = sentences,
type = "nearest", which = "sent2doc", top_n = 100)

dim(model_predictions) is at max 100 rows

There appears to be no way to output the predictions for a model with more than 100 "vocabulary"s/doc_id.  Is there a workaround for generating predictions on all available "vocabulary"/doc_id?

Thank you,
David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions