From 7b83812e37986c9adf9cccaeab360f1d4ffa846f Mon Sep 17 00:00:00 2001 From: MathieuCarriere Date: Wed, 17 Nov 2021 00:18:33 +0100 Subject: fix doc --- src/python/doc/ls_simplex_tree_tflow_itf_ref.rst | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/python/doc/ls_simplex_tree_tflow_itf_ref.rst') diff --git a/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst b/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst index 0a6764fa..3200b8e5 100644 --- a/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst +++ b/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst @@ -17,17 +17,6 @@ Example of gradient computed from lower-star filtration of a simplex tree import gudhi as gd st = gd.SimplexTree() - st.insert([0]) - st.insert([1]) - st.insert([2]) - st.insert([3]) - st.insert([4]) - st.insert([5]) - st.insert([6]) - st.insert([7]) - st.insert([8]) - st.insert([9]) - st.insert([10]) st.insert([0, 1]) st.insert([1, 2]) st.insert([2, 3]) @@ -40,7 +29,7 @@ Example of gradient computed from lower-star filtration of a simplex tree st.insert([9, 10]) F = tf.Variable([6.,4.,3.,4.,5.,4.,3.,2.,3.,4.,5.], dtype=tf.float32, trainable=True) - sl = LowerStarSimplexTreeLayer(simplextree=st, dimension=0) + sl = LowerStarSimplexTreeLayer(simplextree=st, dimensions=[0]) with tf.GradientTape() as tape: dgm = sl.call(F) -- cgit v1.2.3