From c9cf0515ca6f837c5f70445534857abf57cbb6ac Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Fri, 22 May 2020 11:06:48 +0200 Subject: [PATCH] Add Phase 2 solutions --- .gitignore | 1 + phase2.dyalog | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100644 phase2.dyalog diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3f411f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*\~ diff --git a/phase2.dyalog b/phase2.dyalog new file mode 100644 index 0000000..5dac59d --- /dev/null +++ b/phase2.dyalog @@ -0,0 +1,14 @@ +:Namespace Phase2 + + (⎕IO ⎕ML ⎕WX)←1 1 3 + + ⍝ Neural Network Problem Set + + ⍝ Problem 1 - Transfer Functions + StepFn←{¯1+2×0≤⍵} + Sigmoid←{÷1+*-⍵} + + ⍝ Problem 2 - Perceptron + Perceptron←{⍺⍺+/⍺×⍵} + +:EndNamespace