Commit c587f2c
removed inf and isclose definition from utils and replaced with np.inf and np.isclose (aimacode#1141)
* 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 aimacode#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 comments
* fixed typos
* removed inf and isclose definition from utils and replaced with numpy.inf and numpy.isclose
* fixed doctests1 parent fbdb36d commit c587f2c
File tree
28 files changed
+172
-225
lines changed- gui
- tests
28 files changed
+172
-225
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
| 357 | + | |
359 | 358 | | |
360 | 359 | | |
361 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
| 357 | + | |
359 | 358 | | |
360 | 359 | | |
361 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | | - | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
117 | | - | |
118 | | - | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | | - | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
149 | | - | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
161 | | - | |
162 | | - | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | | - | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
117 | | - | |
118 | | - | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | | - | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
149 | | - | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
161 | | - | |
162 | | - | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
6 | 4 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 5 | | |
11 | | - | |
| 6 | + | |
| 7 | + | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
| |||
289 | 285 | | |
290 | 286 | | |
291 | 287 | | |
292 | | - | |
293 | 288 | | |
294 | 289 | | |
295 | 290 | | |
| |||
325 | 320 | | |
326 | 321 | | |
327 | 322 | | |
328 | | - | |
329 | 323 | | |
330 | 324 | | |
331 | 325 | | |
332 | 326 | | |
333 | 327 | | |
334 | | - | |
335 | 328 | | |
336 | 329 | | |
337 | 330 | | |
| |||
562 | 555 | | |
563 | 556 | | |
564 | 557 | | |
565 | | - | |
| 558 | + | |
566 | 559 | | |
567 | 560 | | |
568 | 561 | | |
| |||
572 | 565 | | |
573 | 566 | | |
574 | 567 | | |
575 | | - | |
| 568 | + | |
576 | 569 | | |
577 | 570 | | |
578 | 571 | | |
579 | 572 | | |
580 | 573 | | |
581 | 574 | | |
582 | 575 | | |
583 | | - | |
| 576 | + | |
584 | 577 | | |
585 | 578 | | |
586 | 579 | | |
587 | 580 | | |
588 | 581 | | |
589 | 582 | | |
590 | 583 | | |
591 | | - | |
| 584 | + | |
592 | 585 | | |
593 | 586 | | |
594 | 587 | | |
595 | 588 | | |
596 | 589 | | |
597 | 590 | | |
598 | 591 | | |
599 | | - | |
| 592 | + | |
600 | 593 | | |
601 | 594 | | |
602 | 595 | | |
603 | 596 | | |
604 | 597 | | |
605 | 598 | | |
606 | 599 | | |
607 | | - | |
| 600 | + | |
608 | 601 | | |
609 | 602 | | |
610 | 603 | | |
611 | 604 | | |
612 | 605 | | |
613 | 606 | | |
614 | 607 | | |
615 | | - | |
| 608 | + | |
616 | 609 | | |
617 | 610 | | |
618 | 611 | | |
| |||
626 | 619 | | |
627 | 620 | | |
628 | 621 | | |
| 622 | + | |
629 | 623 | | |
630 | 624 | | |
631 | 625 | | |
| |||
0 commit comments