FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Patch 1 by sofmonk · Pull Request #3 · sofmonk/aima-python · GitHub

Repository navigation

Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
9d272b7
Update test_agents.py
sofmonk Mar 18, 2017
1581f7a
Update test_agents.py
sofmonk Mar 18, 2017
7f9d053
Update test_agents.py
sofmonk Mar 18, 2017
594736d
Update test_agents.py
sofmonk Mar 18, 2017
b6f9de4
Update test_text.py
sofmonk Mar 18, 2017
7d5dcba
Update utils.py
sofmonk Mar 18, 2017
2783b6a
Update search.py
sofmonk Mar 18, 2017
99cbbaf
Update probability.py
sofmonk Mar 18, 2017
620cb41
Update learning.py
sofmonk Mar 18, 2017
ab26cd8
Update planning.py
sofmonk Mar 18, 2017
f69e7c1
Update rl.py
sofmonk Mar 19, 2017
fba8b92
Merge pull request #4 from sofmonk/patch-2
sofmonk Mar 19, 2017
fce259a
Update search.py
sofmonk Mar 19, 2017
6b82783
Update search.py
sofmonk Mar 19, 2017
5e628be
Update search.py
sofmonk Mar 19, 2017
86f10d5
Update search.py
sofmonk Mar 19, 2017
706838b
Removed flake8 test for pytest directory (#386)
Chipe1 Mar 21, 2017
c8115ce
edits in search.py (#384)
kaivalyar Mar 22, 2017
6a1b84b
Upadte search.py (#389)
BesanHalwa Mar 22, 2017
9f1b1ee
Update learning.py (#388)
BesanHalwa Mar 22, 2017
4548aae
Updated docstring for ModelBasedReflexAgentProgram in agent.py (#391)
articuno12 Mar 22, 2017
4bac571
Added testcase for ReflexVacuumAgent and ModelBasedVacuumAgent (#394)
articuno12 Mar 22, 2017
c38675a
Add Perceptron to Notebook (#387)
antmarakis Mar 22, 2017
2922ab6
Games notebook updates (#383)
kaivalyar Mar 22, 2017
2b07ba9
Fixed bugs in games.py (#380)
kaivalyar Mar 22, 2017
efa5628
Update test_learning.py (#376)
antmarakis Mar 22, 2017
a925fe6
Merge branch 'master' into patch-1
norvig Mar 22, 2017
1bd46b9
Update README.md
sofmonk Mar 23, 2017
6e3fb8e
Update README.md
sofmonk Mar 23, 2017
3f3ef6d
Update README.md
sofmonk Mar 23, 2017
534cfa7
Merge branch 'master' into patch-1
sofmonk Mar 23, 2017
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
Update learning.py
added space after comma
  • Loading branch information
sofmonk authored Mar 18, 2017
commit 620cb4182fed8b4fb4af005a69d0e8b6607deb41
2 changes: 1 addition & 1 deletion learning.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def weighted_replicate(seq, weights, n):
wholes = [int(w * n) for w in weights]
fractions = [(w * n) % 1 for w in weights]
return (flatten([x] * nx for x, nx in zip(seq, wholes)) +
weighted_sample_with_replacement(n - sum(wholes),seq, fractions, ))
weighted_sample_with_replacement(n - sum(wholes), seq, fractions))


def flatten(seqs): return sum(seqs, [])
Expand Down

Back | FazBrowse Home | New Git URL