# FluidMLPRegressor noob Q - save & reload weights?

**URL:** https://discourse.flucoma.org/t/fluidmlpregressor-noob-q-save-reload-weights/905
**Category:** Usage Questions
**Created:** [June 16, 2021, 5:34pm UTC](https://discourse.flucoma.org/t/fluidmlpregressor-noob-q-save-reload-weights/905 "2021-06-16T17:34:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![alicee](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/alicee/32/497_2.png) [@alicee](https://discourse.flucoma.org/u/alicee)
#### Post date: [June 16, 2021, 5:34pm UTC](https://discourse.flucoma.org/t/fluidmlpregressor-noob-q-save-reload-weights/905/1 "2021-06-16T17:34:15Z")

</div>

Hey gang,  
Pls excuse if this is covered elsewhere in this now epic discourse.

We are having loads of fun with MLP trained on cello mic (20 MFCCs) controlling CV on some analogue modular processing of the cello. Kinda inspired by Ashby style double feedback loops, but seeking ultra interestingness, rather than ultra stability.

We’ve just stumbled on a cool one. We can save the training data. But.

Q: can we save the weights and then reload them later?

Cheers,  
Alice

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [June 16, 2021, 10:28pm UTC](https://discourse.flucoma.org/t/fluidmlpregressor-noob-q-save-reload-weights/905/2 "2021-06-16T22:28:32Z")

</div>

yes, the mlp objects should save/write and load/read their state as any object as json. the write and read messages should do the trick.

---

<div class="post-metadata">

### Author: ![alicee](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/alicee/32/497_2.png) [@alicee](https://discourse.flucoma.org/u/alicee)
#### Post date: [June 17, 2021, 10:45am UTC](https://discourse.flucoma.org/t/fluidmlpregressor-noob-q-save-reload-weights/905/3 "2021-06-17T10:45:42Z")

</div>

doh. Grade 1 Flucoma. Sorry and thanks

---

<div class="post-metadata">

### Author: ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)
#### Post date: [June 17, 2021, 11:35am UTC](https://discourse.flucoma.org/t/fluidmlpregressor-noob-q-save-reload-weights/905/4 "2021-06-17T11:35:06Z")

</div>

There is a caveat though: the object’s interface will not be aware of the model you load yet.

So the object will work with the loaded state (for instance the hidden layer topology) but if you ask your instance what is its hidden parameter, it will give you the wrong answer.

In other words, you can read and write and soon it’ll behave 100% but for now you have to know the topology of what you are loading back. Does that help?

---

<div class="post-metadata">

### Author: ![alicee](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/alicee/32/497_2.png) [@alicee](https://discourse.flucoma.org/u/alicee)
#### Post date: [June 22, 2021, 7:29pm UTC](https://discourse.flucoma.org/t/fluidmlpregressor-noob-q-save-reload-weights/905/5 "2021-06-22T19:29:17Z")

</div>

Thanks. The topology is fixed, so all worked like a dream, thank you.
