1. 14 déc., 2019 1 validation
    • Donato Meoli's avatar
      removed inf and isclose definition from utils and replaced with np.inf and np.isclose (#1141) · c587f2c4
      Donato Meoli a écrit
      * 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 20ab0e5afa238a0556e68f173b07ad32d0779d3b.
      
      * Revert "fixed typo errors and removed unnecessary brackets"
      
      This reverts commit f743146c43b28e0525b0f0b332faebc78c15946f.
      
      * Revert "added map coloring SAT problems"
      
      This reverts commit 9e0fa550e85081cf5b92fb6a3418384ab5a9fdfd.
      
      * Revert "removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py"
      
      This reverts commit b3cd24c511a82275f5b43c9f176396e6ba05f67e.
      
      * Revert "added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference"
      
      This reverts commit 6986247481a05f1e558b93b2bf3cdae395f9c4ee.
      
      * Revert "added the mentioned AC4 algorithm for constraint propagation"
      
      This reverts commit 03551fbf2aa3980b915d4b6fefcbc70f24547b03.
      
      * added map coloring SAT problem
      
      * fixed build error
      
      * Revert "added map coloring SAT problem"
      
      This reverts commit 93af259e4811ddd775429f8a334111b9dd9e268c.
      
      * Revert "fixed build error"
      
      This reverts commit 6641c2c861728f3d43d3931ef201c6f7093cbc96.
      
      * 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 9d37ae0def15b9e058862cb465da13d2eb926968.
      
      * Revert "added tests for monkey & bananas planning problem"
      
      This reverts commit 24041e9a1a0ab936f7a2608e3662c8efec559382.
      
      * Revert "simplified condition in search.py"
      
      This reverts commit 6d229ce9bde5033802aca29ad3047f37ee6d870d.
      
      * Revert "added monkey & bananas planning problem"
      
      This reverts commit c74933a8905de7bb569bcaed7230930780560874.
      
      * 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 c4139e50e3a75a036607f4627717d70ad0919554.
      
      * 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 658309d32a3baa0a6b8aac247c0d4ae39cf39ea4.
      
      * Revert "fixed typos"
      
      This reverts commit 08ad6603ce7b6a6442a28bc0a07c46fa25af3452.
      
      * 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 doctests
      c587f2c4
  2. 03 déc., 2019 1 validation
    • Donato Meoli's avatar
      added binary and multiclass SVM with tests (#1135) · 6fd1428c
      Donato Meoli a écrit
      * 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 20ab0e5afa238a0556e68f173b07ad32d0779d3b.
      
      * Revert "fixed typo errors and removed unnecessary brackets"
      
      This reverts commit f743146c43b28e0525b0f0b332faebc78c15946f.
      
      * Revert "added map coloring SAT problems"
      
      This reverts commit 9e0fa550e85081cf5b92fb6a3418384ab5a9fdfd.
      
      * Revert "removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py"
      
      This reverts commit b3cd24c511a82275f5b43c9f176396e6ba05f67e.
      
      * Revert "added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference"
      
      This reverts commit 6986247481a05f1e558b93b2bf3cdae395f9c4ee.
      
      * Revert "added the mentioned AC4 algorithm for constraint propagation"
      
      This reverts commit 03551fbf2aa3980b915d4b6fefcbc70f24547b03.
      
      * added map coloring SAT problem
      
      * fixed build error
      
      * Revert "added map coloring SAT problem"
      
      This reverts commit 93af259e4811ddd775429f8a334111b9dd9e268c.
      
      * Revert "fixed build error"
      
      This reverts commit 6641c2c861728f3d43d3931ef201c6f7093cbc96.
      
      * 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 9d37ae0def15b9e058862cb465da13d2eb926968.
      
      * Revert "added tests for monkey & bananas planning problem"
      
      This reverts commit 24041e9a1a0ab936f7a2608e3662c8efec559382.
      
      * Revert "simplified condition in search.py"
      
      This reverts commit 6d229ce9bde5033802aca29ad3047f37ee6d870d.
      
      * Revert "added monkey & bananas planning problem"
      
      This reverts commit c74933a8905de7bb569bcaed7230930780560874.
      
      * 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 c4139e50e3a75a036607f4627717d70ad0919554.
      
      * 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 658309d32a3baa0a6b8aac247c0d4ae39cf39ea4.
      
      * Revert "fixed typos"
      
      This reverts commit 08ad6603ce7b6a6442a28bc0a07c46fa25af3452.
      
      * 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
      6fd1428c
  3. 04 nov., 2019 1 validation
    • Donato Meoli's avatar
      fixed some class definitions and typos (#1131) · 04fa4654
      Donato Meoli a écrit
      * 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 20ab0e5afa238a0556e68f173b07ad32d0779d3b.
      
      * Revert "fixed typo errors and removed unnecessary brackets"
      
      This reverts commit f743146c43b28e0525b0f0b332faebc78c15946f.
      
      * Revert "added map coloring SAT problems"
      
      This reverts commit 9e0fa550e85081cf5b92fb6a3418384ab5a9fdfd.
      
      * Revert "removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py"
      
      This reverts commit b3cd24c511a82275f5b43c9f176396e6ba05f67e.
      
      * Revert "added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference"
      
      This reverts commit 6986247481a05f1e558b93b2bf3cdae395f9c4ee.
      
      * Revert "added the mentioned AC4 algorithm for constraint propagation"
      
      This reverts commit 03551fbf2aa3980b915d4b6fefcbc70f24547b03.
      
      * added map coloring SAT problem
      
      * fixed build error
      
      * Revert "added map coloring SAT problem"
      
      This reverts commit 93af259e4811ddd775429f8a334111b9dd9e268c.
      
      * Revert "fixed build error"
      
      This reverts commit 6641c2c861728f3d43d3931ef201c6f7093cbc96.
      
      * 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 9d37ae0def15b9e058862cb465da13d2eb926968.
      
      * Revert "added tests for monkey & bananas planning problem"
      
      This reverts commit 24041e9a1a0ab936f7a2608e3662c8efec559382.
      
      * Revert "simplified condition in search.py"
      
      This reverts commit 6d229ce9bde5033802aca29ad3047f37ee6d870d.
      
      * Revert "added monkey & bananas planning problem"
      
      This reverts commit c74933a8905de7bb569bcaed7230930780560874.
      
      * 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 c4139e50e3a75a036607f4627717d70ad0919554.
      
      * 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 .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 658309d32a3baa0a6b8aac247c0d4ae39cf39ea4.
      
      * Revert "fixed typos"
      
      This reverts commit 08ad6603ce7b6a6442a28bc0a07c46fa25af3452.
      
      * fixed typos
      
      * fixed typos
      
      * fixed typos
      
      * fixed typos
      
      * fixed typos and utils imports in *4e.py files
      
      * fixed typos
      04fa4654
  4. 03 nov., 2019 1 validation
    • Donato Meoli's avatar
      added csp, logic, planning and probability .ipynb (#1130) · 5d3a95c0
      Donato Meoli a écrit
      * 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 20ab0e5afa238a0556e68f173b07ad32d0779d3b.
      
      * Revert "fixed typo errors and removed unnecessary brackets"
      
      This reverts commit f743146c43b28e0525b0f0b332faebc78c15946f.
      
      * Revert "added map coloring SAT problems"
      
      This reverts commit 9e0fa550e85081cf5b92fb6a3418384ab5a9fdfd.
      
      * Revert "removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py"
      
      This reverts commit b3cd24c511a82275f5b43c9f176396e6ba05f67e.
      
      * Revert "added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference"
      
      This reverts commit 6986247481a05f1e558b93b2bf3cdae395f9c4ee.
      
      * Revert "added the mentioned AC4 algorithm for constraint propagation"
      
      This reverts commit 03551fbf2aa3980b915d4b6fefcbc70f24547b03.
      
      * added map coloring SAT problem
      
      * fixed build error
      
      * Revert "added map coloring SAT problem"
      
      This reverts commit 93af259e4811ddd775429f8a334111b9dd9e268c.
      
      * Revert "fixed build error"
      
      This reverts commit 6641c2c861728f3d43d3931ef201c6f7093cbc96.
      
      * 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 9d37ae0def15b9e058862cb465da13d2eb926968.
      
      * Revert "added tests for monkey & bananas planning problem"
      
      This reverts commit 24041e9a1a0ab936f7a2608e3662c8efec559382.
      
      * Revert "simplified condition in search.py"
      
      This reverts commit 6d229ce9bde5033802aca29ad3047f37ee6d870d.
      
      * Revert "added monkey & bananas planning problem"
      
      This reverts commit c74933a8905de7bb569bcaed7230930780560874.
      
      * 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 c4139e50e3a75a036607f4627717d70ad0919554.
      
      * 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 .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 658309d32a3baa0a6b8aac247c0d4ae39cf39ea4.
      
      * Revert "fixed typos"
      
      This reverts commit 08ad6603ce7b6a6442a28bc0a07c46fa25af3452.
      
      * fixed typos
      
      * fixed typos
      
      * fixed typos
      
      * fixed typos
      
      * fixed typos and utils imports in *4e.py files
      5d3a95c0
  5. 29 oct., 2019 1 validation
  6. 21 sept., 2019 1 validation
    • Donato Meoli's avatar
      added SAT solvers heuristics and Conflict-Driven Clause Learning SAT solver with tests (#1114) · a23462fb
      Donato Meoli a écrit
      * 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 20ab0e5afa238a0556e68f173b07ad32d0779d3b.
      
      * Revert "fixed typo errors and removed unnecessary brackets"
      
      This reverts commit f743146c43b28e0525b0f0b332faebc78c15946f.
      
      * Revert "added map coloring SAT problems"
      
      This reverts commit 9e0fa550e85081cf5b92fb6a3418384ab5a9fdfd.
      
      * Revert "removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py"
      
      This reverts commit b3cd24c511a82275f5b43c9f176396e6ba05f67e.
      
      * Revert "added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference"
      
      This reverts commit 6986247481a05f1e558b93b2bf3cdae395f9c4ee.
      
      * Revert "added the mentioned AC4 algorithm for constraint propagation"
      
      This reverts commit 03551fbf2aa3980b915d4b6fefcbc70f24547b03.
      
      * added map coloring SAT problem
      
      * fixed build error
      
      * Revert "added map coloring SAT problem"
      
      This reverts commit 93af259e4811ddd775429f8a334111b9dd9e268c.
      
      * Revert "fixed build error"
      
      This reverts commit 6641c2c861728f3d43d3931ef201c6f7093cbc96.
      
      * 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 9d37ae0def15b9e058862cb465da13d2eb926968.
      
      * Revert "added tests for monkey & bananas planning problem"
      
      This reverts commit 24041e9a1a0ab936f7a2608e3662c8efec559382.
      
      * Revert "simplified condition in search.py"
      
      This reverts commit 6d229ce9bde5033802aca29ad3047f37ee6d870d.
      
      * Revert "added monkey & bananas planning problem"
      
      This reverts commit c74933a8905de7bb569bcaed7230930780560874.
      
      * 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 c4139e50e3a75a036607f4627717d70ad0919554.
      
      * 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
      a23462fb
  7. 11 sept., 2019 1 validation
    • Donato Meoli's avatar
      added ForwardPlan, BackwardPlan, SATPlan and tests & fixed cascade_distribution doctest (#1110) · 829fed58
      Donato Meoli a écrit
      * 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 20ab0e5afa238a0556e68f173b07ad32d0779d3b.
      
      * Revert "fixed typo errors and removed unnecessary brackets"
      
      This reverts commit f743146c43b28e0525b0f0b332faebc78c15946f.
      
      * Revert "added map coloring SAT problems"
      
      This reverts commit 9e0fa550e85081cf5b92fb6a3418384ab5a9fdfd.
      
      * Revert "removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py"
      
      This reverts commit b3cd24c511a82275f5b43c9f176396e6ba05f67e.
      
      * Revert "added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference"
      
      This reverts commit 6986247481a05f1e558b93b2bf3cdae395f9c4ee.
      
      * Revert "added the mentioned AC4 algorithm for constraint propagation"
      
      This reverts commit 03551fbf2aa3980b915d4b6fefcbc70f24547b03.
      
      * added map coloring SAT problem
      
      * fixed build error
      
      * Revert "added map coloring SAT problem"
      
      This reverts commit 93af259e4811ddd775429f8a334111b9dd9e268c.
      
      * Revert "fixed build error"
      
      This reverts commit 6641c2c861728f3d43d3931ef201c6f7093cbc96.
      
      * 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 9d37ae0def15b9e058862cb465da13d2eb926968.
      
      * Revert "added tests for monkey & bananas planning problem"
      
      This reverts commit 24041e9a1a0ab936f7a2608e3662c8efec559382.
      
      * Revert "simplified condition in search.py"
      
      This reverts commit 6d229ce9bde5033802aca29ad3047f37ee6d870d.
      
      * Revert "added monkey & bananas planning problem"
      
      This reverts commit c74933a8905de7bb569bcaed7230930780560874.
      
      * 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 c4139e50e3a75a036607f4627717d70ad0919554.
      
      * 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
      829fed58
  8. 19 août, 2019 1 validation
    • Donato Meoli's avatar
      added Viterbi algorithm (#1099) · 0ad4c072
      Donato Meoli a écrit
      * 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 20ab0e5afa238a0556e68f173b07ad32d0779d3b.
      
      * Revert "fixed typo errors and removed unnecessary brackets"
      
      This reverts commit f743146c43b28e0525b0f0b332faebc78c15946f.
      
      * Revert "added map coloring SAT problems"
      
      This reverts commit 9e0fa550e85081cf5b92fb6a3418384ab5a9fdfd.
      
      * Revert "removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py"
      
      This reverts commit b3cd24c511a82275f5b43c9f176396e6ba05f67e.
      
      * Revert "added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference"
      
      This reverts commit 6986247481a05f1e558b93b2bf3cdae395f9c4ee.
      
      * Revert "added the mentioned AC4 algorithm for constraint propagation"
      
      This reverts commit 03551fbf2aa3980b915d4b6fefcbc70f24547b03.
      
      * added map coloring SAT problem
      
      * fixed build error
      
      * Revert "added map coloring SAT problem"
      
      This reverts commit 93af259e4811ddd775429f8a334111b9dd9e268c.
      
      * Revert "fixed build error"
      
      This reverts commit 6641c2c861728f3d43d3931ef201c6f7093cbc96.
      
      * added map coloring SAT problem
      
      * removed redundant parentheses
      
      * added Viterbi algorithm
      0ad4c072
  9. 11 juil., 2018 1 validation
    • Aman Deep Singh's avatar
      Information Gathering Agent and probability notebook update (#931) · 8b25f543
      Aman Deep Singh a écrit
      * Formatting fixes
      
      * Added runtime comparisons of algorithms
      
      * Added tests
      
      * Updated README.md
      
      * Added HMM explanation and contents tab
      
      * Added section on fixed lag smoothing
      
      * Added notebook sections on particle filtering and monte carlo localization
      
      * Updated README.md
      
      * Minor formatting fix
      
      * Added decision networks and information gathering agent
      
      * Added notebook sections for decision networks and information gathering agent
      
      * Updated README.md
      8b25f543
  10. 14 mar., 2018 1 validation
  11. 09 mar., 2018 1 validation
  12. 23 fév., 2018 1 validation
  13. 07 août, 2017 1 validation
  14. 03 août, 2017 1 validation
  15. 06 avr., 2017 1 validation
  16. 25 mar., 2017 2 validations
    • lucasmoura's avatar
      Fix flake8 for main files (#399) · 034d279b
      lucasmoura a écrit
      * Exclude test files from flake8 check
      
      * Fix flake8 for main files
      
      * Add flake8 check to build
      034d279b
    • Angira Sharma's avatar
      added fol_fc_ask to logic.py ; update README.md (#415) · df9d7d52
      Angira Sharma a écrit
      * Update utils.py
      
      in pseudo code the sequence of arguments is   " WEIGHTED-SAMPLE-WITH-REPLACEMENT(N, S, W)"  
      
      * Update utils.py
      
      in pseudo code the sequence of arguments is " WEIGHTED-SAMPLE-WITH-REPLACEMENT(N, S, W)"  same must follow in function "particle_filtering" in the file probability.py
      
      * Update learning.py
      
      weight_sample_with_replacement sequence of args
      
      * Update probability.py
      
       weighted_sample_with_replacement sequence of args
      
      * Update search.py
      
      * Update planning.py
      
      added double_tennis_problem from chapter 11 , figure 11.10
      
      * Update utils.py
      
      added missing space after comma
      
      * Update learning.py
      
      added missing space after comma
      
      * Update probability.py
      
      added missing space after comma
      
      * Update search.py
      
      added missing space after comma
      
      * Update planning.py
      
      * Update planning.py
      
      * Update planning.py
      
      * Update planning.py
      
      * Update planning.py
      
      * Update planning.py
      
      * Update test_agents.py
      
      pep8 changes, showed flake8 errors
      
      * Update test_agents.py
      
      * Update test_agents.py
      
      * Update test_agents.py
      
      * Update test_text.py
      
      added missing whitespace after comma
      
      * Update utils.py
      
      added space after comma
      
      * Update search.py
      
      added space after comma
      
      * Update probability.py
      
      added space after comma
      
      * Update learning.py
      
      added space after comma
      
      * Update planning.py
      
      added double_tennis_problem
      
      * Update rl.py
      
      In the pseudocode figure 21.8, the first 'if' starts with argument 's', which is the previous state, not s1(i.e, the current state).
      
      * Update search.py
      
      the 'uniform_cost_search' in notebook 'search-4e.ipynb' resembles more to the pseudocode in book.
      
      * Update search.py
      
      * Update search.py
      
      * Update search.py
      
      * Update README.md
      
      * Update README.md
      
      * Update README.md
      
      * Update planning.py
      
      * Update planning.py
      
      added spaces after comma
      
      * Update planning.py
      
      * Update test_planning.py
      
      added double_tennis_problem test
      
      * Update test_planning.py
      
      * Update logic.py
      
      added fol_fc_ask from fig 9.3
      
      * Update logic.py
      
      * Update test_planning.py
      df9d7d52
  17. 22 mar., 2017 1 validation
    • Angira Sharma's avatar
      added double_tennis_problem to planning.py; and minor pep8 edits (#373) · 581fa6be
      Angira Sharma a écrit
      * Update test_agents.py
      
      pep8 changes, showed flake8 errors
      
      * Update test_agents.py
      
      * Update test_agents.py
      
      * Update test_agents.py
      
      * Update test_text.py
      
      added missing whitespace after comma
      
      * Update utils.py
      
      added space after comma
      
      * Update search.py
      
      added space after comma
      
      * Update probability.py
      
      added space after comma
      
      * Update learning.py
      
      added space after comma
      
      * Update planning.py
      
      added double_tennis_problem
      
      * Update rl.py
      
      In the pseudocode figure 21.8, the first 'if' starts with argument 's', which is the previous state, not s1(i.e, the current state).
      
      * Update search.py
      
      the 'uniform_cost_search' in notebook 'search-4e.ipynb' resembles more to the pseudocode in book.
      
      * Update search.py
      
      * Update search.py
      
      * Update search.py
      581fa6be
  18. 18 mar., 2017 2 validations
    • VladKha's avatar
      Update comments and cleanup (#354) · d941781c
      VladKha a écrit
      * Update some comments
      
      * Cleanup and remove some duplicate initialization
      
      * Fix some comments quotation and little bugs: raising Exception instead of raising Failure, random.randrange(a,b) instead of random(a, b)
      
      * Fix some comments quotation and remove explicit inheritance from object
      
      * Fix 'r' in front of the ```parse_csv``` comments
      
      * Fix quotation in comments
      
      * Fix quotation in comments and fix bug in 'KB_AgentProgram'
      d941781c
    • sofmonk's avatar
      Update weighted_sample_with_replacement() in utils.py (#366) · bddd1cfb
      sofmonk a écrit
      * Update utils.py
      
      in pseudo code the sequence of arguments is " WEIGHTED-SAMPLE-WITH-REPLACEMENT(N, S, W)"  same must follow in function "particle_filtering" in the file probability.py
      
      * Update learning.py
      
      weight_sample_with_replacement sequence of args
      
      * Update probability.py
      
       weighted_sample_with_replacement sequence of args
      
      * Update search.py
      bddd1cfb
  19. 04 mar., 2017 1 validation
    • Sampad Kumar Saha's avatar
      Modern String Formatting in Code (#292) · 1356ab9e
      Sampad Kumar Saha a écrit
      * Modern string formatting in csp.py.
      
      * Modern string formatting in games.py.
      
      * Modern string formatting in learning.py.
      
      * Modern string formatting in nlp.py.
      
      * Modern string formatting in probability.py.
      
      * Modern string formatting in search.py.
      
      * Replaced {0\!r} by {} if %s.
      
      * Corrected a typo.
      1356ab9e
  20. 03 mar., 2017 1 validation
    • Antonis Maronikolakis's avatar
      Commenting Fixes (#294) · a6e31924
      Antonis Maronikolakis a écrit
      * Update search.py
      
      Commenting issues fixed (spacing and punctuation was off sometimes).
      
      * Update agents.py
      
      * Update canvas.py
      
      Grammar
      
      * Update grid.py
      
      * Update learning.py
      
      Added period
      
      * Update logic.py
      
      Fix quoting
      
      * Update mdp.py
      
      Fixed quoting
      
      * Update nlp.py
      
      Capitalization and punctuation fixes
      
      * Update planning.py
      
      * Update probability.py
      
      * Update rl.py
      
      'th' to 'the'
      
      * Update search.py
      
      * Update text.py
      
      * Update utils.py
      
      * Update utils.py
      
      * Update utils.py
      
      * Update learning.py
      
      Typo
      
      * Update utils.py
      a6e31924
  21. 30 juin, 2016 1 validation
  22. 29 juin, 2016 1 validation
  23. 20 juin, 2016 1 validation
  24. 17 avr., 2016 3 validations
  25. 16 avr., 2016 4 validations
  26. 13 avr., 2016 2 validations
  27. 09 avr., 2016 1 validation
  28. 05 avr., 2016 1 validation
  29. 31 mar., 2016 1 validation
  30. 30 mar., 2016 1 validation
  31. 29 mar., 2016 1 validation
  32. 19 mar., 2016 1 validation