Skip to content

Commit 4515b1d

Browse files
author
Guled
committed
Version update, and minor tweaks to the example project
1 parent 5cb3cc2 commit 4515b1d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Example/MLKit/GameScene.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
296296
}
297297

298298
// If we have hit the 20th bird, we need to move on to the next generation
299-
if currentFlappy == 20 {
299+
if currentFlappy == 10 {
300300

301301
print("GENERATING NEW GEN!")
302302

@@ -307,7 +307,7 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
307307

308308
newGen += lastBestGen
309309

310-
while newGen.count < 20 {
310+
while newGen.count < 10 {
311311

312312
// Select the best parents
313313
let parents = PopulationManager.selectParents(genomes: flappyBirdGenerationContainer!)

Example/MLKit/GameViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class GameViewController: UIViewController {
6464
// Create First Generation of Flappy Birds
6565
var generation1: [FlappyGenome] = []
6666

67-
for _ in 1...20 {
67+
for _ in 1...10 {
6868

6969
let brain = NeuralNet()
7070

MachineLearningKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'MachineLearningKit'
11-
s.version = '0.1.4'
11+
s.version = '0.1.5'
1212
s.summary = 'A simple machine learning framework written in Swift 🤖'
1313

1414
s.description = <<-DESC

0 commit comments

Comments
 (0)