Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WilliamLambertCN/CS188-Homework
/ functions
Functions
2,086 in github.com/WilliamLambertCN/CS188-Homework
⨍
Functions
2,086
◇
Types & classes
309
↓ 8 callers
Method
getScore
(self)
PJ3_reinforcement/pacman.py:176
↓ 8 callers
Method
getWalls
Returns a Grid of boolean wall indicator variables. Grids can be accessed via list notation, so to check if there is a wall
PJ1_search/pacman.py:193
↓ 8 callers
Method
initialize
Creates an initial game state from a layout array (see layout.py).
PJ4_tracking/pacman.py:252
↓ 8 callers
Method
isWall
(self, x, y, walls)
PJ2_multiagent/graphicsDisplay.py:590
↓ 8 callers
Method
isWall
(self, x, y, walls)
PJ3_reinforcement/graphicsDisplay.py:587
↓ 8 callers
Method
isWall
(self, x, y, walls)
PJ1_search/graphicsDisplay.py:557
↓ 8 callers
Method
isWall
(self, x, y, walls)
PJ4_tracking/graphicsDisplay.py:556
↓ 8 callers
Method
isWin
(self)
PJ2_multiagent/pacman.py:222
↓ 8 callers
Method
iterate_once
(self, batch_size)
PJ5_machinelearning/backend.py:51
↓ 8 callers
Method
parse
(self)
PJ2_multiagent/testParser.py:35
↓ 8 callers
Method
parse
(self)
PJ3_reinforcement/testParser.py:36
↓ 8 callers
Method
parse
(self)
PJ1_search/testParser.py:35
↓ 8 callers
Function
sleep
(secs)
PJ3_reinforcement/graphicsUtils.py:52
↓ 7 callers
Method
addMessage
(self, message)
PJ2_multiagent/testClasses.py:198
↓ 7 callers
Method
addMessage
(self, message)
PJ3_reinforcement/testClasses.py:198
↓ 7 callers
Method
addMessage
(self, message)
PJ1_search/testClasses.py:198
↓ 7 callers
Method
addMessage
(self, message)
PJ4_tracking/testClasses.py:228
↓ 7 callers
Method
addPoints
(self, amt)
PJ1_search/grading.py:277
↓ 7 callers
Method
deepCopy
(self)
PJ2_multiagent/game.py:222
↓ 7 callers
Method
deepCopy
(self)
PJ3_reinforcement/game.py:226
↓ 7 callers
Method
deepCopy
(self)
PJ1_search/game.py:213
↓ 7 callers
Method
deepCopy
(self)
PJ4_tracking/game.py:213
↓ 7 callers
Function
default
(str)
PJ4_tracking/busters.py:439
↓ 7 callers
Method
elapseTime
Predict beliefs in response to a time step passing from the current state. The transition model is not entirely stationary:
PJ4_tracking/inference.py:307
↓ 7 callers
Method
getLegalActions
Returns the legal actions for the agent specified.
PJ1_search/pacman.py:84
↓ 7 callers
Method
get_weights
Return a Parameter instance with the current weights of the perceptron.
PJ5_machinelearning/models.py:16
↓ 7 callers
Method
isLose
(self)
PJ2_multiagent/pacman.py:219
↓ 7 callers
Function
square
(pos, size, color, filled, width)
PJ3_reinforcement/graphicsGridworldDisplay.py:336
↓ 7 callers
Method
testFail
(self, grades)
PJ2_multiagent/testClasses.py:176
↓ 7 callers
Function
wrap_solution
(solution)
PJ1_search/searchTestClasses.py:26
↓ 6 callers
Method
__init__
(self, question, testDict)
PJ3_reinforcement/reinforcementTestClasses.py:430
↓ 6 callers
Method
addPoints
(self, amt)
PJ4_tracking/grading.py:277
↓ 6 callers
Method
computeActionFromValues
The policy is the best action in the given state according to the values currently stored in self.values. You may brea
PJ3_reinforcement/valueIterationAgents.py:98
↓ 6 callers
Method
generateSuccessor
Returns the successor state after the specified agent takes the action.
PJ1_search/pacman.py:96
↓ 6 callers
Method
generateSuccessor
Returns the successor state after the specified agent takes the action.
PJ4_tracking/pacman.py:96
↓ 6 callers
Method
getDirection
(self, agentState)
PJ2_multiagent/graphicsDisplay.py:434
↓ 6 callers
Method
getDirection
(self, agentState)
PJ3_reinforcement/graphicsDisplay.py:434
↓ 6 callers
Method
getDirection
(self, agentState)
PJ1_search/graphicsDisplay.py:429
↓ 6 callers
Method
getDirection
(self, agentState)
PJ4_tracking/graphicsDisplay.py:428
↓ 6 callers
Method
getNumAgents
(self)
PJ2_multiagent/pacman.py:174
↓ 6 callers
Method
getNumAgents
(self)
PJ4_tracking/pacman.py:166
↓ 6 callers
Method
getPosition
(self)
PJ3_reinforcement/game.py:163
↓ 6 callers
Method
getPosition
(self)
PJ1_search/game.py:156
↓ 6 callers
Method
getRobotPosition
returns the (x,y) coordinates of the lower-left point of the robot
PJ3_reinforcement/crawler.py:152
↓ 6 callers
Method
isTerminal
Only the TERMINAL_STATE state is *actually* a terminal state. The other "exit" states are technically non-terminals with a si
PJ3_reinforcement/gridworld.py:103
↓ 6 callers
Method
isWin
(self)
PJ4_tracking/pacman.py:214
↓ 6 callers
Method
mute
(self, agentIndex)
PJ2_multiagent/game.py:585
↓ 6 callers
Method
mute
(self, agentIndex)
PJ3_reinforcement/game.py:587
↓ 6 callers
Method
mute
(self, agentIndex)
PJ1_search/game.py:562
↓ 6 callers
Method
mute
(self, agentIndex)
PJ4_tracking/game.py:562
↓ 6 callers
Method
normalize
Normalize the distribution such that the total value of all keys sums to 1. The ratio of values for all keys will remain the same. In
PJ4_tracking/inference.py:55
↓ 6 callers
Method
pause
(self)
PJ3_reinforcement/textDisplay.py:37
↓ 6 callers
Method
prettyValues
(self, values)
PJ3_reinforcement/reinforcementTestClasses.py:585
↓ 6 callers
Method
sample
Draw a random sample from the distribution and return the key, weighted by the values associated with each key. >>> dist = D
PJ4_tracking/inference.py:84
↓ 6 callers
Method
setLivingReward
The (negative) reward for exiting "normal" states. Note that in the R+N text, this reward is on entering a state and therefo
PJ3_reinforcement/gridworld.py:35
↓ 6 callers
Method
setNoise
The probability of moving in an unintended direction.
PJ3_reinforcement/gridworld.py:45
↓ 6 callers
Method
sigmoid
(self, x)
PJ3_reinforcement/graphicsCrawlerDisplay.py:39
↓ 6 callers
Method
testFail
(self, grades)
PJ4_tracking/testClasses.py:205
↓ 6 callers
Method
testPass
(self, grades)
PJ3_reinforcement/testClasses.py:170
↓ 6 callers
Method
testPass
(self, grades)
PJ4_tracking/testClasses.py:199
↓ 6 callers
Function
to_screen
(point)
PJ3_reinforcement/graphicsGridworldDisplay.py:343
↓ 6 callers
Function
trace_node
Returns a set containing the node and all ancestors in the computation graph
PJ5_machinelearning/autograder.py:292
↓ 6 callers
Method
updateDistributions
(self, dist)
PJ4_tracking/textDisplay.py:44
↓ 5 callers
Method
asList
(self, key=True)
PJ1_search/game.py:224
↓ 5 callers
Method
computeValueFromQValues
Returns max_action Q(state,action) where the max is over legal actions. Note that if there are no legal actions, which
PJ3_reinforcement/qlearningAgents.py:58
↓ 5 callers
Method
directionToVector
(direction, speed=1.0)
PJ3_reinforcement/game.py:347
↓ 5 callers
Function
drawSquare
(x, y, val, min, max, valStr, action, isObstacle, isTerminal, isCurrent)
PJ3_reinforcement/graphicsGridworldDisplay.py:214
↓ 5 callers
Method
fail
Sets sanity check bit to false and outputs a message
PJ2_multiagent/grading.py:273
↓ 5 callers
Method
fail
Sets sanity check bit to false and outputs a message
PJ3_reinforcement/grading.py:273
↓ 5 callers
Method
fail
Sets sanity check bit to false and outputs a message
PJ1_search/grading.py:268
↓ 5 callers
Method
generateSuccessor
Returns the successor state after the specified agent takes the action.
PJ3_reinforcement/pacman.py:102
↓ 5 callers
Method
getJailPosition
(self)
PJ4_tracking/inference.py:132
↓ 5 callers
Method
getLegalActions
Returns the legal actions for the agent specified.
PJ4_tracking/busters.py:84
↓ 5 callers
Method
getLegalPacmanActions
(self)
PJ4_tracking/pacman.py:129
↓ 5 callers
Method
getPacmanPosition
(self)
PJ2_multiagent/pacman.py:155
↓ 5 callers
Method
getPossibleActions
Returns list of valid actions for 'state'. Note that you can request moves into walls and that "exit" states transition to t
PJ3_reinforcement/gridworld.py:52
↓ 5 callers
Method
getStartState
(self)
PJ3_reinforcement/gridworld.py:96
↓ 5 callers
Method
get_loss
Computes the loss for a batch of examples. Inputs: x: a node with shape (batch_size x 1) y: a node with shap
PJ5_machinelearning/models.py:89
↓ 5 callers
Method
isWall
(self, pos)
PJ4_tracking/layout.py:67
↓ 5 callers
Method
isWin
(self)
PJ3_reinforcement/pacman.py:221
↓ 5 callers
Function
manhattanDistance
Returns the Manhattan distance between points xy1 and xy2
PJ2_multiagent/util.py:230
↓ 5 callers
Function
moveCircle
(id, pos, r, endpoints=None)
PJ2_multiagent/graphicsUtils.py:210
↓ 5 callers
Function
moveCircle
(id, pos, r, endpoints=None)
PJ3_reinforcement/graphicsUtils.py:214
↓ 5 callers
Function
moveCircle
(id, pos, r, endpoints=None)
PJ1_search/graphicsUtils.py:203
↓ 5 callers
Function
moveCircle
(id, pos, r, endpoints=None)
PJ4_tracking/graphicsUtils.py:203
↓ 5 callers
Method
pop
Pop the most recently pushed item from the stack
PJ3_reinforcement/util.py:3634
↓ 5 callers
Method
prettyValueSolutionString
(self, name, pretty)
PJ3_reinforcement/reinforcementTestClasses.py:402
↓ 5 callers
Method
push
(self, item, priority)
PJ1_search/util.py:184
↓ 5 callers
Function
raiseNotDefined
()
PJ4_tracking/util.py:453
↓ 5 callers
Method
run
Calculates the score assigned by the perceptron to a data point x. Inputs: x: a node with shape (1 x dimensions)
PJ5_machinelearning/models.py:22
↓ 5 callers
Function
sleep
(secs)
PJ2_multiagent/graphicsUtils.py:48
↓ 5 callers
Function
sleep
(secs)
PJ1_search/graphicsUtils.py:48
↓ 5 callers
Function
sleep
(secs)
PJ4_tracking/graphicsUtils.py:48
↓ 5 callers
Method
total
Return the sum of values for all keys.
PJ4_tracking/inference.py:49
↓ 5 callers
Method
train
Trains the model.
PJ5_machinelearning/models.py:302
↓ 5 callers
Method
update
(self, item, priority)
PJ3_reinforcement/util.py:3689
↓ 4 callers
Method
__isAllowed
(self, y, x)
PJ3_reinforcement/gridworld.py:174
↓ 4 callers
Method
_encode
(self, inp_x, inp_y)
PJ5_machinelearning/backend.py:344
↓ 4 callers
Method
addPoints
(self, amt)
PJ2_multiagent/grading.py:282
↓ 4 callers
Method
addPoints
(self, amt)
PJ3_reinforcement/grading.py:282
← previous
next →
101–200 of 2,086, ranked by callers