View single_neuron_ann.swift
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]] |
View Complex numbers 6.8.swift
// | |
// 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 |