isanet.optimizer.utils

isanet.optimizer.utils.l_norm(l_v)

Computes the norm of a list of numpy array.

Parameters

l_v (array-like) –

Returns

The norm of l_v.

Return type

float

isanet.optimizer.utils.l_scalar_product(l_v, l_w)

Computes the scalar product between two list of numpy array.

Parameters
  • l_v (array-like) –

  • l_w (array-like) –

Returns

The scalar product between l_v and l_w.

Return type

float

isanet.optimizer.utils.make_vector(l_v)

Takes a list of numpy array and returns a column vector.

Parameters

l_v (array-like) –

Returns

Array with dimensions (n, 1).

Return type

array

isanet.optimizer.utils.restore_w_to_model(model, w)
Takes an array of weights and transforms it into a list

of matrices with dimensions taken from the model passed.

Parameters
  • model (isanet.model.MLP) – The Multilayer Perceptron object.

  • w (array) –

Returns

Return type

array-like