pyconstruct.learners.StructuredPerceptron.phi¶
-
StructuredPerceptron.
phi
(X, Y, **kwargs)¶ Computes the feature vector for the given input and output objects.
Parameters: - X (numpy.ndarray) – An array of input examples. The first dimension must be the number of samples.
- Y (numpy.ndarray) – An array of output objects.
Returns: The array of feature vectors.
Return type: numpy.ndarray