Skip to content

Commit

Permalink
refactor RandomForestManager
Browse files Browse the repository at this point in the history
  • Loading branch information
quicklywilliam committed May 18, 2017
1 parent dd5e48b commit 08937c1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions RandomForestManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import Foundation

class RandomForestManager {
private var modelIdentifier: String?

static private(set) var shared : RandomForestManager!

var _ptr: OpaquePointer!
var classLables: [Int32]!
Expand All @@ -32,15 +30,6 @@ class RandomForestManager {
return randomForestManagerCanPredict(_ptr)
}

class func startup() {
if (RandomForestManager.shared == nil) {
RandomForestManager.shared = RandomForestManager()
DispatchQueue.main.async {
RandomForestManager.shared.startup()
}
}
}

init () {
guard let configFilePath = Bundle(for: type(of: self)).path(forResource: "config.json", ofType: nil) else {
return
Expand Down

0 comments on commit 08937c1

Please sign in to comment.