This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
//Swift version of https://github.com/gitshanks/simpleneuralnet/blob/master/neuralnet.py | |
//In Swift you can't easily add, multiply arrays/matrices etc, so I had write it manually and some of them are kinda ugly | |
//Used for my 2020 Marin Academy Math Night Presentation: "Neural Networks and Their Applications in Text Generation" | |
//Pattern to the data: output = column 2 of input | |
var inputs = [[0,0,1], [1,1,1], [1,0,1], [0,1,1]] as [[Double]] | |
var outputs = [[0], [1], [0], [1]] as [[Double]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Complex Number Challenge Part 6, #8 | |
// | |
// Created by Beck Lorsch on 2/17/20 | |
// | |
import UIKit | |
import Foundation | |
//NOTE: Read in combination with written work for this problem |