Commit 6fd1428
added binary and multiclass SVM with tests (#1135)
* changed queue to set in AC3
Changed queue to set in AC3 (as in the pseudocode of the original algorithm) to reduce the number of consistency-check due to the redundancy of the same arcs in queue. For example, on the harder1 configuration of the Sudoku CSP the number consistency-check has been reduced from 40464 to 12562!
* re-added test commented by mistake
* added the mentioned AC4 algorithm for constraint propagation
AC3 algorithm has non-optimal worst case time-complexity O(cd^3 ), while AC4 algorithm runs in O(cd^2) worst case time
* added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference
* removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py
* added map coloring SAT problems
* fixed typo errors and removed unnecessary brackets
* reformulated the map coloring problem
* Revert "reformulated the map coloring problem"
This reverts commit 20ab0e5.
* Revert "fixed typo errors and removed unnecessary brackets"
This reverts commit f743146.
* Revert "added map coloring SAT problems"
This reverts commit 9e0fa55.
* Revert "removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py"
This reverts commit b3cd24c.
* Revert "added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference"
This reverts commit 6986247.
* Revert "added the mentioned AC4 algorithm for constraint propagation"
This reverts commit 03551fb.
* added map coloring SAT problem
* fixed build error
* Revert "added map coloring SAT problem"
This reverts commit 93af259.
* Revert "fixed build error"
This reverts commit 6641c2c.
* added map coloring SAT problem
* removed redundant parentheses
* added Viterbi algorithm
* added monkey & bananas planning problem
* simplified condition in search.py
* added tests for monkey & bananas planning problem
* removed monkey & bananas planning problem
* Revert "removed monkey & bananas planning problem"
This reverts commit 9d37ae0.
* Revert "added tests for monkey & bananas planning problem"
This reverts commit 24041e9.
* Revert "simplified condition in search.py"
This reverts commit 6d229ce.
* Revert "added monkey & bananas planning problem"
This reverts commit c74933a.
* defined the PlanningProblem as a specialization of a search.Problem & fixed typo errors
* fixed doctest in logic.py
* fixed doctest for cascade_distribution
* added ForwardPlanner and tests
* added __lt__ implementation for Expr
* added more tests
* renamed forward planner
* Revert "renamed forward planner"
This reverts commit c4139e5.
* renamed forward planner class & added doc
* added backward planner and tests
* fixed mdp4e.py doctests
* removed ignore_delete_lists_heuristic flag
* fixed heuristic for forward and backward planners
* added SATPlan and tests
* fixed ignore delete lists heuristic in forward and backward planners
* fixed backward planner and added tests
* updated doc
* added nary csp definition and examples
* added CSPlan and tests
* fixed CSPlan
* added book's cryptarithmetic puzzle example
* fixed typo errors in test_csp
* fixed #1111
* added sortedcontainers to yml and doc to CSPlan
* added tests for n-ary csp
* fixed utils.extend
* updated test_probability.py
* converted static methods to functions
* added AC3b and AC4 with heuristic and tests
* added conflict-driven clause learning sat solver
* added tests for cdcl and heuristics
* fixed probability.py
* fixed import
* fixed kakuro
* added Martelli and Montanari rule-based unification algorithm
* removed duplicate standardize_variables
* renamed variables known as built-in functions
* fixed typos in learning.py
* renamed some files and fixed typos
* fixed typos
* fixed typos
* fixed tests
* removed unify_mm
* remove unnecessary brackets
* fixed tests
* moved utility functions to utils.py
* fixed typos
* moved utils function to utils.py, separated probability learning classes from learning.py, fixed typos and fixed imports in .ipynb files
* added missing learners
* fixed Travis build
* fixed typos
* fixed typos
* fixed typos
* fixed typos
* fixed typos in agents files
* fixed imports in agent files
* fixed deep learning .ipynb imports
* fixed typos
* added SVM
* added .ipynb and fixed typos
* adapted code for .ipynb
* fixed typos
* updated .ipynb
* updated .ipynb
* updated logic.py
* updated .ipynb
* updated .ipynb
* updated planning.py
* updated inf definition
* fixed typos
* fixed typos
* fixed typos
* fixed typos
* Revert "fixed typos"
This reverts commit 658309d.
* Revert "fixed typos"
This reverts commit 08ad660.
* fixed typos
* fixed typos
* fixed typos
* fixed typos
* fixed typos and utils imports in *4e.py files
* fixed typos
* fixed typos
* fixed typos
* fixed typos
* fixed import
* fixed typos
* fixed typos
* fixd typos
* fixed typos
* fixed typos
* updated SVM
* added svm test
* fixed SVM and tests
* fixed some definitions and typos
* fixed svm and tests
* added SVMs also in learning4e.py
* fixed inf definition
* fixed .travis.yml
* fixed .travis.yml
* fixed import
* fixed inf definition
* replaced cvxopt with qpsolvers
* replaced cvxopt with quadprog
* fixed some definitions
* fixed typos and removed unnecessary tests
* replaced quadprog with qpsolvers
* fixed extend in utils
* specified error type in try-catch block
* fixed extend in utils
* fixed typos
* fixed learning.py
* fixed doctest errors
* added comments
* removed unnecessary if condition
* updated learning.py
* fixed imports
* removed unnecessary imports
* fixed keras imports
* fixed typos
* fixed learning_curve
* added comments1 parent 04fa465 commit 6fd1428
File tree
41 files changed
+1081
-1039
lines changed- gui
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+1081
-1039
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 15 | | |
| 16 | + | |
20 | 17 | | |
| 18 | + | |
| 19 | + | |
21 | 20 | | |
22 | | - | |
23 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
94 | | - | |
| 92 | + | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| |||
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
125 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
169 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
170 | 177 | | |
171 | 178 | | |
172 | 179 | | |
| |||
219 | 226 | | |
220 | 227 | | |
221 | 228 | | |
222 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
223 | 232 | | |
224 | 233 | | |
225 | 234 | | |
| |||
436 | 445 | | |
437 | 446 | | |
438 | 447 | | |
439 | | - | |
| 448 | + | |
440 | 449 | | |
441 | | - | |
| 450 | + | |
442 | 451 | | |
443 | | - | |
| 452 | + | |
444 | 453 | | |
445 | | - | |
| 454 | + | |
446 | 455 | | |
447 | 456 | | |
448 | 457 | | |
| |||
497 | 506 | | |
498 | 507 | | |
499 | 508 | | |
500 | | - | |
| 509 | + | |
501 | 510 | | |
502 | 511 | | |
503 | 512 | | |
| |||
525 | 534 | | |
526 | 535 | | |
527 | 536 | | |
528 | | - | |
| 537 | + | |
529 | 538 | | |
530 | 539 | | |
531 | 540 | | |
| |||
723 | 732 | | |
724 | 733 | | |
725 | 734 | | |
726 | | - | |
| 735 | + | |
727 | 736 | | |
728 | 737 | | |
729 | 738 | | |
| |||
752 | 761 | | |
753 | 762 | | |
754 | 763 | | |
755 | | - | |
756 | | - | |
| 764 | + | |
757 | 765 | | |
758 | 766 | | |
759 | 767 | | |
760 | | - | |
| 768 | + | |
761 | 769 | | |
762 | 770 | | |
763 | 771 | | |
| |||
992 | 1000 | | |
993 | 1001 | | |
994 | 1002 | | |
995 | | - | |
996 | | - | |
| 1003 | + | |
| 1004 | + | |
997 | 1005 | | |
998 | 1006 | | |
999 | 1007 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
94 | | - | |
| 92 | + | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| |||
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
125 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
169 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
170 | 177 | | |
171 | 178 | | |
172 | 179 | | |
| |||
219 | 226 | | |
220 | 227 | | |
221 | 228 | | |
222 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
223 | 232 | | |
224 | 233 | | |
225 | 234 | | |
| |||
333 | 342 | | |
334 | 343 | | |
335 | 344 | | |
336 | | - | |
337 | | - | |
| 345 | + | |
338 | 346 | | |
339 | 347 | | |
340 | 348 | | |
| |||
437 | 445 | | |
438 | 446 | | |
439 | 447 | | |
440 | | - | |
| 448 | + | |
441 | 449 | | |
442 | | - | |
| 450 | + | |
443 | 451 | | |
444 | | - | |
| 452 | + | |
445 | 453 | | |
446 | | - | |
| 454 | + | |
447 | 455 | | |
448 | 456 | | |
449 | 457 | | |
| |||
498 | 506 | | |
499 | 507 | | |
500 | 508 | | |
501 | | - | |
| 509 | + | |
502 | 510 | | |
503 | 511 | | |
504 | 512 | | |
| |||
724 | 732 | | |
725 | 733 | | |
726 | 734 | | |
727 | | - | |
| 735 | + | |
728 | 736 | | |
729 | 737 | | |
730 | 738 | | |
| |||
753 | 761 | | |
754 | 762 | | |
755 | 763 | | |
756 | | - | |
757 | | - | |
| 764 | + | |
758 | 765 | | |
759 | 766 | | |
760 | 767 | | |
761 | | - | |
| 768 | + | |
762 | 769 | | |
763 | 770 | | |
764 | 771 | | |
| |||
994 | 1001 | | |
995 | 1002 | | |
996 | 1003 | | |
997 | | - | |
998 | | - | |
| 1004 | + | |
999 | 1005 | | |
1000 | 1006 | | |
1001 | 1007 | | |
| |||
0 commit comments