@@ -4,13 +4,10 @@ gap> Smooth := SkeletalSmoothMaps;;
44gap> Lenses := CategoryOfLenses( Smooth );;
55gap> Para := CategoryOfParametrisedMorphisms( Smooth );;
66gap> Para_Lenses := CategoryOfParametrisedMorphisms( Lenses );;
7- gap> f := LossMorphismOfNeuralNetwork( Para, 2 , [] , 1 , " IdFunc" );;
8- The total number of layers is 2
9-
10- Creating a morphism from layer 1 to 2 with 3 parameters
7+ gap> ell := LossMorphismOfNeuralNetwork( Para, 2 , [] , 1 , " IdFunc" );;
118gap> dummy_input := ConvertToExpressions( [ " w1" , " w2" , " b1" , " x1" , " x2" , " y" ] );
129[ w1, w2, b1, x1, x2, y ]
13- gap> Display( f : dummy_input := dummy_input );
10+ gap> Display( ell : dummy_input := dummy_input );
1411ℝ^ 3 -> ℝ^ 1 defined by:
1512
1613Parameter Object:
@@ -24,7 +21,7 @@ Parametrised Morphism:
2421‣ (w1 * x1 + w2 * x2 + b1 - y) ^ 2 / 1
2522gap> R := EmbeddingIntoCategoryOfParametrisedMorphisms( Para, Para_Lenses );
2623Embedding into category of parametrised morphisms
27- gap> Rf := ApplyFunctor( R, f );
24+ gap> Rf := ApplyFunctor( R, ell );
2825(ℝ^ 3 , ℝ^ 3 ) -> (ℝ^ 1 , ℝ^ 1 ) defined by:
2926
3027Parameter Object:
0 commit comments