From 0130c249b4e7a643f5ce15bf415d03260399e587 Mon Sep 17 00:00:00 2001 From: Wuwei Lin Date: Sat, 16 Jun 2018 15:10:39 +0800 Subject: [PATCH] Use transform instead of embed --- .../python/converter_stochasticproximityembedding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/undocumented/python/converter_stochasticproximityembedding.py b/examples/undocumented/python/converter_stochasticproximityembedding.py index 16684987d13..27843bcc1e0 100644 --- a/examples/undocumented/python/converter_stochasticproximityembedding.py +++ b/examples/undocumented/python/converter_stochasticproximityembedding.py @@ -14,10 +14,10 @@ def converter_stochasticproximityembedding (data_fname, k): # Embed with local strategy converter.set_k(k) converter.set_strategy(SPE_LOCAL) - converter.embed(features) + features = converter.transform(features) # Embed with global strategy converter.set_strategy(SPE_GLOBAL) - converter.embed(features) + features = converter.transform(features) return features except ImportError: