see5-installer 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.rubocop.yml +11 -0
  4. data/CHANGELOG.md +5 -0
  5. data/Gemfile +10 -0
  6. data/README.md +29 -0
  7. data/Rakefile +12 -0
  8. data/ext/c5.0/Makefile +86 -0
  9. data/ext/c5.0/attwinnow.c +394 -0
  10. data/ext/c5.0/c50.c +330 -0
  11. data/ext/c5.0/classify.c +700 -0
  12. data/ext/c5.0/confmat.c +195 -0
  13. data/ext/c5.0/construct.c +853 -0
  14. data/ext/c5.0/contin.c +613 -0
  15. data/ext/c5.0/defns.i +788 -0
  16. data/ext/c5.0/discr.c +307 -0
  17. data/ext/c5.0/extern.i +170 -0
  18. data/ext/c5.0/formrules.c +720 -0
  19. data/ext/c5.0/formtree.c +1158 -0
  20. data/ext/c5.0/getdata.c +521 -0
  21. data/ext/c5.0/getnames.c +733 -0
  22. data/ext/c5.0/global.c +211 -0
  23. data/ext/c5.0/gpl.txt +674 -0
  24. data/ext/c5.0/implicitatt.c +1112 -0
  25. data/ext/c5.0/info.c +146 -0
  26. data/ext/c5.0/mcost.c +138 -0
  27. data/ext/c5.0/modelfiles.c +952 -0
  28. data/ext/c5.0/p-thresh.c +313 -0
  29. data/ext/c5.0/prune.c +1069 -0
  30. data/ext/c5.0/report.c +345 -0
  31. data/ext/c5.0/rules.c +579 -0
  32. data/ext/c5.0/ruletree.c +398 -0
  33. data/ext/c5.0/siftrules.c +1285 -0
  34. data/ext/c5.0/sort.c +156 -0
  35. data/ext/c5.0/subset.c +599 -0
  36. data/ext/c5.0/text.i +223 -0
  37. data/ext/c5.0/trees.c +740 -0
  38. data/ext/c5.0/update.c +129 -0
  39. data/ext/c5.0/utility.c +1146 -0
  40. data/ext/c5.0/xval +150 -0
  41. data/ext/c5.0/xval.c +402 -0
  42. data/ext/gritbot/Makefile +98 -0
  43. data/ext/gritbot/check.c +1110 -0
  44. data/ext/gritbot/cluster.c +342 -0
  45. data/ext/gritbot/common.c +1269 -0
  46. data/ext/gritbot/continatt.c +412 -0
  47. data/ext/gritbot/defns.i +623 -0
  48. data/ext/gritbot/discratt.c +459 -0
  49. data/ext/gritbot/extern.i +101 -0
  50. data/ext/gritbot/getdata.c +329 -0
  51. data/ext/gritbot/getnames.c +573 -0
  52. data/ext/gritbot/global.c +104 -0
  53. data/ext/gritbot/gpl.txt +674 -0
  54. data/ext/gritbot/gritbot.c +295 -0
  55. data/ext/gritbot/implicitatt.c +1108 -0
  56. data/ext/gritbot/inspect.c +794 -0
  57. data/ext/gritbot/modelfiles.c +687 -0
  58. data/ext/gritbot/outlier.c +415 -0
  59. data/ext/gritbot/sort.c +130 -0
  60. data/ext/gritbot/text.i +159 -0
  61. data/ext/gritbot/update.c +126 -0
  62. data/ext/gritbot/utility.c +1029 -0
  63. data/ext/see5-installer/extconf.rb +25 -0
  64. data/lib/see5/installer.rb +10 -0
  65. data/lib/see5/installer/version.rb +7 -0
  66. data/see5-installer.gemspec +30 -0
  67. metadata +115 -0
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "mkmf"
4
+
5
+ open("Makefile", "w") do |makefile|
6
+ cc = RbConfig::CONFIG["CC"]
7
+
8
+ makefile.puts <<~MAKEFILE
9
+ make: c50 gritbot
10
+ c50:
11
+ cd ../c5.0 && cat defns.i global.c c50.c construct.c formtree.c info.c discr.c contin.c subset.c prune.c p-thresh.c trees.c siftrules.c ruletree.c rules.c getdata.c implicitatt.c mcost.c confmat.c sort.c update.c attwinnow.c classify.c formrules.c getnames.c modelfiles.c utility.c xval.c \
12
+ | grep -E -v "defns.i|extern.i" > c50gt.c
13
+ cd ../c5.0 && #{cc} -O3 -o c5.0 c50gt.c -lm
14
+ cd ../c5.0 && strip c5.0
15
+ gritbot:
16
+ cd ../gritbot && cat defns.i global.c cluster.c continatt.c outlier.c getdata.c gritbot.c sort.c discratt.c check.c common.c getnames.c implicitatt.c modelfiles.c update.c utility.c \
17
+ | grep -E -v "defns.i|extern.i" > gritbotgt.c
18
+ cd ../gritbot && #{cc} -O3 -o gritbot gritbotgt.c -lm
19
+ cd ../gritbot && strip gritbot
20
+ install:
21
+ # Just leave the executables where they. Other gems can find them there.
22
+ cleane:
23
+ # Any files will be cleaned up when the gem is uninstalled
24
+ MAKEFILE
25
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "installer/version"
4
+
5
+ module See5
6
+ module Installer
7
+ class Error < StandardError; end
8
+ # Your code goes here...
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module See5
4
+ module Installer
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/see5/installer/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "see5-installer"
7
+ spec.version = See5::Installer::VERSION
8
+ spec.authors = ["Eddie Lebow"]
9
+ spec.email = ["elebow@users.noreply.github.com"]
10
+
11
+ spec.summary = "Installer for C5.0 and GritBot, tools for decision-tree learning and data cleansing."
12
+ spec.homepage = "https://github.com/elebow/ruby-see5-installer"
13
+ spec.licenses = ["MIT", "GPL-3.0"]
14
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = "https://github.com/elebow/ruby-see5-installer"
18
+ spec.metadata["changelog_uri"] = "https://github.com/elebow/ruby-see5-installer/blob/trunk/CHANGELOG.md"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
23
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
24
+ end
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ["lib"]
28
+
29
+ spec.extensions = %w[ext/see5-installer/extconf.rb]
30
+ end
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: see5-installer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Eddie Lebow
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - elebow@users.noreply.github.com
16
+ executables: []
17
+ extensions:
18
+ - ext/see5-installer/extconf.rb
19
+ extra_rdoc_files: []
20
+ files:
21
+ - ".gitignore"
22
+ - ".rubocop.yml"
23
+ - CHANGELOG.md
24
+ - Gemfile
25
+ - README.md
26
+ - Rakefile
27
+ - ext/c5.0/Makefile
28
+ - ext/c5.0/attwinnow.c
29
+ - ext/c5.0/c50.c
30
+ - ext/c5.0/classify.c
31
+ - ext/c5.0/confmat.c
32
+ - ext/c5.0/construct.c
33
+ - ext/c5.0/contin.c
34
+ - ext/c5.0/defns.i
35
+ - ext/c5.0/discr.c
36
+ - ext/c5.0/extern.i
37
+ - ext/c5.0/formrules.c
38
+ - ext/c5.0/formtree.c
39
+ - ext/c5.0/getdata.c
40
+ - ext/c5.0/getnames.c
41
+ - ext/c5.0/global.c
42
+ - ext/c5.0/gpl.txt
43
+ - ext/c5.0/implicitatt.c
44
+ - ext/c5.0/info.c
45
+ - ext/c5.0/mcost.c
46
+ - ext/c5.0/modelfiles.c
47
+ - ext/c5.0/p-thresh.c
48
+ - ext/c5.0/prune.c
49
+ - ext/c5.0/report.c
50
+ - ext/c5.0/rules.c
51
+ - ext/c5.0/ruletree.c
52
+ - ext/c5.0/siftrules.c
53
+ - ext/c5.0/sort.c
54
+ - ext/c5.0/subset.c
55
+ - ext/c5.0/text.i
56
+ - ext/c5.0/trees.c
57
+ - ext/c5.0/update.c
58
+ - ext/c5.0/utility.c
59
+ - ext/c5.0/xval
60
+ - ext/c5.0/xval.c
61
+ - ext/gritbot/Makefile
62
+ - ext/gritbot/check.c
63
+ - ext/gritbot/cluster.c
64
+ - ext/gritbot/common.c
65
+ - ext/gritbot/continatt.c
66
+ - ext/gritbot/defns.i
67
+ - ext/gritbot/discratt.c
68
+ - ext/gritbot/extern.i
69
+ - ext/gritbot/getdata.c
70
+ - ext/gritbot/getnames.c
71
+ - ext/gritbot/global.c
72
+ - ext/gritbot/gpl.txt
73
+ - ext/gritbot/gritbot.c
74
+ - ext/gritbot/implicitatt.c
75
+ - ext/gritbot/inspect.c
76
+ - ext/gritbot/modelfiles.c
77
+ - ext/gritbot/outlier.c
78
+ - ext/gritbot/sort.c
79
+ - ext/gritbot/text.i
80
+ - ext/gritbot/update.c
81
+ - ext/gritbot/utility.c
82
+ - ext/see5-installer/extconf.rb
83
+ - lib/see5/installer.rb
84
+ - lib/see5/installer/version.rb
85
+ - see5-installer.gemspec
86
+ homepage: https://github.com/elebow/ruby-see5-installer
87
+ licenses:
88
+ - MIT
89
+ - GPL-3.0
90
+ metadata:
91
+ homepage_uri: https://github.com/elebow/ruby-see5-installer
92
+ source_code_uri: https://github.com/elebow/ruby-see5-installer
93
+ changelog_uri: https://github.com/elebow/ruby-see5-installer/blob/trunk/CHANGELOG.md
94
+ post_install_message:
95
+ rdoc_options: []
96
+ require_paths:
97
+ - lib
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 2.3.0
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ requirements: []
109
+ rubyforge_project:
110
+ rubygems_version: 2.7.6.2
111
+ signing_key:
112
+ specification_version: 4
113
+ summary: Installer for C5.0 and GritBot, tools for decision-tree learning and data
114
+ cleansing.
115
+ test_files: []