Skip to content

Commit

Permalink
Fix jit arg error in hmm example (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzo authored and neerajprad committed Oct 22, 2018
1 parent 379ffef commit 9230599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/hmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def main(args):
# We'll train on small minibatches.
logging.info('Step\tLoss')
for step in range(args.num_steps):
loss = svi.step(sequences, lengths, args, batch_size=args.batch_size)
loss = svi.step(sequences, lengths, args=args, batch_size=args.batch_size)
logging.info('{: >5d}\t{}'.format(step, loss / num_observations))

# We evaluate on the entire training dataset,
Expand All @@ -269,7 +269,7 @@ def main(args):
if args.truncate:
lengths.clamp_(max=args.truncate)
num_observations = float(lengths.sum())
test_loss = elbo.loss(model, guide, sequences, lengths, args, include_prior=False)
test_loss = elbo.loss(model, guide, sequences, lengths, args=args, include_prior=False)
logging.info('test loss = {}'.format(test_loss / num_observations))

# We expect models with higher capacity to perform better,
Expand Down

0 comments on commit 9230599

Please sign in to comment.