Deeplearning4j - 不能使用 UIServer 学习 WordVectors?
Deeplearning4j - Can not use UIServer in learning WordVectors?
现在,我正在尝试使用 Deeplearning4j 学习 GloVe。学习过程本身进展顺利。
所以,我想在参考this page的同时,用UIServer监控这个学习过程。在此页面上,使用以下代码启用 UIServer。
// Define model
MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()
// omitted
.build();
MultiLayerNetwork net = new MultiLayerNetwork(conf);
// Enable UIServer
UIServer uiServer = UIServer.getInstance();
StatsStorage statsStorage = new InMemoryStatsStorage();
uiServer.attach(statsStorage);
net.setListeners(new StatsListener(statsStorage));
但是,由于setListeners方法在包括GloVe等的WordVectors接口中不存在,所以无法通过一般方法进行监听。有没有好的GUI监控方式?
当前代码如下所示。
// Define model
Glove glove = new Glove.Builder()
// omitted
.build();
/**** I wanted to enable UIServer on this line. ****/
// Start training
glove.fit();
这些单词模型不完全是神经网络,因此它们没有训练的可视化。
现在,我正在尝试使用 Deeplearning4j 学习 GloVe。学习过程本身进展顺利。
所以,我想在参考this page的同时,用UIServer监控这个学习过程。在此页面上,使用以下代码启用 UIServer。
// Define model
MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()
// omitted
.build();
MultiLayerNetwork net = new MultiLayerNetwork(conf);
// Enable UIServer
UIServer uiServer = UIServer.getInstance();
StatsStorage statsStorage = new InMemoryStatsStorage();
uiServer.attach(statsStorage);
net.setListeners(new StatsListener(statsStorage));
但是,由于setListeners方法在包括GloVe等的WordVectors接口中不存在,所以无法通过一般方法进行监听。有没有好的GUI监控方式?
当前代码如下所示。
// Define model
Glove glove = new Glove.Builder()
// omitted
.build();
/**** I wanted to enable UIServer on this line. ****/
// Start training
glove.fit();
这些单词模型不完全是神经网络,因此它们没有训练的可视化。