# LinkParams

**URL:** <https://discourse.numenta.org/t/linkparams/2605>\
**Category:** NuPIC\
**Created:** [July 28, 2017, 9:08pm UTC](https://discourse.numenta.org/t/linkparams/2605 "2017-07-28T21:08:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Sergey](https://discourse.numenta.org/u/Sergey)\
**Post date:** [July 28, 2017, 9:08pm UTC](https://discourse.numenta.org/t/linkparams/2605/1 "2017-07-28T21:08:03Z")

</div>

Hello

Do you have some information about the fourth parameters linkParams in function links. network.link(‘Region from’, ‘Region to’, ‘UniformLink’, ‘What is sent by these parameters’) Where can I find docs or examples about linkParams ?

Thanx a lot !

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [July 31, 2017, 3:52pm UTC](https://discourse.numenta.org/t/linkparams/2605/2 "2017-07-31T15:52:02Z")

</div>

You are right @Sergey, there’s not much info on [`Network.link`](http://nupic.docs.numenta.org/1.0.0/api/network/network.html#nupic.engine.Network.link) in the API docs. @scott Do you know anywhere in our code where this is explained?

---

<div class="post-metadata">

**Author:** ![scott](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/scott/32/170_2.png) [@scott](https://discourse.numenta.org/u/scott)\
**Post date:** [July 31, 2017, 6:22pm UTC](https://discourse.numenta.org/t/linkparams/2605/3 "2017-07-31T18:22:12Z")

</div>

The last argument contains yaml-serialized parameters that are specific to the link policy. This gets passed to links as “linkParams” in the C++ engine code:

> <https://github.com/numenta/nupic.core/blob/fab02ffb8d8ea067fb80c5f835d1c2830e7ff869/src/nupic/engine/Link.hpp#L120>

which passes it to “createLinkPolicy”:

> <https://github.com/numenta/nupic.core/blob/fab02ffb8d8ea067fb80c5f835d1c2830e7ff869/src/nupic/engine/Link.cpp#L102>

which passes them into the link type construction, which is currently hard-coded here:

> <https://github.com/numenta/nupic.core/blob/fab02ffb8d8ea067fb80c5f835d1c2830e7ff869/src/nupic/engine/LinkPolicyFactory.cpp#L38-L65>

---

<div class="post-metadata">

**Author:** ![scott](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/scott/32/170_2.png) [@scott](https://discourse.numenta.org/u/scott)\
**Post date:** [July 31, 2017, 6:23pm UTC](https://discourse.numenta.org/t/linkparams/2605/4 "2017-07-31T18:23:55Z")

</div>

And FWIW, we usually just use UniformLink without any parameters but if you are curious you can look at the individual link policy classes to see what parameters they support. Here is UniformLink as an example:

> <https://github.com/numenta/nupic.core/blob/fab02ffb8d8ea067fb80c5f835d1c2830e7ff869/src/nupic/engine/UniformLinkPolicy.cpp#L62>
