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
↓ 2 callers
Method
findPathToClosestDot
Returns a path (a list of actions) to the closest dot, starting from gameState.
PJ1_search/searchAgents.py:570
↓ 2 callers
Method
finish
(self)
PJ2_multiagent/textDisplay.py:47
↓ 2 callers
Method
finish
(self)
PJ3_reinforcement/textDisplay.py:46
↓ 2 callers
Method
finish
(self)
PJ1_search/textDisplay.py:47
↓ 2 callers
Method
finish
(self)
PJ4_tracking/textDisplay.py:47
↓ 2 callers
Function
followAction
(state, action, problem)
PJ1_search/searchTestClasses.py:32
↓ 2 callers
Method
generateSuccessor
Generates a new configuration reached by translating the current configuration by the action vector. This is a low-level call and do
PJ2_multiagent/game.py:109
↓ 2 callers
Method
generateSuccessor
Generates a new configuration reached by translating the current configuration by the action vector. This is a low-level call and do
PJ3_reinforcement/game.py:111
↓ 2 callers
Method
generateSuccessor
Generates a new configuration reached by translating the current configuration by the action vector. This is a low-level call and do
PJ1_search/game.py:106
↓ 2 callers
Method
getAction
(self, state)
PJ2_multiagent/multiagentTestClasses.py:299
↓ 2 callers
Method
getAction
Updates beliefs, then chooses an action based on updated beliefs.
PJ4_tracking/bustersAgents.py:98
↓ 2 callers
Method
getBeliefDistribution
(self)
PJ4_tracking/bustersAgents.py:67
↓ 2 callers
Method
getCostOfActions
Returns the cost of a particular sequence of actions. If those actions include an illegal move, return 999999. This is implemented
PJ1_search/searchAgents.py:347
↓ 2 callers
Method
getCurrentState
(self)
PJ3_reinforcement/gridworld.py:185
↓ 2 callers
Function
getDisplay
(graphicsByDefault, options=None)
PJ2_multiagent/autograder.py:315
↓ 2 callers
Function
getDisplay
(graphicsByDefault, options=None)
PJ3_reinforcement/autograder.py:323
↓ 2 callers
Function
getDisplay
(graphicsByDefault, options=None)
PJ1_search/autograder.py:311
↓ 2 callers
Method
getDistanceOnGrid
(self, pos1, pos2)
PJ4_tracking/distanceCalculator.py:78
↓ 2 callers
Method
getEndpoints
(self, direction, position=(0, 0))
PJ2_multiagent/graphicsDisplay.py:296
↓ 2 callers
Method
getEndpoints
(self, direction, position=(0, 0))
PJ3_reinforcement/graphicsDisplay.py:296
↓ 2 callers
Method
getEndpoints
(self, direction, position=(0, 0))
PJ1_search/graphicsDisplay.py:289
↓ 2 callers
Method
getEndpoints
(self, direction, position=(0, 0))
PJ4_tracking/graphicsDisplay.py:289
↓ 2 callers
Method
getFeatures
(self, state, action)
PJ3_reinforcement/featureExtractors.py:75
↓ 2 callers
Method
getGhostPosition
(self, agentIndex)
PJ2_multiagent/pacman.py:166
↓ 2 callers
Method
getGhostPosition
(self, agentIndex)
PJ3_reinforcement/pacman.py:165
↓ 2 callers
Method
getGhostPosition
(self, agentIndex)
PJ1_search/pacman.py:158
↓ 2 callers
Method
getGhostPosition
(self, agentIndex)
PJ4_tracking/busters.py:278
↓ 2 callers
Method
getGhostState
(self, agentIndex)
PJ2_multiagent/pacman.py:161
↓ 2 callers
Method
getGhostState
(self, agentIndex)
PJ3_reinforcement/pacman.py:160
↓ 2 callers
Method
getGhostState
(self, agentIndex)
PJ1_search/pacman.py:153
↓ 2 callers
Method
getGhostStates
(self)
PJ3_reinforcement/pacman.py:157
↓ 2 callers
Method
getGhostStates
(self)
PJ1_search/pacman.py:150
↓ 2 callers
Method
getGhostStates
(self)
PJ4_tracking/pacman.py:150
↓ 2 callers
Function
getGrids1D
(x)
PJ4_tracking/distanceCalculator.py:102
↓ 2 callers
Function
getGrids2D
(pos)
PJ4_tracking/distanceCalculator.py:95
↓ 2 callers
Method
getLegalNeighbors
(position, walls)
PJ3_reinforcement/game.py:372
↓ 2 callers
Method
getLegalPacmanActions
(self)
PJ2_multiagent/pacman.py:137
↓ 2 callers
Method
getLegalPacmanActions
(self)
PJ3_reinforcement/pacman.py:136
↓ 2 callers
Method
getMoveTimeout
(self, agentIndex)
PJ2_multiagent/pacman.py:333
↓ 2 callers
Method
getMoveTimeout
(self, agentIndex)
PJ3_reinforcement/pacman.py:333
↓ 2 callers
Method
getMoveTimeout
(self, agentIndex)
PJ1_search/pacman.py:320
↓ 2 callers
Method
getMoveTimeout
(self, agentIndex)
PJ4_tracking/pacman.py:320
↓ 2 callers
Function
getNoisyDistance
(pos1, pos2)
PJ4_tracking/busters.py:42
↓ 2 callers
Method
getNoisyGhostDistances
Returns a noisy distance to each ghost.
PJ4_tracking/busters.py:219
↓ 2 callers
Method
getNumAgents
(self)
PJ3_reinforcement/pacman.py:173
↓ 2 callers
Method
getNumAgents
(self)
PJ1_search/pacman.py:166
↓ 2 callers
Method
getNumGhosts
(self)
PJ2_multiagent/layout.py:41
↓ 2 callers
Method
getNumGhosts
(self)
PJ3_reinforcement/layout.py:42
↓ 2 callers
Method
getNumGhosts
(self)
PJ1_search/layout.py:41
↓ 2 callers
Method
getNumGhosts
(self)
PJ4_tracking/layout.py:41
↓ 2 callers
Method
getPacmanState
Returns an AgentState object for pacman (in game.py) state.pos gives the current position state.direction gives the travel v
PJ2_multiagent/pacman.py:146
↓ 2 callers
Method
getPacmanState
Returns an AgentState object for pacman (in game.py) state.pos gives the current position state.direction gives the travel v
PJ3_reinforcement/pacman.py:145
↓ 2 callers
Method
getPacmanState
Returns an AgentState object for pacman (in game.py) state.pos gives the current position state.direction gives the travel v
PJ1_search/pacman.py:138
↓ 2 callers
Method
getPolicy
NOTE: 'random' is a special policy value; don't use it in your code.
PJ3_reinforcement/gridworld.py:506
↓ 2 callers
Method
getPossibleActions
(config, walls)
PJ2_multiagent/game.py:350
↓ 2 callers
Method
getPossibleActions
(config, walls)
PJ1_search/game.py:337
↓ 2 callers
Method
getQValue
Should return Q(state,action) = w * featureVector where * is the dotProduct operator
PJ3_reinforcement/qlearningAgents.py:181
↓ 2 callers
Method
getQValue
(self, state, action)
PJ3_reinforcement/valueIterationAgents.py:122
↓ 2 callers
Method
getReward
Get reward for state, action, nextState transition. Note that the reward depends only on the state being departed (as in the
PJ3_reinforcement/gridworld.py:80
↓ 2 callers
Method
getScore
(self)
PJ2_multiagent/multiagentTestClasses.py:62
↓ 2 callers
Method
getScore
(self)
PJ1_search/pacman.py:169
↓ 2 callers
Method
getStartState
Returns the start state (in your state space, not the full Pacman state space)
PJ1_search/searchAgents.py:296
↓ 2 callers
Method
getSuccessor
(position, action)
PJ4_tracking/game.py:371
↓ 2 callers
Method
getSuccessors
(self, state)
PJ1_search/searchTestClasses.py:104
↓ 2 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
PJ4_tracking/pacman.py:193
↓ 2 callers
Method
getWeights
(self)
PJ3_reinforcement/qlearningAgents.py:178
↓ 2 callers
Function
get_data_path
(filename)
PJ5_machinelearning/backend.py:25
↓ 2 callers
Method
get_loss
Computes the loss for a batch of examples. The correct labels `y` are represented as a node with shape (batch_size x 10). Ea
PJ5_machinelearning/models.py:174
↓ 2 callers
Method
get_loss
Computes the loss for a batch of examples. The correct labels `y` are represented as a node with shape (batch_size x 5). Eac
PJ5_machinelearning/models.py:285
↓ 2 callers
Method
get_prediction
Calculates the predicted class for a single data point `x`. Returns: 1 or -1
PJ5_machinelearning/models.py:33
↓ 2 callers
Method
hasFood
(self, x, y)
PJ1_search/pacman.py:205
↓ 2 callers
Method
incrementAlpha
(self, inc)
PJ3_reinforcement/graphicsCrawlerDisplay.py:61
↓ 2 callers
Method
incrementEpsilon
(self, inc)
PJ3_reinforcement/graphicsCrawlerDisplay.py:49
↓ 2 callers
Method
incrementGamma
(self, inc)
PJ3_reinforcement/graphicsCrawlerDisplay.py:55
↓ 2 callers
Method
incrementSpeed
(self, inc)
PJ3_reinforcement/graphicsCrawlerDisplay.py:42
↓ 2 callers
Method
initialize
Creates an initial game state from a layout array (see layout.py).
PJ2_multiagent/pacman.py:260
↓ 2 callers
Method
initialize
Creates an initial game state from a layout array (see layout.py).
PJ3_reinforcement/pacman.py:259
↓ 2 callers
Method
initializeUniformly
Initialize particles to be consistent with a uniform prior. Particles should be evenly distributed across positions in order to ensur
PJ4_tracking/inference.py:438
↓ 2 callers
Method
isEmpty
(self)
PJ1_search/util.py:193
↓ 2 callers
Function
isInt
(pos)
PJ4_tracking/distanceCalculator.py:91
↓ 2 callers
Method
isWin
(self)
PJ2_multiagent/multiagentTestClasses.py:79
↓ 2 callers
Function
keys_pressed
(d_o_e=lambda arg: _root_window.dooneevent(arg), d_w=tkinter._tkinter.DONT_WAIT)
PJ2_multiagent/graphicsUtils.py:302
↓ 2 callers
Function
keys_pressed
(d_o_e=lambda arg: _root_window.dooneevent(arg), d_w=tkinter._tkinter.DONT_WAIT)
PJ3_reinforcement/graphicsUtils.py:306
↓ 2 callers
Function
keys_pressed
(d_o_e=lambda arg: _root_window.dooneevent(arg), d_w=tkinter._tkinter.DONT_WAIT)
PJ1_search/graphicsUtils.py:293
↓ 2 callers
Function
keys_pressed
(d_o_e=lambda arg: _root_window.dooneevent(arg), d_w=tkinter._tkinter.DONT_WAIT)
PJ4_tracking/graphicsUtils.py:293
↓ 2 callers
Method
legalMoves
Returns a list of legal moves from the current state. Moves consist of moving the blank space up, down, left or right. The
PJ1_search/eightpuzzle.py:88
↓ 2 callers
Function
loadAgent
(pacman, nographics)
PJ2_multiagent/pacman.py:631
↓ 2 callers
Function
loadAgent
(pacman, nographics)
PJ3_reinforcement/pacman.py:626
↓ 2 callers
Function
loadAgent
(pacman, nographics)
PJ1_search/pacman.py:603
↓ 2 callers
Function
loadAgent
(pacman, nographics)
PJ4_tracking/busters.py:524
↓ 2 callers
Function
loadAgent
(pacman, nographics)
PJ4_tracking/pacman.py:603
↓ 2 callers
Function
loadModuleFile
(moduleName, filePath)
PJ2_multiagent/autograder.py:135
↓ 2 callers
Function
loadModuleFile
(moduleName, filePath)
PJ3_reinforcement/autograder.py:139
↓ 2 callers
Function
loadModuleFile
(moduleName, filePath)
PJ1_search/autograder.py:134
↓ 2 callers
Function
loadModuleFile
(moduleName, filePath)
PJ4_tracking/autograder.py:143
↓ 2 callers
Function
makeGrid
(gridString)
PJ3_reinforcement/gridworld.py:265
↓ 2 callers
Function
makefun
(testCase, solution_file)
PJ2_multiagent/autograder.py:282
↓ 2 callers
Function
makefun
(testCase, solution_file)
PJ3_reinforcement/autograder.py:292
↓ 2 callers
Function
makefun
(testCase, solution_file)
PJ1_search/autograder.py:278
↓ 2 callers
Function
makefun
(testCase, solution_file)
PJ4_tracking/autograder.py:287
← previous
next →
401–500 of 2,086, ranked by callers