Skip to content

Commit

Permalink
small bug transpose of phi in plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
adbrebs committed Mar 31, 2016
1 parent 89c1bdd commit 2eb7432
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def execute_virtual(self, batch_id):
# plot_coord(coord_gen,
# folder_path=self.folder_path,
# file_name='{}_'.format(batch_id) + self.file_name)
mats = [(a_gen, 'alpha'), (k_gen, 'kapa'), (p_gen.T, 'phi'),
p_gen = np.swapaxes(p_gen, 1, 2)
mats = [(a_gen, 'alpha'), (k_gen, 'kapa'), (p_gen, 'phi'),
(w_gen, 'omega')]
plot_generated_sequences(
coord_gen, mats,
Expand Down
2 changes: 1 addition & 1 deletion main_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
gain = 0.01
batch_size = 50 # batch_size
chunk = None
every = 1
every = 100
every_val = 1000
sample_strings = ['Jose is a raccoon !']*4
tmp_path = os.environ.get('TMP_PATH')
Expand Down
3 changes: 2 additions & 1 deletion sample_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
coord_ini_mat, cond, cond_mask,
h_ini_mat, k_ini_mat, w_ini_mat, options.bias)
print 'done in {} seconds'.format(time.clock()-beg)
mats = [(a_gen, 'alpha'), (k_gen, 'kapa'), (p_gen.T, 'phi'),
p_gen = np.swapaxes(p_gen, 1, 2)
mats = [(a_gen, 'alpha'), (k_gen, 'kapa'), (p_gen, 'phi'),
(w_gen, 'omega')]
print 'Printing...',
beg = time.clock()
Expand Down

0 comments on commit 2eb7432

Please sign in to comment.