SamplingNeuralNetwork.probability_gradients¶
- SamplingNeuralNetwork.probability_gradients(input_data, weights)[स्रोत]¶
Probability gradients of histogram resulting from the network. Format depends on the set interpret function. Shape is (input_grad, weights_grad), where each grad has one dict for each parameter and each dict contains as value the derivative of the probability of measuring the key.
- मापदण्ड
input_data (
Union
[List
[float
],ndarray
,float
,None
]) -- 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 (
Union
[List
[float
],ndarray
,float
,None
]) -- 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.
- प्रदत्त प्रकार
Tuple
[Union
[ndarray
,SparseArray
],Union
[ndarray
,SparseArray
]]- प्रदत्त
The probability gradients.