Skip to content

Commit

Permalink
Version update, and minor tweaks to the example project
Browse files Browse the repository at this point in the history
  • Loading branch information
Guled committed Mar 9, 2017
1 parent 5cb3cc2 commit 4515b1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Example/MLKit/GameScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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!")

Expand All @@ -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!)
Expand Down
2 changes: 1 addition & 1 deletion Example/MLKit/GameViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion MachineLearningKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4515b1d

Please sign in to comment.