Deeplearning4j - 无法在学习WordVectors中使用UIServer?

时间:2018-06-14 10:30:16

标签: java deeplearning4j

现在,我正在尝试使用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));

但是,由于WordVectors界面(包括GloVe等)中不存在 setListeners 方法,因此无法通过常规方法进行监视。有没有一种很好的方法来监控GUI?

目前的代码如下所示。

// Define model
Glove glove = new Glove.Builder()
    // omitted
    .build();

/**** I wanted to enable UIServer on this line. ****/

// Start training
glove.fit();

1 个答案:

答案 0 :(得分:0)

这些单词模型并非完全是神经网络,因此它们没有可视化的训练内容。