From d570f48746698186ed897cc29a02e25dd4c14ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Thu, 20 Jun 2024 17:58:09 +0200 Subject: [PATCH] Remove Tucan.layers/1 with a single layer (#283) --- notebooks/manifold_learning.livemd | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/notebooks/manifold_learning.livemd b/notebooks/manifold_learning.livemd index 64e844b4..579a6b2f 100644 --- a/notebooks/manifold_learning.livemd +++ b/notebooks/manifold_learning.livemd @@ -173,9 +173,7 @@ coords = [ y: trimap_res[[.., 1]] |> Nx.to_flat_list() ] -Tucan.layers([ - Tucan.scatter(coords, "x", "y", point_size: 1) -]) +Tucan.scatter(coords, "x", "y", point_size: 1) |> Tucan.set_size(300, 300) |> Tucan.set_title( "Mammoth dataset with reduced dimensionality using Trimap", @@ -197,9 +195,7 @@ coords = [ y: tensor_data[[0..10000, 2]] |> Nx.to_flat_list() ] -Tucan.layers([ - Tucan.scatter(coords, "x", "y", point_size: 1) -]) +Tucan.scatter(coords, "x", "y", point_size: 1) |> Tucan.set_size(300, 300) |> Tucan.set_title( "Mammoth data set with reduced dimensionality using trimap", @@ -286,9 +282,7 @@ coords = [ y: tsne_res[[.., 1]] |> Nx.to_flat_list() ] -Tucan.layers([ - Tucan.scatter(coords, "x", "y", point_size: 1) -]) +Tucan.scatter(coords, "x", "y", point_size: 1) |> Tucan.set_size(300, 300) |> Tucan.set_title( "Mammoth dataset with reduced dimensionality using Trimap",