# EarlyStoppingTrainer

**URL:** <https://community.konduit.ai/t/earlystoppingtrainer/458>\
**Category:** DL4J\
**Created:** [April 27, 2020, 1:21am UTC](https://community.konduit.ai/t/earlystoppingtrainer/458 "2020-04-27T01:21:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![camhammel](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@camhammel](https://community.konduit.ai/u/camhammel)\
**Post date:** [April 27, 2020, 1:21am UTC](https://community.konduit.ai/t/earlystoppingtrainer/458/1 "2020-04-27T01:21:57Z")

</div>

Hi everyone,

Is there any way to return a MultiLayerNetwork from using the EarlyStoppingTrainer? From what I understand the trainer is only able to return a Model object, and I don’t see any way to convert the model to the network object for use in evaluating the testing data…

Best regards!

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [April 27, 2020, 7:14am UTC](https://community.konduit.ai/t/earlystoppingtrainer/458/2 "2020-04-27T07:14:04Z")

</div>

Depending on the network configuration you use the trainer will return to you either a CompuationGraph or a MultiLayerNetwork, as you know exactly which one is will be, you can just cast that to the appropriate class in order to access any specific methods.
