Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the model? #1186

Open
azureskyL opened this issue Apr 7, 2017 · 2 comments
Open

How to use the model? #1186

azureskyL opened this issue Apr 7, 2017 · 2 comments

Comments

@azureskyL
Copy link

I follow the Introduction tutorial of Block(http://blocks.readthedocs.io/en/latest/tutorial.html) and train a model. But how to use it? I mean how to use the model finish the task describe in Introduction tutorial.
-------------------------------------------------------------------------------
Training status:
batch_interrupt_received: False
epoch_interrupt_received: False
epoch_started: False
epochs_done: 1
iterations_done: 235
received_first_batch: True
resumed_from: None
training_started: True
Log records from the iteration 235:
test_cost_with_regularization: 0.657896590087
training_finish_requested: True
training_finished: True

@azureskyL
Copy link
Author

anyone can help me?

@dmitriy-serdyuk
Copy link
Contributor

Sorry for a late response, everyone is busy nowadays.

Blocks just wraps Theano, so you can compile a function just like in Theano and run it for a single example. Take a look at the Model class, it is basically a computational graph. You can use its inputs and outputs to compile a function.

To apply your model to a test set, use the monitoring extension. You can run it after training (after_training=True flag for the constructor).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants