This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This code is used to visualize | |
http://deeplearning.net/tutorial/mlp.html#tips-and-tricks-for-training-mlps | |
Usage: put the following on 389th line | |
title = "whatever you want" | |
plot_pca(classifier, x, train_set_x, train_set_y, index=epoch, title=title) | |
""" | |
def plot_pca(classifier, x_symbol, x_data, y_data, index=0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import matplotlib | |
matplotlib.use('Agg') | |
except ImportError: | |
pass | |
import chainer | |
import chainer.functions as F | |
import chainer.links as L | |
from chainer import training |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.