scoruby 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 98eb545b1bb149f22fb5afbaf467d144af1dbb2c
4
+ data.tar.gz: dbae0fa59acbf5bb10252bd1971cda46fafb8095
5
+ SHA512:
6
+ metadata.gz: c572f65fdd04226519f6518aa56ec92d942b8882c700828f2c17447b89cff9286fea243a8f171b2b259b3a15dbce6985ea474ff14a802894fa068546db355ce8
7
+ data.tar.gz: 9bd8096adc82636f5a10d6b93d6f0230a7a82b67a755da53153b32dc58c29887a06a31af86235bf2533792bdbccc8b9c77d9677bb3c099c8ab30793aa4696ce4
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.2
4
+ before_install: gem install bundler -v 1.10.5
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in scoruby.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 asaf schers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,49 @@
1
+ <a href="https://codeclimate.com/github/asafschers/scoruby"><img src="https://codeclimate.com/github/asafschers/scoruby/badges/gpa.svg" /></a>
2
+ [![Gem Version](https://badge.fury.io/rb/random_forester.svg)](https://badge.fury.io/rb/random_forester)
3
+ [![Build Status](https://travis-ci.org/asafschers/scoruby.svg?branch=master)](https://travis-ci.org/asafschers/scoruby)
4
+
5
+ # Scoruby
6
+
7
+ Reads Random Forest PMML files and creates Ruby Random Forest classifier model.
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'scoruby'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install scoruby
24
+
25
+ ## Usage
26
+
27
+ ```ruby
28
+ random_forest = Scourby.get_model 'rf.pmml'
29
+ features = {a: 1, b: true, c: "YES"}
30
+ random_forest.predict(features)
31
+ random_forest.decisions_count(features)
32
+ ```
33
+
34
+
35
+ ## Development
36
+
37
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
38
+
39
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
+
41
+ ## Contributing
42
+
43
+ Bug reports and pull requests are welcome on GitHub at https://github.com/asafschers/scoruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
44
+
45
+
46
+ ## License
47
+
48
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
49
+
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ task :console do
9
+ exec "pry -r scoruby -I ./lib"
10
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "scoruby"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "pry"
14
+ Pry.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,23 @@
1
+ require 'gbm_decision_tree'
2
+
3
+ class Gbm
4
+ GBM_FOREST_XPATH = '//Segmentation[@multipleModelMethod="sum"]/Segment'
5
+ CONST_XPATH = '//Constant[@dataType="double"]'
6
+
7
+ def initialize(xml)
8
+ @decision_trees = xml.xpath(GBM_FOREST_XPATH).collect{ |xml_tree|
9
+ GbmDecisionTree.new(xml_tree)
10
+ }
11
+ @const = Float(xml.xpath(CONST_XPATH).children[0].content)
12
+ end
13
+
14
+ def tree_count
15
+ @decision_trees.count
16
+ end
17
+
18
+ def score(features)
19
+ x = @decision_trees.map { |dt| dt.decide(features) }.reduce(:+) + @const
20
+ Math.exp(x) / (1 + Math.exp(x))
21
+ end
22
+ end
23
+
@@ -0,0 +1,37 @@
1
+ require 'gbm_node'
2
+
3
+ class GbmDecisionTree
4
+ attr_reader :root
5
+
6
+ def initialize(tree_xml)
7
+ @id = tree_xml.attribute('id')
8
+ @root = GbmNode.new(tree_xml.xpath('TreeModel/Node'))
9
+ end
10
+
11
+ def decide(features)
12
+ curr = @root
13
+ while curr.score.nil?
14
+ prev = curr
15
+ curr = step(curr, features)
16
+ return if didnt_step?(curr, prev)
17
+ end
18
+
19
+ curr.score
20
+ end
21
+
22
+ private
23
+
24
+ def step(curr, features)
25
+ curr = curr.left if curr.left && curr.left.true?(features)
26
+ curr = curr.right if curr.right && curr.right.true?(features)
27
+ curr = curr.missing if curr.missing && curr.missing.true?(features)
28
+ curr
29
+ end
30
+
31
+ def didnt_step?(curr, prev)
32
+ return false if (prev.pred != curr.pred)
33
+ Scoruby.logger.error "Null tree: #{@id}, bad feature: #{curr.left.pred.field }"
34
+ true
35
+ end
36
+
37
+ end
@@ -0,0 +1,23 @@
1
+ require 'gbm_predicate'
2
+
3
+ class GbmNode
4
+
5
+ attr_reader :score, :missing, :left, :right, :pred
6
+
7
+ def initialize(xml)
8
+ children = xml.children
9
+ @pred = GbmPredicate.new(children[0])
10
+
11
+ @score = xml.attribute('score').to_s.to_f unless xml.attribute('score').to_s.empty?
12
+
13
+ return if children.count == 1
14
+ @missing = GbmNode.new(children[1]) if children[1]
15
+ @left = GbmNode.new(children[2]) if children[2]
16
+ @right = GbmNode.new(children[3]) if children[3]
17
+ end
18
+
19
+ def true?(features)
20
+ @pred.nil? || @pred.true?(features)
21
+ end
22
+
23
+ end
@@ -0,0 +1,18 @@
1
+ require 'simple_predicate'
2
+ require 'simple_set_predicate'
3
+
4
+ class GbmPredicate
5
+
6
+ def initialize(pred_xml)
7
+ @pred = SimplePredicate.new(pred_xml) if pred_xml.name == 'SimplePredicate'
8
+ @pred = SimpleSetPredicate.new(pred_xml) if pred_xml.name == 'SimpleSetPredicate'
9
+ end
10
+
11
+ def field
12
+ @pred.field
13
+ end
14
+
15
+ def true?(features)
16
+ @pred.true?(features)
17
+ end
18
+ end
@@ -0,0 +1,36 @@
1
+ require 'node'
2
+
3
+ class DecisionTree
4
+
5
+ attr_reader :root
6
+
7
+ def initialize(tree_xml)
8
+ @id = tree_xml.attribute('id')
9
+ @root = Node.new(tree_xml.xpath('TreeModel/Node'))
10
+ end
11
+
12
+ def decide(features)
13
+ curr = @root
14
+ while curr.decision == ''
15
+ prev = curr
16
+ curr = step(curr, features)
17
+ return if didnt_step?(curr, prev)
18
+ end
19
+
20
+ curr.decision
21
+ end
22
+
23
+ private
24
+
25
+ def step(curr, features)
26
+ curr = curr.left if curr.left && curr.left.true?(features)
27
+ curr = curr.right if curr.right && curr.right.true?(features)
28
+ curr
29
+ end
30
+
31
+ def didnt_step?(curr, prev)
32
+ return false if (prev.pred != curr.pred)
33
+ Scoruby.logger.error "Null tree: #{@id}, bad feature: #{curr.left.pred.field }"
34
+ true
35
+ end
36
+ end
@@ -0,0 +1,21 @@
1
+ require 'predicate'
2
+
3
+ class Node
4
+
5
+ attr_reader :decision, :left, :right, :pred
6
+
7
+ def initialize(xml)
8
+ children = xml.children
9
+ @pred = Predicate.new(children[0])
10
+
11
+ @decision = xml.attribute('score').to_s
12
+
13
+ return if children.count == 1
14
+ @left = Node.new(children[1]) if children[1]
15
+ @right = Node.new(children[2]) if children[2]
16
+ end
17
+
18
+ def true?(features)
19
+ @pred.nil? || @pred.true?(features)
20
+ end
21
+ end
@@ -0,0 +1,32 @@
1
+ require 'simple_predicate'
2
+ require 'simple_set_predicate'
3
+
4
+ class Predicate
5
+
6
+ def initialize(pred_xml)
7
+ @pred = SimplePredicate.new(pred_xml) if pred_xml.name == 'SimplePredicate'
8
+ @pred = SimpleSetPredicate.new(pred_xml) if pred_xml.name == 'SimpleSetPredicate'
9
+ end
10
+
11
+ def field
12
+ @pred.field
13
+ end
14
+
15
+ def true?(features)
16
+ return if missing_feature?(features)
17
+ return if nil_feature?(features)
18
+ @pred.true?(features)
19
+ end
20
+
21
+ def missing_feature?(features)
22
+ return false if features.has_key? field
23
+ Scoruby.logger.error "Missing feature #{field}"
24
+ true
25
+ end
26
+
27
+ def nil_feature?(features)
28
+ return false unless features[field].nil?
29
+ Scoruby.logger.error "Feature #{field} value is nil"
30
+ true
31
+ end
32
+ end
@@ -0,0 +1,24 @@
1
+ require 'decision_tree'
2
+
3
+ class RandomForest
4
+ RF_FOREST_XPATH = 'PMML/MiningModel/Segmentation/Segment'
5
+
6
+ def initialize(xml)
7
+ xml_trees = xml.xpath(RF_FOREST_XPATH)
8
+ @decision_trees = xml_trees.collect{ |xml_tree|
9
+ DecisionTree.new(xml_tree)
10
+ }
11
+ end
12
+
13
+ def decisions_count(features)
14
+ decisions = @decision_trees.collect { |decision_tree|
15
+ decision_tree.decide(features)
16
+ }
17
+ decisions.inject(Hash.new(0)) { |h, e| h[e] += 1 ; h }
18
+ end
19
+
20
+ def predict(features)
21
+ decisions_count(features).max_by {|_, v| v }[0]
22
+ end
23
+
24
+ end
@@ -0,0 +1,44 @@
1
+ class SimplePredicate
2
+
3
+ GREATER_THAN = 'greaterThan'
4
+ LESS_THAN = 'lessThan'
5
+ LESS_OR_EQUAL = 'lessOrEqual'
6
+ GREATER_OR_EQUAL = 'greaterOrEqual'
7
+ MATH_OPS = [GREATER_THAN, LESS_THAN, LESS_OR_EQUAL, GREATER_OR_EQUAL]
8
+ EQUAL = 'equal'
9
+ IS_MISSING = 'isMissing'
10
+
11
+ attr_reader :field
12
+
13
+ def initialize(pred_xml)
14
+ attributes = pred_xml.attributes
15
+
16
+ @field = attributes['field'].value.to_sym
17
+ @operator = attributes['operator'].value
18
+ return if @operator == IS_MISSING
19
+ @value = attributes['value'].value
20
+ end
21
+
22
+ def true?(features)
23
+ format_boolean(features)
24
+ return num_true?(features) if MATH_OPS.include?(@operator)
25
+
26
+ return features[@field] == @value if @operator == EQUAL
27
+ features[field].nil? || !features.has_key?(field) if @operator == IS_MISSING
28
+ end
29
+
30
+ def num_true?(features)
31
+ return false unless features[@field]
32
+ curr_value = Float(features[@field])
33
+ value = Float(@value)
34
+ return curr_value > value if @operator == GREATER_THAN
35
+ return curr_value < value if @operator == LESS_THAN
36
+ return curr_value <= value if @operator == LESS_OR_EQUAL
37
+ curr_value >= value if @operator == GREATER_OR_EQUAL
38
+ end
39
+
40
+ def format_boolean(features)
41
+ features[@field] = 'f' if features[@field] == false
42
+ features[@field] = 't' if features[@field] == true
43
+ end
44
+ end
@@ -0,0 +1,31 @@
1
+ class SimpleSetPredicate
2
+
3
+ IS_IN = 'isIn'
4
+
5
+ attr_reader :field
6
+
7
+ def initialize(pred_xml)
8
+ attributes = pred_xml.attributes
9
+ @field = attributes['field'].value.to_sym
10
+ @array = single_or_quoted_words(pred_xml.children[0].content)
11
+ @operator = attributes['booleanOperator'].value
12
+ end
13
+
14
+ def true?(features)
15
+ format_boolean(features)
16
+ @array.include? features[@field] if @operator == IS_IN
17
+ end
18
+
19
+ private
20
+
21
+ def single_or_quoted_words(string)
22
+ string.split(/\s(?=(?:[^"]|"[^"]*")*$)/).
23
+ reject(&:empty?).
24
+ map { |w| w.tr('"','')}
25
+ end
26
+
27
+ def format_boolean(features)
28
+ features[@field] = 'f' if features[@field] == false
29
+ features[@field] = 't' if features[@field] == true
30
+ end
31
+ end
@@ -0,0 +1,51 @@
1
+ require 'scoruby/version'
2
+ require 'nokogiri'
3
+ require 'random_forest'
4
+ require 'gbm'
5
+ require 'logger'
6
+ require 'pry'
7
+
8
+ module Scoruby
9
+ RANDOM_FOREST_MODEL = 'randomForest_Model'
10
+ GBM_INDICATION = '//OutputField[@name="scaledGbmValue"]'
11
+ MODEL_NOT_SUPPORTED_ERROR = 'model not supported'
12
+
13
+ class << self
14
+ attr_writer :logger
15
+
16
+ def logger
17
+ @logger ||= Logger.new($stdout).tap do |log|
18
+ log.progname = self.name
19
+ end
20
+ end
21
+ end
22
+
23
+ def self.get_model(pmml_file_name)
24
+ xml = xml_from_file_path(pmml_file_name)
25
+ new_model(xml)
26
+ end
27
+
28
+ def self.new_model(xml)
29
+ return RandomForest.new(xml) if random_forest?(xml)
30
+ return Gbm.new(xml) if gbm?(xml)
31
+ raise MODEL_NOT_SUPPORTED_ERROR
32
+ end
33
+
34
+ def self.xml_from_file_path(pmml_file_name)
35
+ pmml_string = File.open(pmml_file_name, 'rb').read
36
+ xml_from_string(pmml_string)
37
+ end
38
+
39
+ def self.xml_from_string(pmml_string)
40
+ xml = Nokogiri::XML(pmml_string) { |config| config.noblanks }
41
+ xml.remove_namespaces!
42
+ end
43
+
44
+ def self.random_forest?(xml)
45
+ xml.xpath('PMML/MiningModel/@modelName').to_s == RANDOM_FOREST_MODEL
46
+ end
47
+
48
+ def self.gbm?(xml)
49
+ !xml.xpath(GBM_INDICATION).empty?
50
+ end
51
+ end
@@ -0,0 +1,3 @@
1
+ module Scoruby
2
+ VERSION = '0.1.3'
3
+ end
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'scoruby/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "scoruby"
8
+ spec.version = Scoruby::VERSION
9
+ spec.authors = ["Asaf Schers"]
10
+ spec.email = ["schers@riskified.com"]
11
+
12
+ spec.summary = %q{Creates a random forest object from a pmml file.}
13
+ spec.homepage = 'https://github.com/asafschers/scoruby'
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib", "lib/random_forest", "lib/gbm"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.10"
22
+ spec.add_development_dependency "rake", "~> 12.0"
23
+ spec.add_development_dependency "rspec", "~> 3.5"
24
+ spec.add_development_dependency "pry", "~> 0.10"
25
+ spec.add_development_dependency "ruby-prof"
26
+ spec.add_dependency "nokogiri", "~> 1.7"
27
+ end
metadata ADDED
@@ -0,0 +1,153 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scoruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
+ platform: ruby
6
+ authors:
7
+ - Asaf Schers
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '12.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '12.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ruby-prof
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: nokogiri
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.7'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.7'
97
+ description:
98
+ email:
99
+ - schers@riskified.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".rspec"
105
+ - ".travis.yml"
106
+ - CODE_OF_CONDUCT.md
107
+ - Gemfile
108
+ - LICENSE.txt
109
+ - README.md
110
+ - Rakefile
111
+ - bin/console
112
+ - bin/setup
113
+ - lib/gbm/gbm.rb
114
+ - lib/gbm/gbm_decision_tree.rb
115
+ - lib/gbm/gbm_node.rb
116
+ - lib/gbm/gbm_predicate.rb
117
+ - lib/random_forest/decision_tree.rb
118
+ - lib/random_forest/node.rb
119
+ - lib/random_forest/predicate.rb
120
+ - lib/random_forest/random_forest.rb
121
+ - lib/random_forest/simple_predicate.rb
122
+ - lib/random_forest/simple_set_predicate.rb
123
+ - lib/scoruby.rb
124
+ - lib/scoruby/version.rb
125
+ - scoruby.gemspec
126
+ homepage: https://github.com/asafschers/scoruby
127
+ licenses:
128
+ - MIT
129
+ metadata: {}
130
+ post_install_message:
131
+ rdoc_options: []
132
+ require_paths:
133
+ - lib
134
+ - lib/random_forest
135
+ - lib/gbm
136
+ required_ruby_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ requirements: []
147
+ rubyforge_project:
148
+ rubygems_version: 2.2.2
149
+ signing_key:
150
+ specification_version: 4
151
+ summary: Creates a random forest object from a pmml file.
152
+ test_files: []
153
+ has_rdoc: