# Network API serialization

**URL:** <https://discourse.numenta.org/t/network-api-serialization/3468>\
**Category:** NuPIC\
**Tags:** question\
**Created:** [February 15, 2018, 5:22am UTC](https://discourse.numenta.org/t/network-api-serialization/3468 "2018-02-15T05:22:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kaikun](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/kaikun/32/2199_2.png) [@kaikun](https://discourse.numenta.org/u/kaikun)\
**Post date:** [May 6, 2018, 10:07am UTC](https://discourse.numenta.org/t/network-api-serialization/3468/3 "2018-05-06T10:07:18Z")

</div>

**Network serialization**

I currently attempt to serialize my network for better testing and generality. It uses the Network API and has 8 layers including next to the Spatial Pooler and Temporal Memory components from the htm-research repository (ExtendedTemporalMemory, UnionPooler) and Regions that are modified/created by myself.

I saw in [another thread](https://discourse.numenta.org/t/model-writetofile-error-exceeded-message-traversal-limit-see-capnp-readeroptions/2801/7) that the only way to serialize the network currently is to go through all the algorithms in each regions and save them separately and then load them again when creating a network.  
Is there any sample code of serializing with the network API? Or hints from other people that attempted this?

How far is the [New Serialization Plan](https://discourse.numenta.org/t/new-serialization-plan/2112) realized?

Kind regards

---

_[View the full topic](https://discourse.numenta.org/t/network-api-serialization/3468)._
