cymr.network.Network.add_pre_weights#

Network.add_pre_weights(connect, f_segment, c_segment, weights, slope=1, intercept=0)#

Add pre-experimental weights to a network.

Parameters:
  • connect ({'fc', 'cf'}) – Connections to add weights to.

  • f_segment (tuple of str, str) – Sublayer and segment to use for the item layer.

  • c_segment (tuple of str, str) – Sublayer and segment to use for the context layer.

  • weights (numpy.array) – Items x context array of weights.

  • slope (double, optional) – Slope to multiply weights by before adding.

  • intercept (double, optional) – Intercept to add to weights.