简体   繁体   English

如何从保存的Dynet模型中读取“随机种子”

[英]How to read back the “random-seed” from a saved model of Dynet

I have a model already trained by dynet library. 我有一个已经由dynet库训练的模型。 But i forget the --dynet-seed parameter when training this model. 但是在训练该模型时,我忘记了--dynet-seed参数。 Does anyone know how to read back this parameter from the saved model? 有谁知道如何从保存的模型中读取此参数? Thank you in advance for any feedback. 预先感谢您的任何反馈。

You can't read back the seed parameter. 您无法读回种子参数。 Dynet model does not save the seed parameter. Dynet模型不保存种子参数。 The obvious reason is, it is not required at testing time. 显而易见的原因是,在测试时不需要。 Seed is only used to set fixed initial weights, random shuffling etc. for different experimental runs. 种子仅用于为不同的实验运行设置固定的初始权重,随机改组等。 At testing time no parameter initialisation or shuffling is required. 在测试时,不需要参数初始化或改组。 So, no need to save seed parameter. 因此,无需保存种子参数。

To the best of my knowledge, none of the other libraries like tensorflow, pytorch etc. save the seed parameter as well. 据我所知,tensorflow,pytorch等其他库都没有保存seed参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM