Spanish
Idiomas
English
Bengali
French
Hindi
Japanese
Korean
Russian
Spanish
Tamil
Turkish



SamplingNeuralNetwork.sample

SamplingNeuralNetwork.sample(input_data, weights)[fuente]

Samples from the network. Returns an array of samples. Format depends on the set interpret function.

Parámetros:
  • input_data (List[float] | ndarray | float) – input data of the shape (num_inputs). In case of a single scalar input it is directly cast to and interpreted like a one-element array.

  • weights (List[float] | ndarray | float) – trainable weights of the shape (num_weights). In case of a single scalar weight it is directly cast to and interpreted like a one-element array.

Devuelve:

The sample results of the neural network of the shape (output_shape).

Tipo del valor devuelto:

ndarray