1. 01 sept., 2011 3 validations
  2. 28 août, 2011 11 validations
  3. 27 août, 2011 2 validations
  4. 05 mai, 2010 1 validation
  5. 13 jan., 2008 1 validation
  6. 25 nov., 2007 3 validations
  7. 17 juil., 2007 1 validation
    • spottedMetal's avatar
      Added trivial grammar E_NP_ for testing. · 20ecaa25
      spottedMetal a écrit
      Fixed error in Chart parses method, where it would
      incorrectly return some parses that did not start at the beginning
      of the input (and therefore did not span the whole input).
      20ecaa25
  8. 13 juil., 2007 17 validations
    • spottedMetal's avatar
      Added functions variables, test_ask. · 551af9ab
      spottedMetal a écrit
      Corrected doctests for standardize_apart.
      
      Preliminary doctest examples for fol_bc_ask.
      
      Corrected error in the 'literals' function.
      
      In class FolKB, added doctest examples; added definition
      of method ask_generator.
      
      Added functions pretty, pretty_dict, pretty_set, pp;
      redefined ppdict, ppset, using pretty_dict and pretty_set.
      
      Cleaned up code, simplifying statements and comments.
      551af9ab
    • spottedMetal's avatar
      Added function subst_compose. · cbd652ff
      spottedMetal a écrit
      fol_bc_ask MIGHT be working now, in the form of returning a list of all 
      answers instead of yielding them one at a time.  Needs more testing.
      cbd652ff
    • spottedMetal's avatar
      Added functions: is_positive, is_negative, is_literal, · de8ded4a
      spottedMetal a écrit
      literals, is_definite_clause.
      
      Partially implemented FolKB class and function fol_bc_ask.
      
      Fixed errors in pl_resolution, standardize_apart.
      
      Fixed errors in doctest cases for dpll_satisfiable, unify, extend,
      and pl_resolve.
      
      Added functions ppsubst, ppdict, and ppset, and used to simplify doctest cases.
      de8ded4a
    • spottedMetal's avatar
      Added class BoolCpt. Its methods p and rand replace · 2bce0b3d
      spottedMetal a écrit
      functions condprob and condsamp.
      
      Added function event_values.
      
      In BayesNet class, initialize instance variable evidence.
      
      Simplified comments.
      2bce0b3d
    • spottedMetal's avatar
      Problem is now a new-style class · 5f06ca94
      spottedMetal a écrit
      5f06ca94
    • spottedMetal's avatar
      Implemented enumeration_ask algorithm, Fig. 14.9. · 4a1692b1
      spottedMetal a écrit
      Added methods to the BayesNet class to needed for
      enumeration_ask: variable_node, variables, variable_values.
      
      Added Fig. 14.11a sprinkler network.
      
      Completed/corrected prior_sample.
      
      Implemented rejection_sampling.
      
      The ProbDist normalize method now uses floating point division.
      
      Implemented likelihood_weighting.
      
      ProbDist constructor has an optional freqs (frequencies) argument.
      
      Added function condsamp (samples from a CPT).
      
      Additional doctest cases.
      4a1692b1
    • spottedMetal's avatar
      Comment changes in the successor method · b01f0102
      spottedMetal a écrit
      b01f0102
    • spottedMetal's avatar
      e0b1182e
    • spottedMetal's avatar
      Fixed error in unify/occur_check · 8b8527ca
      spottedMetal a écrit
      8b8527ca
    • spottedMetal's avatar
      Identified, but did not fix, an error in the percept method of · 61f4730c
      spottedMetal a écrit
      XYEnvironment.  Identified three possible inelegances or errors in the 
      __init__ method of EnvCanvas.
      61f4730c
    • spottedMetal's avatar
      Corrected subtle bug in the "conflicted" method · 9d81cd6a
      spottedMetal a écrit
      of the NQueensProblem -- it had been ignoring conflicts with the
      last queen previously added.
      9d81cd6a
    • spottedMetal's avatar
      Added binding of mouse-1 to show the state of objects in the cell · 537c622e
      spottedMetal a écrit
      Changed 'Delay' slider to 'Speed' slider;
      
      Changed self.running values to boolean True, False.
      537c622e
    • spottedMetal's avatar
      Defined a make_agent_program method for the Agent classes, · 612bb0a1
      spottedMetal a écrit
      for more uniform initialization of Agents.
      
      Improved GUI with commands to list objects and agents.
      
      Fixed GUI speed control (delay slider), narrowed the
      range and increased the resolution.
      
      Added three new image files and image credits file.
      Better image for dirt
      612bb0a1
    • spottedMetal's avatar
      ac7af967
    • spottedMetal's avatar
      XYEnvironment notifies observers of new objects and object moves. · aeeaedc6
      spottedMetal a écrit
      EnvCanvas draws each object either as a canvas text (string) or using
      an image from a file associated with the object class.
      
      Implemented delete_object for Environment and XYEnvironment,
      renamed XYEnvironment methods objects_at and find_at as
      list_objects_at and some_objects_at, for clarity;
      revised arguments lists of list_objects_at and some_objects_at;
      revised implementation of bumping to work with new list_objects_at and
      some_objects_at.
      
      Promoted XYEnvironment methods list_objects_at and
      some_objects_at to Environment.
      
      Defined can_grab method for Agent class,
      replacing Object method is_grabable.
      
      Cleaned up code, removed tracing print statements, etc.
      
      Removed -1 penalty for Nop in VacuumEnvironment.
      
      Added Tk mainloop to test_gui, and commented out call to test_gui.
      aeeaedc6
    • spottedMetal's avatar
      Converted all classes in agents.py to new-style classes. · f0905f6d
      spottedMetal a écrit
      Further refactoring of EnvGUI, EnvToolbar, and EnvCanvas.
      f0905f6d
    • spottedMetal's avatar
      A. Changes to graphical user interface: · c133b981
      spottedMetal a écrit
          1.  Unquoted Tk graphics section and created a main window for the GUI.
      
              Refactored code for graphical user interface, splitting EnvFrame
      	into EnvGUI (main Tk window), EnvToolbar, and EnvCanvas.
      
          2.  Disabled binding of Mouse-1 and Mouse-2, which don't do anything 
      	useful.
      
          3.  Implemented the add-object pop-up menu.  Defined object_classes for
      	each kind of environment.
      
          4.  Added images for ReflexVacuumAgent and Dirt, and a get_image
      	method.  get_image caches images in a dictionary to prevent
      	them from being garbage-collected and avoid repeated reading
      	of the same files.
      
              Created image files for reflex vacuum agent and dirt.
      
      B.  Changes to XYEnvironment:
      
          1.  Implemented find_at method.
      
          2.  Implemented move_to method including bumping.
      
      C.  Other changes -- to support bumping, defined the Obstacle class,
          and made Wall a subclass of Obstacle.  A bump occurs when an agent
          tries to move to a cell occupied by any...
      c133b981
  9. 13 juin, 2007 1 validation