fix condition for shallow embedding and separate FeatureAnalysis from transformation