Skip to content

code does not work. my train and test data 1000x132 , 200x132. #7

Description

@usccolumbia

This function returns a zero matrix

def _phi(self, X, sigma=None):

    if sigma is None:
        sigma = self._sigma
    print(sigma , "****** sigma");
    print(X.shape)
    print((X-self._test_vectors).shape)
    #exit(-1)

    if self._phi_fitted:
        #print(np.exp(-np.sum((X-self._test_vectors)**2, axis=-1)/(2*sigma**2)))
        return np.exp(-np.sum((X-self._test_vectors)**2, axis=-1)/(2*sigma**2))
    raise Exception('Phi not fitted.')

'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions