'Compute the embedding vectors for data X
Parameters
X : {array-like, sparse matrix, BallTree, KDTree, NearestNeighbors}
Sample data, shape = (n_samples, n_features), in the form of a
numpy array, precomputed tree, or NearestNeighbors
object.
Returns
self : returns an instance of self.'

def fit(self, X, y=None):

    self._fit_transform(X)
    return self
