ltntorch 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/AGENTS.md +34 -0
- data/CONTRIBUTING.md +66 -0
- data/changelog.md +68 -0
- data/code_of_conduct.md +84 -0
- data/examples/1_binary_classification.rb +108 -0
- data/examples/2_multi_class_single_label_classification.rb +130 -0
- data/examples/3_multi_class_multi_label_classification.rb +158 -0
- data/examples/4_semi_supervised_pattern_recognition.rb +249 -0
- data/examples/5_regression.rb +103 -0
- data/examples/6_clustering.rb +126 -0
- data/examples/7_learning_embeddings_with_ltn.rb +166 -0
- data/examples/datasets/crabs.dat +201 -0
- data/examples/datasets/iris_test.csv +31 -0
- data/examples/datasets/iris_training.csv +121 -0
- data/examples/datasets/readme.md +9 -0
- data/examples/datasets/real-estate.csv +415 -0
- data/examples/support/example.rb +92 -0
- data/examples/support/mnist.rb +77 -0
- data/lib/ltn/connective.rb +56 -0
- data/lib/ltn/constant.rb +30 -0
- data/lib/ltn/diag.rb +54 -0
- data/lib/ltn/function.rb +28 -0
- data/lib/ltn/fuzzy_ops.rb +428 -0
- data/lib/ltn/lambda_model.rb +24 -0
- data/lib/ltn/ltn_object.rb +47 -0
- data/lib/ltn/model_wrapper.rb +72 -0
- data/lib/ltn/predicate.rb +38 -0
- data/lib/ltn/process_ltn_objects.rb +58 -0
- data/lib/ltn/quantifier.rb +176 -0
- data/lib/ltn/variable.rb +49 -0
- data/lib/ltn/version.rb +8 -0
- data/lib/ltn.rb +45 -0
- data/license.md +22 -0
- data/readme.md +166 -0
- data/sig/ltn.rbs +207 -0
- data/tutorials/1_grounding_non_logical_symbols.rb +146 -0
- data/tutorials/2_grounding_connectives.rb +126 -0
- data/tutorials/2b_operators_and_gradients.rb +78 -0
- data/tutorials/3_knowledgebase_and_learning.rb +124 -0
- metadata +94 -0
metadata
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ltntorch
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Mauro Tortonesi
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: torch-rb
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: 0.27.0
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: 0.27.0
|
|
26
|
+
description: 'A Ruby port of LTNtorch, the PyTorch implementation of Logic Tensor
|
|
27
|
+
Networks: a neuro-symbolic framework that learns neural networks by maximizing the
|
|
28
|
+
satisfaction of a first-order fuzzy logic knowledge base.'
|
|
29
|
+
executables: []
|
|
30
|
+
extensions: []
|
|
31
|
+
extra_rdoc_files: []
|
|
32
|
+
files:
|
|
33
|
+
- AGENTS.md
|
|
34
|
+
- CONTRIBUTING.md
|
|
35
|
+
- changelog.md
|
|
36
|
+
- code_of_conduct.md
|
|
37
|
+
- examples/1_binary_classification.rb
|
|
38
|
+
- examples/2_multi_class_single_label_classification.rb
|
|
39
|
+
- examples/3_multi_class_multi_label_classification.rb
|
|
40
|
+
- examples/4_semi_supervised_pattern_recognition.rb
|
|
41
|
+
- examples/5_regression.rb
|
|
42
|
+
- examples/6_clustering.rb
|
|
43
|
+
- examples/7_learning_embeddings_with_ltn.rb
|
|
44
|
+
- examples/datasets/crabs.dat
|
|
45
|
+
- examples/datasets/iris_test.csv
|
|
46
|
+
- examples/datasets/iris_training.csv
|
|
47
|
+
- examples/datasets/readme.md
|
|
48
|
+
- examples/datasets/real-estate.csv
|
|
49
|
+
- examples/support/example.rb
|
|
50
|
+
- examples/support/mnist.rb
|
|
51
|
+
- lib/ltn.rb
|
|
52
|
+
- lib/ltn/connective.rb
|
|
53
|
+
- lib/ltn/constant.rb
|
|
54
|
+
- lib/ltn/diag.rb
|
|
55
|
+
- lib/ltn/function.rb
|
|
56
|
+
- lib/ltn/fuzzy_ops.rb
|
|
57
|
+
- lib/ltn/lambda_model.rb
|
|
58
|
+
- lib/ltn/ltn_object.rb
|
|
59
|
+
- lib/ltn/model_wrapper.rb
|
|
60
|
+
- lib/ltn/predicate.rb
|
|
61
|
+
- lib/ltn/process_ltn_objects.rb
|
|
62
|
+
- lib/ltn/quantifier.rb
|
|
63
|
+
- lib/ltn/variable.rb
|
|
64
|
+
- lib/ltn/version.rb
|
|
65
|
+
- license.md
|
|
66
|
+
- readme.md
|
|
67
|
+
- sig/ltn.rbs
|
|
68
|
+
- tutorials/1_grounding_non_logical_symbols.rb
|
|
69
|
+
- tutorials/2_grounding_connectives.rb
|
|
70
|
+
- tutorials/2b_operators_and_gradients.rb
|
|
71
|
+
- tutorials/3_knowledgebase_and_learning.rb
|
|
72
|
+
homepage: https://github.com/mtortonesi/LTNtorch-rb
|
|
73
|
+
licenses:
|
|
74
|
+
- MIT
|
|
75
|
+
metadata:
|
|
76
|
+
source_code_uri: https://github.com/mtortonesi/LTNtorch-rb
|
|
77
|
+
rdoc_options: []
|
|
78
|
+
require_paths:
|
|
79
|
+
- lib
|
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - ">="
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '3.0'
|
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
requirements: []
|
|
91
|
+
rubygems_version: 4.0.20
|
|
92
|
+
specification_version: 4
|
|
93
|
+
summary: Logic Tensor Networks (LTN) for Ruby, on top of torch.rb
|
|
94
|
+
test_files: []
|