1. 08 oct., 2019 1 validation
    • Donato Meoli's avatar
      fixed deep learning .ipynb imports (#1123) · e2b8a425
      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
      e2b8a425
  2. 07 oct., 2019 1 validation
    • Donato Meoli's avatar
      moved util functions to utils.py, moved probability learners from learning.py... · 283fa419
      Donato Meoli a écrit
      moved util functions to utils.py, moved probability learners from learning.py to probabilistic_learning.py with tests, fixed typos and fixed imports in .ipynb files (#1120)
      
      * 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
      283fa419
  3. 04 oct., 2019 3 validations
  4. 29 sept., 2019 2 validations
    • Alessandro Cudazzo's avatar
      Update probability.ipynb: fixed issue #1098 (#1100) · d2972716
      Alessandro Cudazzo a écrit
      * Update probability.ipynb
      fixed issue #1098 https://github.com/aimacode/aima-python/issues/1098
      
      * Remove all Pygments lines
      
      * fixed typos in probability.ipynb
      d2972716
    • Donato Meoli's avatar
      fixed typos (#1118) · 9fe06964
      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
      9fe06964
  5. 21 sept., 2019 2 validations
    • Jos De Roo's avatar
      fixing names (#1116) · 255a1605
      Jos De Roo a écrit
      255a1605
    • 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
  6. 16 sept., 2019 1 validation
    • Donato Meoli's avatar
      fixed expanded_actions( ), added CSPlan with n-ary CSP definition, problems... · 440142c1
      Donato Meoli a écrit
      fixed expanded_actions( ), added CSPlan with n-ary CSP definition, problems and tests, AC3b and AC4 with tests (#1113)
      
      * 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
      440142c1
  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. 01 sept., 2019 6 validations
  9. 19 août, 2019 2 validations
    • Alessandro Cudazzo's avatar
      Fix for unify algorithm in logic.py (#1101) · e5204f69
      Alessandro Cudazzo a écrit
      * Fix issue #1053
      
      Unify algorithm fixed by performing a perform a cascade substitution when a new mapping is added
      This issue was already known and fixed in the aima-java repo.
      
      * added two more test in test_logic.py
      updated documentation for cascade_substitution function in logic.py
      
      * Fixed brackets missing in test_logic.py for the new test
      
      * Fixed typo error, missing space and double quotes for docstrings
      
      * comments changed to cascade_substitution function in logic.py
      e5204f69
    • 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
  10. 05 août, 2019 2 validations
    • tianqiyang's avatar
      Add chapter 12 and 13 Baysian models (#1088) · fd52c720
      tianqiyang a écrit
      * chapter 18 learning
      
      * add chapter 19
      
      * move init dataset in NN learner
      
      * add adam optimizer, add nn learner
      
      * remove cpt 19 for debug
      
      * change while loop in games4e
      
      * add chapter 19
      
      * add sgd and adam optimizer
      
      * add chpt19 deep nn
      
      * add rnn
      
      * add auto encoder
      
      * add comments, correct tests
      
      * add more comments, change algorithms according to orders of chapter sections
      
      * add keras and numpy to requirements
      
      * add tf as requirement
      
      * add gc in test agent
      
      * fix agent bugs for running test_agent and test_agent_4e together
      
      * fix build error
      
      * add chapter 21 and 22
      
      * add chapter 12 and part of 13
      
      * remove chapter 12 and 13, add test of rl
      
      * modify rnn test
      
      * add chapter 12 and 13
      
      * change gaussian kernel util function
      
      * fix example bugs
      
      * fix build bug
      fd52c720
    • tianqiyang's avatar
      add chapter 18 and 19 for 4th edition (#1076) · 809988d7
      tianqiyang a écrit
      * chapter 18 learning
      
      * add chapter 19
      
      * move init dataset in NN learner
      
      * add adam optimizer, add nn learner
      
      * remove cpt 19 for debug
      
      * change while loop in games4e
      
      * add chapter 19
      
      * add sgd and adam optimizer
      
      * add chpt19 deep nn
      
      * add rnn
      
      * add auto encoder
      
      * add comments, correct tests
      
      * add more comments, change algorithms according to orders of chapter sections
      
      * add keras and numpy to requirements
      
      * add tf as requirement
      
      * add gc in test agent
      
      * fix agent bugs for running test_agent and test_agent_4e together
      
      * fix build error
      
      * add chapter 21 and 22
      
      * add chapter 12 and part of 13
      
      * remove chapter 12 and 13, add test of rl
      
      * modify rnn test
      
      * fix build error
      
      * Update utils4e.py
      809988d7
  11. 29 juil., 2019 1 validation
    • Donato Meoli's avatar
      added map coloring SAT problem (#1092) · 37110de1
      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
      37110de1
  12. 27 juil., 2019 1 validation
    • tianqiyang's avatar
      add perception and tests (#1091) · c6406934
      tianqiyang a écrit
      * add perceotion and tests
      
      * upadte requirements
      
      * fix typo
      
      * add utils and images for perception
      
      * fix build error
      
      * comment the last 2 agent tests
      
      * fix build error
      
      * change cnn test
      c6406934
  13. 19 juil., 2019 1 validation
  14. 08 juil., 2019 1 validation
  15. 05 juin, 2019 3 validations
    • Ashish Gupta's avatar
      added class Tfidf (#1054) · 16b2693f
      Ashish Gupta a écrit
      * Implementing Class Tfidf
      
      * added class of Tfidf
      * added scoring function BM25
      
      * Revert "Implementing Class Tfidf"
      16b2693f
    • Rajat Jain's avatar
      Added coverage report generation to Travis (#1058) · e8f462f6
      Rajat Jain a écrit
      Added:
       - .coveragerc file to configure report generation
      Modified:
       - .travis.yml to start generating reports during build
      e8f462f6
    • tianqiyang's avatar
      Bruyang (#1075) · 1bd75195
      tianqiyang a écrit
      * add monte carlo tree search
      
      * add comments to mcts
      
      * change model based reflex agent
      
      * add games4e.py
      
      * recover games4e.ipynb
      
      * add tests to mcts
      1bd75195
  16. 04 juin, 2019 1 validation
  17. 09 mai, 2019 1 validation
  18. 18 avr., 2019 1 validation
  19. 17 avr., 2019 1 validation
  20. 15 avr., 2019 1 validation
  21. 13 avr., 2019 1 validation
  22. 12 avr., 2019 1 validation
  23. 09 avr., 2019 1 validation
  24. 02 avr., 2019 3 validations
  25. 29 mar., 2019 1 validation
    • Rajat Jain's avatar
      Rework agents.ipynb (#1031) · 6f158618
      Rajat Jain a écrit
      * Reworked Introduction and 1-D environment in agents.py
      
      Added:
       - Table of Contents and overview
       - A miniscule explanation of all required code from agents.py
      Modified:
       - Some grammar and sentences
       - Structure of the notebook in 1-D environments to make it more coherent
      Removed:
       - Outputs from notebook (Makes VCS tough and bugs tough to detect)
      
      * Reworked agents in a 2D environment
      
      Modified:
       - Removed global variable turn from 2D park model: Agent programs are not supposed to see anything except percepts
       - Bump percept is now generated when Dog is about to bump into a wall
       - Replaced all XYEnvironment with GraphicEnvironment - Gives better readability to both code and output (Previous way of just showing GraphicEnvironment in the end was redundant imo)
       - Restructured the 2D park and EnergeticBlindDog environment scenario to be more readable
      Removed:
       - Redundant Park2D without graphics (subclass of XYEnvironment)
      
      * Fixed issue #1030
      
      Added:
       - ipython and ipythonblocks packages to requirements.txt
      
      * Has some typographic improvements in agents.ipynb
      
      * Added output to agents.ipynb
      6f158618