1. 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
  2. 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
  3. 05 juin, 2019 1 validation
    • 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
  4. 15 mar., 2019 1 validation
    • Rajat Jain's avatar
      Reworked PriorityQueue and Added Tests (#1025) · fb57e952
      Rajat Jain a écrit
      * Reworked PriorityQueue spec
      
      Modified:
      - Priority Queue methods:
          queue[elem] now returns the first value of elem stored in queue
          elem in queue now correctly returns whether a copy of element is present regardless of the function value. Apparently the bug was introduced while trying to meet heapq spec
          del queue[elem] deletes the first instance of elem in queue correctly
      - Algorithms
          Same change in best_first_graph_search in romania_problem.py and search.py to make them compatible with the new spec
      - Tests
          Introduced 3 tests in test_utils.py to comprehensively test PriorityQueue's new spec
      
      * Reworked PriorityQueue spec
      
      Modified:
      - Priority Queue methods:
          queue[elem] now returns the first value of elem stored in queue
          elem in queue now correctly returns whether a copy of element is present regardless of the function value. Apparently the bug was introduced while trying to meet heapq spec
          del queue[elem] deletes the first instance of elem in queue correctly
      - Algorithms
          Same change in best_first_graph_search in romania_problem.py and search.py to make them compatible with the new spec
      - Tests
          Introduced 3 tests in test_utils.py to comprehensively test PriorityQueue's new spec
      fb57e952
  5. 31 jan., 2019 1 validation
  6. 30 jan., 2019 2 validations
  7. 25 jan., 2019 1 validation
  8. 06 jan., 2019 2 validations
  9. 04 oct., 2018 1 validation
  10. 28 sept., 2018 1 validation
    • DKE's avatar
      Change PriorityQueue expansion (#962) · eee83f64
      DKE a écrit
      `self.heap.append` simply appends to the end of the `self.heap` 
      Since `self.heap` is just a python list. 
      `self.append` calls the append method of the class instance, effectively putting the item in its proper place.
      eee83f64
  11. 19 sept., 2018 1 validation
  12. 24 mar., 2018 1 validation
  13. 09 mar., 2018 1 validation
    • Peter Norvig's avatar
      Add injection · aa6664f4
      Peter Norvig a écrit
      A new function, `injection` for dependency injection of globals (for classes and functions that weren't designed for dependency injection).
      aa6664f4
  14. 23 fév., 2018 1 validation
  15. 19 oct., 2017 1 validation
  16. 02 août, 2017 1 validation
  17. 24 juil., 2017 2 validations
    • Anthony Marakis's avatar
      Implementation: Current Best Learning (#593) · b0227916
      Anthony Marakis a écrit
      * Update README.md
      
      * add powerset to utils
      
      * add powerset test
      
      * Create knowledge.py
      
      * Create test_knowledge.py
      
      * add header docstring to knowledge.py
      
      * update learning docstring
      
      * minor edits in knowledge.py
      b0227916
    • C.G.Vedant's avatar
      SVD (#592) · b5612990
      C.G.Vedant a écrit
      * Fixed truncated_svd
      
      * Moved SVD algorithm to learning.py
      b5612990
  18. 19 juil., 2017 1 validation
  19. 13 juin, 2017 1 validation
  20. 08 juin, 2017 1 validation
    • Antonis Maronikolakis's avatar
      Moving Grid to Utils (#540) · 342d6a3a
      Antonis Maronikolakis a écrit
      * Delete test_grid.py
      
      * Delete grid.ipynb
      
      * Delete grid.py
      
      * Move grid functions to utils
      
      * Move grid tests to utils
      
      * Update agents.py
      
      * Update mdp.py
      
      * Update search.py
      342d6a3a
  21. 28 mai, 2017 1 validation
  22. 24 mai, 2017 1 validation
  23. 17 avr., 2017 2 validations
  24. 12 avr., 2017 1 validation
    • C.G.Vedant's avatar
      Changes to hashable dict (#482) · f9f6ecf3
      C.G.Vedant a écrit
      * Adds hashable dict type
      
      * Implemented permutation decoder
      
      * added test for permutation decode
      
      * Optimized permutationdecoder
      
      * relaxed tests
      
      * uses isinstance
      f9f6ecf3
  25. 06 avr., 2017 2 validations
  26. 25 mar., 2017 2 validations
  27. 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
  28. 18 mar., 2017 2 validations
  29. 07 mar., 2017 2 validations
  30. 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
  31. 06 août, 2016 2 validations