Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in bold formatting. #298

Merged
merged 3 commits into from
Mar 2, 2017

Conversation

sampadsaha5
Copy link
Contributor

Corrected a bad bold formatting in agents.ipynb.

@reachtarunhere
Copy link
Collaborator

Thanks.

@reachtarunhere reachtarunhere merged commit fc287e2 into aimacode:master Mar 2, 2017
@sampadsaha5 sampadsaha5 deleted the fix_bugs_agents branch March 3, 2017 12:44
norvig pushed a commit that referenced this pull request May 29, 2017
* Remove unused import.

* Style: delete excess parentheses. In some of these cases you need to read ahead to see that the paren is not introducing a tuple, for example.

* Remove unnecessary list coercions.

* Use dict comprehensions now that we can.

* Fix bug: used Py2 syntax for except.

* Remove unimplemented(): it's not worth it without *-imports.

* Remove unused imports.

* Fix bugs in diff() and simp(). Add a smoke test.

* Fix typos in comments.

* Formatting: remove tabs.

* Fix some pyflakes complaints.

* Fix: there is no utils.caller anymore.

* Missing imports.

* Typo in comment.

* Typo in comment.

* Style: address pep8 warnings.

* Removed unnecessary list coercions around map (#228)

* Notebook for MDPs (#229)

* Intro and representation of MDPs in code

* Added Image for MDP

* Start of CYK parser. The grammar still needs to be updated accordingly.

* README: GSoC applications over.

* README: Fix link

* planning.py (#232)

* Added Action class for PDDL

* Added tests for Action class

* Changed doc string

* Added PDLL class

* Added Air-Cargo-problem

* Tested Air Cargo Problem

* removes pseudo-codes which are deleted from 3rd edition

* Update Depth Limited Search from 2nd to 3rd ed

* Better Tests for depth_limited_search to make build pass

* Re writes badges in html to open links in new tab

* text edits to search.ipynb (#236)

* some fixes for typos and spacing and some edits for clarity

* some fixes for typos and spacing and some edits for clarity

* format and edit intro

* Added Index Notebook for Binder

* Added Info and Binder Badge

* Removed refrence to depreacated utils * imports

* Add version of search.ipynb for 4th edition.

* uncommented itertools to show the chessboard and renamed the notebook

* adds 4th edition search notebook

* Updating README's Index of Code to reflect actual implementation status of algorithms (#237)

* Added Example and Applet for Value Iteration

* updates aima-data submodule to add sgb-words to data

* reverts last commit which is breaking the build because of the change in submodule

* updates submodule - adds sgb-words to aima-data

* cleans games notebook and interactive TTT, notebooks imports like 'from a import b,c,d'

* Review & Graph Coloring

* Helper Functions & Backtracking Search

* Visualization Applet for Graph Coloring

* Added networkx in requirements.txt. It is now only used for notebook dependencies.

* Removed France Refrence & More general function for converting to instru

* Display Values in Visualization & Changed to Step Function Pattern

* NQueens Applet

* Same Size for Both Boards

* used sgb-words from aimadata rather than downloading a local copy

* adds skeletal romania map in search notebook

* adds node labels, edge labels to romania_map

* adds visualisation for breadth_first_tree_search on romania map in notebook

* adds interactive visual for breadth first search

* adds visuals for uniform cost search and A-star search

* Added Visualize and Time Delay to Applets

* Trait Error Fix for older versions of ipywidgets (#241)

* adds legend to the plot and shows final path after completing search

* users can specify starting and goal cities in search notebook

* users can select searching algorithm to search on romania map

* Implemented Passive ADP Agent

* Remove redundant initialization

* Style: address pep8 warnings.

* Style: address pep8 warnings in main code.

* adds intro and removes views' output in search notebook

* Introduce NQueens & Clear Outputs

* Explain backtracking_search parameters

* Fixed Typo in Docstring

* Added Tests for enumerate_joint

* Tests for Bayesnode.sample

* Added PassiveADPAgent to Index

* Introduction & Examples for ProbDist

* Explained JointProbDist

* Added __repr__ to ProbDist

* Added section for inference by full joint distributions

* removes unnecessary definitions/examples from search notebook

* Fix Description mismatch with code.

* commits after running all visualisations

* Added section on Bayesian Networks

* BayesNet Enumeration

* Added Section on Variable Elimination

* adds intro section to learning notebook

* Experimental new version of probability.ipynb

* gets latest updates (adds MNIST data) from aima-data submodule

* Added Section on Approximate Inference

* adds method to load MNIST data in learning notebook

* adds visualisations of MNIST handwritten digits

* adds visuals og average images from MNIST dataset

* removes checking truth value of an array with more than one element

* runs check_example only if values are provided while initialising DataSet

having this flag drastically reduces time to load & sanity check large image datasets for practical ML tasks

* adds method to calculate manhattan (L1) distance

* impleemnts kNN classifier of learning module on MNIST data

this classifier of learning module is not optimized to run on this huge MNIST data

* implements faster kNN in NumPy in learning notebook

* adds aima3e image to readme (#245)

* adds aima logo as repo's logo and links to aima berkely website

* Update README.md

* Rename Probability-4e.ipynb to probability-4e.ipynb

* Update probability-4e.ipynb

* modifies gramatical errors in learning notebook

* adds contents table in learning notebook

* Updated normalize to support dict

* Shorthand for True False

* updates contents table and modifies notebook accordingly

* Edited a link in CONTRIBUTING.md (#249)

The link to "Pseudocode algorithm (pdf)" was pointing to https://github.com/aimacode/pseudocode/blob/master/algorithms.pdf, which was causing the 404 error. The name of the file algorithms.pdf was changed to aima3e-algorithms.pdf by @ctjoreilly in commit 80286be. Edited the link to reflect that change and point to a valid URL.

* adds SVM classifier on MNIST in SkLearn

* Added Default Parameter to Support Smoothing (#246)

* Planning (#253)

* Minor docstring changes

* Added Spare Tire Problem

* Fixed a bug in substitute method of class Action

* Fixed minor typo in comment

* Implementing HITS algorithm (#244)

* Implementing HITS algorithm

* Moving HITS work to nlp.py and test_nlp.py

* Added test in test_planning.py (#261)

Added test for spare_tire problem of planning module.

* Added implementation of Three Block Tower (#263)

In the precondition positive list, I am not sure whether b!=x is the best way to represent the condition. IsNot(b, x) can be used instead.

* Added implementation of the cake problem, tests for cake and three towers problem (#265)

* Added implementation of the cake problem

* Added test for three_block_tower and fixed a bug in three_block_tower code

* Adding HITS algorithm to completed table (#277)

* Import turn_heading from grids.py since it is used in agents.py (#281)

* Used learning_rate in gradient update for w (#284)

* Update README.md

* Update README.md

* added six to pip installs (#297)

* Typo in bold formatting. (#298)

* Corrected the bad bold formatting.

* Changed Python version locally.

* Reverted back the local environment changes.

* Fixed genetic_algorithm() population iterator (#296)

Seems like a typo, results in error:
TypeError: 'int' object is not iterable.

Fixing it:
for i in len(population) -> for i in range(len(population))

* ModelBasedReflexAgent should have model. Code updated (#300)

* Commenting Fixes (#294)

* 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

* Corrects a typo in tests/test_games.py (#278)

* GraphPlan Algorithm (#274)

* Fixed Bug #295 (#301)

Syntax error. Used the function len instead of count.

* Correct a typo in usage (#279)

* Fixed typo in comments (#302)

* Fixes typos in the search.ipynb (#307)

* Modern String Formatting in Code (#292)

* 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.

* Add new tests (#314)

- Added tests for PluralityLearner, NaiveBayes and kNN algorithms

- Replace parse_csv with non-trivial input

* Image Mistake Fix (#311)

* Delete knn_plot.png

* Add files via upload

* Fix __call__ command for Graph class (#306)

* Add tests to CSP class (#299)

* Add tests to CSP class

Add test for the following methods on CSP class:

* assign
* unassigns
* nconflits
* actions

* Refactor some asserts in test_csp.py

Some asserts were being done in the following way:
assert (X is not None) == True

Now, they are handled in the following way:
assert X

* Change Link's Style (#271)

* Update CONTRIBUTING.md

* Update README.md

* Update CONTRIBUTING.md

* Stop using statistics.mode.

Stop using statistics.mode, because it throws an error when there are ties.

* minor edits in agents (#327)

* fix bold look on github's ipython view

* standardise docstrings

* Update learning.py

* Update utils.py

* changed mean boolean error (#325)

* changed mean boolean error

* Update learning.py

* Update agents.py (#322)

* Fixed knn_plot (#317)

* Update Comments in learning.py + PluralityLearner Update (#315)

* Update Comments on learning.py + PluralityLearner

- Fixed some capitalization, spelling and quotation mistakes in comments

- In the PluralityLearner function, the nested function "predict" always returns the same output for a dataset, without taking into account the input ("example"). I defaulted the input as an empty list, so that we don't have to create (or find) a dummy example when we want to simply find the most popular class.

* Update learning.py

* Update learning.py

* Update learning.py

* Made Requested Changes

* Fix flake8 for test files (#303)

* Add flake8 config file

* Fix flake8 for test files

* Add test to csp.py (#326)

Add tests to the following methods from CSP class

* result
* goal_test
* support_prunning
* suppose
* prune
* choices
* infer_assignement
* restore
* conflicted_vars

* Update utils.py

* Update Learning Notebook (#329)

* Added Plurality Learner Plot Image

* Update learning.ipynb

* corrected return value for simulated-annealing (#369)

* Update weighted_sample_with_replacement()  in  utils.py (#366)

* 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

* Fix: typo in Search notebook (#365)

* changed unify_var() (#344)

* corrected typo and added color green (#364)

* Make build break for flake8 errors on tests dir (#363)

* corrected equivalence operator to <=> from ==> (#361)

* Update grid.ipynb (#358)

* Renamed grid.py Function (#356)

* Update agents.py

* Update test_grid.py

* Update grid.py

* Update search.ipynb (#359)

* Update comments and cleanup (#354)

* 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'

* Updated text.py Notebook (#352)

* Update text.ipynb

* Update text.ipynb

* Converted fig_5_2 Image (#353)

* Delete fig_5_2.svg

* add fig_5_2.png

* Update games.ipynb

* Corrected Direction arithmetic in agents.py (#348)

* added tests for Direction

* fixed Direction arithmetic error

* Completed BlindDog agent examples (#350)

* Improved BlindDog example

* Added 2D GUI IPython capability

* Demonstrated 2D Environment with GUI

* allowing import without ipythonblocks installed

* Updated test_text.py (#349)

* Rearranged Tests

- test_ngram_models to the top
- added test_viterbi-segmentation
- removed test_unigram_text_model

* "test_ngram_models" to "test_text_models"

* Adding missing docstring in utils.py (#342)

* "epoches" to "epochs" (#336)

* Added Hamming Distance (#340)

In learning.py, I added the Hamming Distance metric.

* Update load_MNIST on learning.ipynb (#339)

Make load_MNIST function easier to read

* Added DataSet Functions (#333)

* Update learning.py

* Added remove_examples function

* Add more tests to csp.py (#328)

Add test for the following functions from csp.py

* revise
* AC3
* first_unassigned_variable
* num_legal_values
* mrv

* Fixed a bug in Decision Tree Learner (#334)

* Removed flake8 test for pytest directory (#386)

* edits in search.py (#384)

* added documentation, standardised docstring quotes

* made search.py pep8 compatible using flake8

* fixed bug in OnlineDFSAgent

* Upadte search.py (#389)

minor error fixes.

* Update learning.py (#388)

created a parameter size in the function leave_one_out(learner, dataset, size=None):

* Updated docstring for ModelBasedReflexAgentProgram in agent.py (#391)

* Added testcase for ReflexVacuumAgent and ModelBasedVacuumAgent (#394)

* Added testcase for agents.py

* spacing around commas was wrong

* Add Perceptron to Notebook (#387)

* Add Perceptron Section

* Add Perceptron Image

* Games notebook updates (#383)

* updated games.ipynb with refactored games.py

* fixed typos in games.ipynb

* Fixed bugs in games.py (#380)

* move play_game into games class

* display current state before prompting for action

* fixed player swap bug

* display available moves to human players

* make tests pass

* Update test_learning.py (#376)

Add DecisionTreeLearner, NeuralNetLearner and PerceptronLearner tests

* added double_tennis_problem to planning.py; and minor pep8 edits (#373)

* 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

* Fix gradient descent for LinearLearning (#414)

* Bug Fixes for LinearLearner (#408)

* Bug fixing

* Spacing

* Fix NgramTextModel  bug (#412)

* Fix NgramTextModel bug

* Add new tests for NgramTextModel

* Add NgramCharModel to text.py (#413)

* Add NgramCharModel to text.py

* Update text.py

* Update

* Add DataSet Tutorial (#411)

* added fol_fc_ask to logic.py ;  update README.md  (#415)

* 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

* Use lru_cache decorator on memoize function (#406)

* Bug Fixing in DataSet + Test Updates (#410)

* Bugfixing

* Test for "exclude"

* Update test_learning.py

* update_values

* Fixed Notebook Typos (#397)

* Update games.ipynb

* Update intro.ipynb

* Update csp.ipynb

* Implemented Topological Sort (#401)

* Implement Topological Sort

- Implemented topological_sort
- Added auxiliary function build_topological
- Updated call to topological_sort

* Use defaultdict to build visited

* Added test

* Update csp.py

Skip first item of iteration

* Fix flake8 for main files (#399)

* Exclude test files from flake8 check

* Fix flake8 for main files

* Add flake8 check to build

* Added ShiftDecoder to notebook (#463)

* Added ShiftDecoder to notebook

* replaced code with psource

* fix spelling mistakes

* Update grid.ipynb (#459)

* Implemented PermutationDecoder (#456)

* Adds hashable dict type

* Implemented permutation decoder

* added test for permutation decode

* Optimized permutationdecoder

* relaxed tests

* Record necessary dependency for test (#476)

* Changes for python3 string formating (#471)

* change string format

* Fixed string format

* Distance Functions (Euclidean+ Notebook) (#460)

* Update learning.py

* Add Euclidean Distance

* Update learning.ipynb

* minor fix in notebook

* minor spacing in learning.py

* Added Euclidean Test

* Update logic.py fix minor typos (#474)

* Fix learning tests (#484)

* Temporarily remove flake8 tests (#487)

* Implementation: Multi-Class Backpropagation (#486)

* Update test_learning.py

* Update learning.py

* set max_score to -1 (for now)

* Update learning.py

* Make find_max more pythonic

* Changes to hashable dict (#482)

* Adds hashable dict type

* Implemented permutation decoder

* added test for permutation decode

* Optimized permutationdecoder

* relaxed tests

* uses isinstance

* Update test_learning.py (#483)

* Add tests to NgramCharModel (#485)

* Replaces max/min with argmax/argmin (#481)

* update test_utils.py (#466)

added test for count() and mode()

* test cases for logic.py (#451)

* Changed normalize() (#439)

* Fixed normalize()

* Update test for normalize()

* Fix errors in HITS() (#440)

* Allow tests to run without IPython. Closes #226.

* Expand count tests (#494)

* Use mock to remove network requirement from tests (#495)

* Learning: Grade Learner (#496)

* Add grade_learner

* Update test_learning.py

* Implementation of GA in notebook search.ipyinb (#489)

* Update learning.py

converted method sample(self) to propety and removed the call in the statement return self.sampler

* Update search.py

minor code formatting.

* Implmented GA

Implemented Genetic Algoritm in search.py and search.ipynb

* implemented Genetic Algorithm in search.py and made modifications according to flake8. Demonstrated the working of GA iin search.ipynb.

* implemented Genetic Algorithm in search.py and made modifications according to flake8. Demonstrated the working of GA iin search.ipynb.

* Updated GA in search.ipynb

Removed the image links and included the images used in the image
folder. Reduced the file size from 2.4 MB to 183 KB. For every 21 print
statements that we previously had, now we have 2, only printing the
fittest individual in each generation. The instructions has been made to
get the detailed output.

* Delete aima-python.iml

* Delete misc.xml

* Delete modules.xml

* Delete workspace.xml

* Update learning.py

* Update search.py

* Add files via upload

* Update text.py (#492)

* Update search.py (#480)

Implemented Genetic Algorithm. Because #477 had unnecessary edits,

* Fix incorrect abbreviation from PDLL to PDDL (Planning Domain Definition Language) (#475)

* Implementation: Genetic Algorithm (Fixing Build) (#501)

* Update search.py

* Update test_search.py

* minor edits and notes

* removed fuzzywuzzy

* Add 8-Queens Test

* Optimization without veering from pseudocode

* Variable renaming

* Update search.py

* Optimization

* Update test_search.py

* Fairer reproduction

* Notebook: Genetic Algorithms (#503)

* Update search.ipynb

* Delete comparision.PNG

* Delete mutation.png

* Delete Crossover.png

* Add images

* Update search.ipynb

* Planning implementations - 11.1 and 11.5 (#505)

* define HLA, Problem and implement 11.1

* add demonstration of job_shop_problem

* implementing 11.5

* adding test for refinement

* Learning: Grading Learners (#499)

* Update learning.py

* Update test_learning.py

* Update test_learning.py

* Update intro.ipynb fixing single minor typo (#470)

* Changes to planning.py (#452)

* Removed redundant condition

* moved gola_test inside function

* refactor goal_test()

* Tests: RL.py (#450)

* Added test_rl.py

* Update test_rl.py

Accidentally left "agent.U == 0" in. It was there for some testing of mine.

* Update test_grid.py (#448)

* Fixed mistake in HITS and add test to NLP (#441)

* Add test for determineInlinks()

* Add test for HITS()

* fixed premature updation

* Refactor code to match pseudocode

* Moved asserts from main code to unit tests (#396)

* replace assert with if test in add_thing

* removed inline assert

* added unit test to check edit

* improve user interface

* added another test for air_cargo_problem (#465)

* Add new tests to test_csp.py (#447)

* Typo: 'logic_test.py' -> 'test_logic.py' in README.md fixed (#425)  (#426)

* 'test_logic.py typo fixed(#425)

* typo 'logic_test.py' fixed(#425)

* Updated implementation of FIFOQueue  (#403)

* Added test for FIFOQueue

* Updated FIFOQueue

* Updated FIFOQueue

* FIFOQueue using deque

* fixed flake8 warnings

* Implementation: Continuous Naive Bayes (#435)

* Add Gaussian Function

* Added Tests

Add tests for Continuous Naive Bayes + Means/Standard Deviation

* Update learning.py

* Commenting Fix

* Add test for gaussian

* test for every class

* Update test_learning.py

* Round float results to make sure test passes

* Notebook + Implementation: Perceptron (#512)

* Update learning.ipynb

* Delete perceptron.png

* Add new Perceptron image

* Update Perceptron Implementation

* Intersection query for relevant_pages (#509)

* Modified relevant_pages()

* Additional tests for relevant_pages()

* Fix flake8 warnings (#508)

* Fix flake8 warnings

* Remove unnecessary #noqa

* Fix doctest

* Added PermutationDecoder to notebook (#507)

* Planning notebook (#506)

* start planning notebook

* reorder cell execution order

* incorporating suggestions

* Implementation: Transition Model for MDP (#445)

* Update test_mdp.py

* Update mdp.py

* RL Fixes (Fixing Build) (#519)

* Update rl.py

* Update mdp.py

* Minor changed to rl notebook

* Notebook: Naive Bayes (#510)

* Update learning.ipynb

* Update test_learning.py

* Resolve conflicts

* Implementation: Tree CSP Solver (#434)

* Update csp.py

* Add test

* Update csp.ipynb (#433)

* Refactor backpropagation (#437)

* Create function to initialize random weights

* Add sigmoid derivative function

* Removed errors to make the build pass (#418)

* removed flake8 errors

* fixed remaining flake8 errors

* fixed loop

* added space

* changed cross validation wrapper (#346)

is supposed to return an answer when errT converges, not errV
used to return size of when err_val converges but is supposed to return the size with minimum err_val

* Update README.md

* Show outputs (#521)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants