moo_fann 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/ext/moo_fann/config.h +8 -0
- data/ext/moo_fann/doublefann.c +30 -0
- data/ext/moo_fann/doublefann.h +33 -0
- data/ext/moo_fann/extconf.rb +25 -0
- data/ext/moo_fann/fann.c +1803 -0
- data/ext/moo_fann/fann.h +613 -0
- data/ext/moo_fann/fann_activation.h +144 -0
- data/ext/moo_fann/fann_augment.h +133 -0
- data/ext/moo_fann/fann_cascade.c +1048 -0
- data/ext/moo_fann/fann_cascade.h +557 -0
- data/ext/moo_fann/fann_data.h +824 -0
- data/ext/moo_fann/fann_error.c +210 -0
- data/ext/moo_fann/fann_error.h +165 -0
- data/ext/moo_fann/fann_internal.h +152 -0
- data/ext/moo_fann/fann_io.c +802 -0
- data/ext/moo_fann/fann_io.h +100 -0
- data/ext/moo_fann/fann_train.c +1047 -0
- data/ext/moo_fann/fann_train.h +1310 -0
- data/ext/moo_fann/fann_train_data.c +1243 -0
- data/ext/moo_fann/moo_fann.c +1768 -0
- data/ext/moo_fann/ruby_compat.h +12 -0
- data/lib/moo_fann.rb +30 -0
- data/lib/moo_fann/version.rb +30 -0
- metadata +75 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
// For Pre-1.9 ruby:
|
2
|
+
#ifndef RUBY_19
|
3
|
+
#ifndef RFLOAT_VALUE
|
4
|
+
#define RFLOAT_VALUE(v) (RFLOAT(v)->value)
|
5
|
+
#endif
|
6
|
+
#ifndef RARRAY_LEN
|
7
|
+
#define RARRAY_LEN(v) (RARRAY(v)->len)
|
8
|
+
#endif
|
9
|
+
#ifndef RARRAY_PTR
|
10
|
+
#define RARRAY_PTR(v) (RARRAY(v)->ptr)
|
11
|
+
#endif
|
12
|
+
#endif
|
data/lib/moo_fann.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2018 Maxine Michalski <maxine@furfind.net>
|
4
|
+
# Copyright 2013 ruby-fann contributors
|
5
|
+
# <https://github.com/tangledpath/ruby-fann#contributors>
|
6
|
+
#
|
7
|
+
# This file is part of moo_fann.
|
8
|
+
#
|
9
|
+
# moo_fann is free software: you can redistribute it and/or modify
|
10
|
+
# it under the terms of the GNU General Public License as published by
|
11
|
+
# the Free Software Foundation, either version 3 of the License, or
|
12
|
+
# (at your option) any later version.
|
13
|
+
#
|
14
|
+
# moo_fann is distributed in the hope that it will be useful,
|
15
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
+
# GNU General Public License for more details.
|
18
|
+
#
|
19
|
+
# You should have received a copy of the GNU General Public License
|
20
|
+
# along with moo_fann. If not, see <http://www.gnu.org/licenses/>.
|
21
|
+
|
22
|
+
require 'moo_fann/version'
|
23
|
+
require 'moo_fann/moo_fann'
|
24
|
+
|
25
|
+
# Namespace for moo_fann functionality.
|
26
|
+
#
|
27
|
+
# See MooFann::Shortcut, MooFann::Standard, and MooFann::TrainData for
|
28
|
+
# details.
|
29
|
+
module MooFann
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2018 Maxine Michalski <maxine@furfind.net>
|
4
|
+
# Copyright 2013 ruby-fann contributors
|
5
|
+
# <https://github.com/tangledpath/ruby-fann#contributors>
|
6
|
+
#
|
7
|
+
# This file is part of moo_fann.
|
8
|
+
#
|
9
|
+
# moo_fann is free software: you can redistribute it and/or modify
|
10
|
+
# it under the terms of the GNU General Public License as published by
|
11
|
+
# the Free Software Foundation, either version 3 of the License, or
|
12
|
+
# (at your option) any later version.
|
13
|
+
#
|
14
|
+
# moo_fann is distributed in the hope that it will be useful,
|
15
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
+
# GNU General Public License for more details.
|
18
|
+
#
|
19
|
+
# You should have received a copy of the GNU General Public License
|
20
|
+
# along with moo_fann. If not, see <http://www.gnu.org/licenses/>.
|
21
|
+
|
22
|
+
module MooFann
|
23
|
+
module VERSION
|
24
|
+
MAJOR = 0
|
25
|
+
MINOR = 1
|
26
|
+
TINY = 0
|
27
|
+
|
28
|
+
STRING = [MAJOR, MINOR, TINY].join('.')
|
29
|
+
end
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: moo_fann
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- tangledpath
|
8
|
+
- Maxine Michalski
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2018-07-21 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Bindings to use FANN from within ruby/rails environment
|
15
|
+
email:
|
16
|
+
- maxine@furfund.net
|
17
|
+
executables: []
|
18
|
+
extensions:
|
19
|
+
- ext/moo_fann/extconf.rb
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- ext/moo_fann/config.h
|
23
|
+
- ext/moo_fann/doublefann.c
|
24
|
+
- ext/moo_fann/doublefann.h
|
25
|
+
- ext/moo_fann/extconf.rb
|
26
|
+
- ext/moo_fann/fann.c
|
27
|
+
- ext/moo_fann/fann.h
|
28
|
+
- ext/moo_fann/fann_activation.h
|
29
|
+
- ext/moo_fann/fann_augment.h
|
30
|
+
- ext/moo_fann/fann_cascade.c
|
31
|
+
- ext/moo_fann/fann_cascade.h
|
32
|
+
- ext/moo_fann/fann_data.h
|
33
|
+
- ext/moo_fann/fann_error.c
|
34
|
+
- ext/moo_fann/fann_error.h
|
35
|
+
- ext/moo_fann/fann_internal.h
|
36
|
+
- ext/moo_fann/fann_io.c
|
37
|
+
- ext/moo_fann/fann_io.h
|
38
|
+
- ext/moo_fann/fann_train.c
|
39
|
+
- ext/moo_fann/fann_train.h
|
40
|
+
- ext/moo_fann/fann_train_data.c
|
41
|
+
- ext/moo_fann/moo_fann.c
|
42
|
+
- ext/moo_fann/ruby_compat.h
|
43
|
+
- lib/moo_fann.rb
|
44
|
+
- lib/moo_fann/version.rb
|
45
|
+
homepage: http://github.com/maxine-red/moo_fann
|
46
|
+
licenses:
|
47
|
+
- GPL-3.0
|
48
|
+
metadata: {}
|
49
|
+
post_install_message:
|
50
|
+
rdoc_options: []
|
51
|
+
require_paths:
|
52
|
+
- lib
|
53
|
+
- ext
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - "~>"
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '2.3'
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
requirements: []
|
65
|
+
rubyforge_project:
|
66
|
+
rubygems_version: 2.5.2.1
|
67
|
+
signing_key:
|
68
|
+
specification_version: 4
|
69
|
+
summary: Bindings to use FANN from within ruby/rails environment. Fann is a is a
|
70
|
+
free open source neural network library, which implements multilayer artificial
|
71
|
+
neural networks with support for both fully connected and sparsely connected networks. It
|
72
|
+
is easy to use, versatile, well documented, and fast. MooFann makes working with
|
73
|
+
neural networks a breeze using ruby, with the added benefit that most of the heavy
|
74
|
+
lifting is done natively.
|
75
|
+
test_files: []
|