<div dir="ltr">Hi!<br><br>The errors are quite small compared to the machine precision. As the reduction is also an approximation of the underlying manifold, not an "isotropic" one as well (you can see int he example that red points are less squashed together than blue ones), you won't have a perfect reconstruction either.<br>In a way, if you can reproduce in the reduced space the same distances (or barycenters for LLE) compared the original space, then you can have a perfect reconstruction (but it will still be subject to floating point precision). For the sphere, you can't: take 4 points, can you make the fourth as a barycenter of the other 3? No. That's the error you are seeing.<br><br>Cheers,<br><br>Matthieu<br><br><br>2016-06-16 10:12 GMT+01:00 Unger, Jörg <<a href="mailto:joerg.unger@bam.de">joerg.unger@bam.de</a>>:<br>><br>> I’ve tried the example that is available here<br>><br>>  <br>><br>> <a href="http://scikit-learn.org/stable/auto_examples/manifold/plot_manifold_sphere.html">http://scikit-learn.org/stable/auto_examples/manifold/plot_manifold_sphere.html</a><br>><br>>  <br>><br>> These are essentially points on a 3D sphere, so the dimension of the embedded manifold is two.<br>><br>> I’ve changed the example a little bit to extract the error as well. So instead of<br>><br>>  <br>><br>>     trans_data = manifold\<br>><br>>         .LocallyLinearEmbedding(n_neighbors, 2,<br>><br>>                                 method=method).fit_transform(sphere_data).T<br>><br>>  <br>><br>> I’ve done something like<br>><br>>     solver = manifold.LocallyLinearEmbedding(n_neighbors, dim_y, method=method)<br>><br>>     trans_data = solver.fit_transform(sphere_data).T<br>><br>>     error = solver.reconstruction_error_<br>><br>>  <br>><br>> I would have expected the error to be significant for dim_y=1, since I can’t reproduce with just a single coordinate the results. For dim_y=2, I expected a significant decrease, and for dim_y=3, I expected to exactly recover the original result.<br>><br>>  <br>><br>> What I get is (for standard LLE)<br>><br>> dim_y = 1 : error = 1.62031573333e-07<br>><br>> dim_y = 2 : error = 1.79465538543e-06<br>><br>> dim_y = 3 : error = 7.00280676182e-06<br>><br>>  <br>><br>> Could anyone explain, why I do not get the expected results?<br>><br>>  <br>><br>> Furthermore, is there an option to retransform the coordinates from the local dimension to the global dimension? I’m interested in transforming the original global samples to local coordinates (this is done via the transform method), but then I would like to transform samples from coordinates in the embedded space back into the global space.<br>><br>>  <br>><br>> Best regards,<br>><br>> Jörg F. Unger<br>><br>><br>> ------------------------------------------------------------------------------<br>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic<br>> patterns at an interface-level. Reveals which users, apps, and protocols are<br>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,<br>> J-Flow, sFlow and other flows. Make informed decisions using capacity planning<br>> reports. <a href="http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381">http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381</a><br>> _______________________________________________<br>> Scikit-learn-general mailing list<br>> <a href="mailto:Scikit-learn-general@lists.sourceforge.net">Scikit-learn-general@lists.sourceforge.net</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/scikit-learn-general">https://lists.sourceforge.net/lists/listinfo/scikit-learn-general</a><br>><br><br><br><br>-- <br>Information System Engineer, Ph.D.<br>Blog: <a href="http://blog.audio-tk.com/">http://blog.audio-tk.com/</a><br>LinkedIn: <a href="http://www.linkedin.com/in/matthieubrucher">http://www.linkedin.com/in/matthieubrucher</a><br><br><br><br>-- <br>Information System Engineer, Ph.D.<br>Blog: <a href="http://blog.audio-tk.com/">http://blog.audio-tk.com/</a><br>LinkedIn: <a href="http://www.linkedin.com/in/matthieubrucher">http://www.linkedin.com/in/matthieubrucher</a></div>