Skip to content

Commit

Permalink
running with flipped sign eigenvectors
Browse files Browse the repository at this point in the history
they diffinetly match the paper, but the sign is wrong for some of them
maybe it various over different runs?
tensorboard log-dir: log_data/May_18/May_18_22:47:26/

tensorboard log-dir:
  • Loading branch information
PeterMitrano committed May 19, 2017
1 parent d49af05 commit 03e3d80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dataset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def load(name):

info = datasets[name]

batch_size = 1000
batch_size = 500

with tf.name_scope('input'):
filename_queue = tf.train.string_input_producer([info.TRAIN_RECORD_PATH], name='train_queue')
Expand Down
8 changes: 4 additions & 4 deletions pcanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ def main():
train_pcanet_features, train_labels, summary = sess.run([m.output_features, train_label_batch, merged_summary])
writer.add_summary(summary, 0)

q = sess.run(m.x_eig1)
np.savetxt('eig.csv', np.squeeze(q))
exit(0)
# q = sess.run(m.x_eig1)
# np.savetxt('eig.csv', np.squeeze(q))
# exit(0)

# train linear SVM
svm = LinearSVC(C=1, fit_intercept=False)
Expand All @@ -220,7 +220,7 @@ def main():
scores = []
test_labels = sess.run(test_label_batch)
m.image_batch = test_image_batch
for i in range(10):
for i in range(4):
test_pcanet_features = sess.run(m.output_features)

score = svm.score(test_pcanet_features, test_labels)
Expand Down

0 comments on commit 03e3d80

Please sign in to comment.