Fasttext: How to to see the parameters of trained models

Created on 26 Jan 2018  Â·  2Comments  Â·  Source: facebookresearch/fastText

I am trying to classify (./fasttext supervised -input train.txt -output model)my data sets and I want to see what are the parameters of my trained model I have got. I tried using model.args but it says command not found.

Most helpful comment

Hi @seemamishra33,

Have you tried using the dump subcommand?

To get the hyper-parameters of a trained model, you can do:

./fasttext dump MODEL_FILENAME args

Instead of args, you can use dict to get the vocabulary corresponding to the model, input to get the input embeddings or output to get the classifier weights (in case of a supervised model) or the output embeddings (in case of an unsupervised model).

Best

All 2 comments

Hi @seemamishra33,

Have you tried using the dump subcommand?

To get the hyper-parameters of a trained model, you can do:

./fasttext dump MODEL_FILENAME args

Instead of args, you can use dict to get the vocabulary corresponding to the model, input to get the input embeddings or output to get the classifier weights (in case of a supervised model) or the output embeddings (in case of an unsupervised model).

Best

Thanks a lot for reply
Well I just started using fasttext so, I am still learning. But I think
your response really helps.

Thanks

On Fri, Feb 16, 2018 at 9:28 AM, Edouard Grave notifications@github.com
wrote:

Hi @seemamishra33 https://github.com/seemamishra33,

Have you tried using the dump subcommand?

To get the hyper-parameters of a trained model, you can do:

./fasttext dump MODEL_FILENAME args

Instead of args, you can use dict to get the vocabulary corresponding to
the model, input to get the input embeddings or output to get the
classifier weights (in case of a supervised model) or the output embeddings
(in case of an unsupervised model).

Best

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/facebookresearch/fastText/issues/418#issuecomment-366302469,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARX6HOEgf03l0OCuZQQrk-gbY48A7RAoks5tVbrQgaJpZM4Ruvzx
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pengyu picture pengyu  Â·  3Comments

nomadlx picture nomadlx  Â·  3Comments

hughbzhang picture hughbzhang  Â·  3Comments

mino98 picture mino98  Â·  3Comments

leonardgithub picture leonardgithub  Â·  4Comments