From 4515b1d465df7b1f39d968af7e87bd3b160f8a06 Mon Sep 17 00:00:00 2001 From: Guled Date: Thu, 9 Mar 2017 15:35:53 -0600 Subject: [PATCH] Version update, and minor tweaks to the example project --- Example/MLKit/GameScene.swift | 4 ++-- Example/MLKit/GameViewController.swift | 2 +- MachineLearningKit.podspec | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Example/MLKit/GameScene.swift b/Example/MLKit/GameScene.swift index e2c237b..a23b6d3 100755 --- a/Example/MLKit/GameScene.swift +++ b/Example/MLKit/GameScene.swift @@ -296,7 +296,7 @@ class GameScene: SKScene, SKPhysicsContactDelegate { } // If we have hit the 20th bird, we need to move on to the next generation - if currentFlappy == 20 { + if currentFlappy == 10 { print("GENERATING NEW GEN!") @@ -307,7 +307,7 @@ class GameScene: SKScene, SKPhysicsContactDelegate { newGen += lastBestGen - while newGen.count < 20 { + while newGen.count < 10 { // Select the best parents let parents = PopulationManager.selectParents(genomes: flappyBirdGenerationContainer!) diff --git a/Example/MLKit/GameViewController.swift b/Example/MLKit/GameViewController.swift index d278bb4..4a0bc4d 100755 --- a/Example/MLKit/GameViewController.swift +++ b/Example/MLKit/GameViewController.swift @@ -64,7 +64,7 @@ class GameViewController: UIViewController { // Create First Generation of Flappy Birds var generation1: [FlappyGenome] = [] - for _ in 1...20 { + for _ in 1...10 { let brain = NeuralNet() diff --git a/MachineLearningKit.podspec b/MachineLearningKit.podspec index 2df4b60..aed8d70 100644 --- a/MachineLearningKit.podspec +++ b/MachineLearningKit.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'MachineLearningKit' - s.version = '0.1.4' + s.version = '0.1.5' s.summary = 'A simple machine learning framework written in Swift 🤖' s.description = <<-DESC