def computeRawLPPTransitMetric(binFlux, mapInfo):
    '\n    Perform the matrix transformation with LPP\n    Do the knn test to get a raw LPP transit metric number.\n    '
    Yorig = mapInfo.YmapMapped
    lpp = LocalityPreservingProjection(n_components=mapInfo.n_dim)
    lpp.projection_ = mapInfo.YmapM
    normBinFlux = (binFlux - mapInfo.YmapMean)
    inputY = lpp.transform(normBinFlux.reshape(1, (- 1)))
    knownTransitsY = Yorig[mapInfo.knnGood, :]
    (dist, ind) = knnDistance_fromKnown(knownTransitsY, inputY, mapInfo.knn)
    rawLppTrMetric = np.mean(dist)
    return (rawLppTrMetric, inputY)
Perform the matrix transformation with LPP
Do the knn test to get a raw LPP transit metric number.
def computeRawLPPTransitMetric(binFlux, mapInfo):
    '\n    Perform the matrix transformation with LPP\n    Do the knn test to get a raw LPP transit metric number.\n    '
    Yorig = mapInfo.YmapMapped
    lpp = LocalityPreservingProjection(n_components=mapInfo.n_dim)
    lpp.projection_ = mapInfo.YmapM
    normBinFlux = (binFlux - mapInfo.YmapMean)
    inputY = lpp.transform(normBinFlux.reshape(1, (- 1)))
    knownTransitsY = Yorig[mapInfo.knnGood, :]
    (dist, ind) = knnDistance_fromKnown(knownTransitsY, inputY, mapInfo.knn)
    rawLppTrMetric = np.mean(dist)
    return (rawLppTrMetric, inputY)