MCPcopy Create free account

hub / github.com/PacktPublishing/Artificial-Intelligence-with-Python / functions

Functions204 in github.com/PacktPublishing/Artificial-Intelligence-with-Python

↓ 1 callersMethodset_target
(self, target_string)
Chapter 07/code/greedy_search.py:14
↓ 1 callersFunctionsibling
(x, y)
Chapter 06/code/family.py:14
↓ 1 callersFunctionstart_tracking
()
Chapter 13/code/optical_flow.py:5
↓ 1 callersMethodstart_tracking
(self)
Chapter 13/code/camshift.py:73
↓ 1 callersMethodtrain
(self, training_data)
Chapter 12/code/speech_recognizer.py:34
↓ 1 callersMethodtraverse_map
(self, matrix)
Chapter 08/code/robot.py:64
↓ 1 callersFunctionuncle
(x, y)
Chapter 06/code/family.py:19
Method__call__
Returns the AI's best move given the current state of the game.
Chapter 09/code/easyAI/AI/SSS.py:56
Method__call__
Returns the AI's best move given the current state of the game.
Chapter 09/code/easyAI/AI/DUAL.py:56
Method__call__
This method enables the transposition table to be used like an AI algorithm. However it will just break if it falls on some g
Chapter 09/code/easyAI/AI/TT.py:40
Method__call__
Returns the AI's best move given the current state of the game.
Chapter 09/code/easyAI/AI/Negamax.py:170
Method__delitem__
(self, key)
Chapter 09/code/easyAI/AI/DictTT.py:92
Method__getitem__
(self, key)
Chapter 09/code/easyAI/AI/DictTT.py:83
Method__init__
(self, scaling_factor=0.5)
Chapter 13/code/camshift.py:6
Method__init__
(self, players)
Chapter 09/code/coins.py:7
Method__init__
(self, players)
Chapter 09/code/tic_tac_toe.py:7
Method__init__
(self, players, board = None)
Chapter 09/code/connect_four.py:8
Method__init__
(self, players, size = (4, 4))
Chapter 09/code/hexapawn.py:7
Method__init__
(self, name = 'Human')
Chapter 09/code/easyAI/Player.py:18
Method__init__
(self, AI_algo, name = 'AI')
Chapter 09/code/easyAI/Player.py:52
Method__init__
Initializes a dictionary with the given number of buckets.
Chapter 09/code/easyAI/AI/DictTT.py:9
Method__init__
(self, depth, scoring=None, win_score=100000, tt=None)
Chapter 09/code/easyAI/AI/SSS.py:50
Method__init__
(self, depth, scoring=None, win_score=100000, tt=None)
Chapter 09/code/easyAI/AI/DUAL.py:50
Method__init__
(self)
Chapter 09/code/easyAI/AI/HashTT.py:8
Method__init__
(self, own_dict = None)
Chapter 09/code/easyAI/AI/TT.py:32
Method__init__
(self, depth, scoring=None, win_score=+inf, tt=None)
Chapter 09/code/easyAI/AI/Negamax.py:162
Method__init__
(self, num_components=4, num_iter=1000)
Chapter 12/code/speech_recognizer.py:21
Method__init__
(self, board)
Chapter 07/code/maze.py:7
Method__init__
(self, c_val=1.0)
Chapter 11/code/crf.py:21
Method__init__
(self, max_moves)
Chapter 08/code/robot.py:9
Method__iter__
(self)
Chapter 09/code/easyAI/AI/DictTT.py:95
Method__missing__
(self, key)
Chapter 09/code/easyAI/AI/DictTT.py:86
Method__setitem__
(self, key, value)
Chapter 09/code/easyAI/AI/DictTT.py:89
Method_conditional
(self, condition, out1, out2)
Chapter 08/code/robot.py:27
Method_progn
(self, *args)
Chapter 08/code/robot.py:87
Methodactions
(self, cur_state)
Chapter 07/code/puzzle.py:7
Methodactions
(self, state)
Chapter 07/code/maze.py:22
Methodactions
(self, cur_state)
Chapter 07/code/greedy_search.py:18
Methodafter
(self, key, hash)
Chapter 09/code/easyAI/AI/Hashes.py:51
Methodask_move
(self, game)
Chapter 09/code/easyAI/Player.py:21
Methodbefore
(self, key)
Chapter 09/code/easyAI/AI/Hashes.py:40
Methodbefore
(self, key)
Chapter 09/code/easyAI/AI/Hashes.py:58
Methodbefore
(self, key)
Chapter 09/code/easyAI/AI/Hashes.py:64
Methodcollisions
(self)
Chapter 09/code/easyAI/AI/DictTT.py:80
Functionconstraint_bigger
(variables, values)
Chapter 07/code/constrained_problem.py:13
Functionconstraint_func
(names, values)
Chapter 07/code/coloring.py:5
Functionconstraint_odd_even
(variables, values)
Chapter 07/code/constrained_problem.py:18
Functionconstraint_unique
(variables, values)
Chapter 07/code/constrained_problem.py:7
Methodcost
(self, state, action, state2)
Chapter 07/code/maze.py:53
Functiondeframesig
Does overlap-add procedure to undo the action of framesig. :param frames: the array of frames. :param siglen: the length of the desired sign
Chapter 12/code/features/sigproc.py:36
Functiondf_solve
Solves a game using a depth-first search: the game is explored until endgames are reached. The endgames are evaluated to see if the
Chapter 09/code/easyAI/AI/solving.py:84
Functiondivision_operator
(numerator, denominator)
Chapter 08/code/symbol_regression.py:9
Functioneval_func
(individual)
Chapter 08/code/bit_counter.py:6
Functioneval_func
(individual)
Chapter 08/code/robot.py:97
Functioneval_func
(individual, points)
Chapter 08/code/symbol_regression.py:16
Functionframesig
Frame a signal into overlapping frames. :param sig: the audio signal to frame. :param frame_len: length of each frame measured in samples.
Chapter 12/code/features/sigproc.py:7
Methodfromfile
Loads a transposition table previously saved with ``TT.tofile``
Chapter 09/code/easyAI/AI/TT.py:64
Methodget_hash
Overridden. Just to create list of single elements to hash
Chapter 09/code/easyAI/AI/Hashes.py:101
Methodget_hash
Recursively computes a hash
Chapter 09/code/easyAI/AI/HashTT.py:24
Methodheuristic
(self, state)
Chapter 07/code/puzzle.py:40
Methodheuristic
(self, state)
Chapter 07/code/maze.py:57
Methodheuristic
(self, cur_state)
Chapter 07/code/greedy_search.py:34
Methodif_target_ahead
(self, out1, out2)
Chapter 08/code/robot.py:56
Methodis_goal
(self, state)
Chapter 07/code/puzzle.py:35
Methodis_goal
(self, state)
Chapter 07/code/maze.py:49
Methodis_goal
(self, cur_state)
Chapter 07/code/greedy_search.py:30
Methodis_over
(self)
Chapter 09/code/tic_tac_toe.py:34
Methodis_over
(self)
Chapter 09/code/connect_four.py:60
Methodis_over
(self)
Chapter 09/code/hexapawn.py:71
Methodjoin
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:16
Methodjoin
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:20
Methodjoin
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:24
Methodjoin
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:28
Methodjoin
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:32
Methodjoin
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:36
Methodjoin
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:42
Methodjoin
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:46
Methodjoin
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:60
Methodjoin
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:67
Functionlogpowspec
Compute the log power spectrum of each frame in frames. If frames is an NxD matrix, output will be NxNFFT. :param frames: the array of frames. E
Chapter 12/code/features/sigproc.py:87
Methodmake_move
(self, move)
Chapter 09/code/tic_tac_toe.py:22
Methodmake_move
(self, column)
Chapter 09/code/connect_four.py:32
Methodmake_move
(self, move)
Chapter 09/code/hexapawn.py:56
Methodmouse_event
(self, event, x, y, flags, param)
Chapter 13/code/camshift.py:37
Methodmove_forward
(self)
Chapter 08/code/robot.py:40
Methodnopponent
(self)
Chapter 09/code/easyAI/TwoPlayersGame.py:97
Methodopponent
(self)
Chapter 09/code/easyAI/TwoPlayersGame.py:105
Methodplayer
(self)
Chapter 09/code/easyAI/TwoPlayersGame.py:101
Methodpossible_moves
(self)
Chapter 09/code/connect_four.py:28
Functionpreemphasis
perform preemphasis on the input signal. :param signal: The signal to filter. :param coeff: The preemphasis coefficient. 0 is no filter,
Chapter 12/code/features/sigproc.py:103
Methodprog2
(self, out1, out2)
Chapter 08/code/robot.py:91
Methodprog3
(self, out1, out2, out3)
Chapter 08/code/robot.py:94
Methodresult
(self, state, action)
Chapter 07/code/puzzle.py:24
Methodresult
(self, cur_state, action)
Chapter 07/code/greedy_search.py:26
Methodscoring
(self)
Chapter 09/code/tic_tac_toe.py:43
Methodscoring
(self)
Chapter 09/code/connect_four.py:64
Methodsense_target
(self)
Chapter 08/code/robot.py:51
Methodshow
(self)
Chapter 09/code/tic_tac_toe.py:38
Methodshow
(self)
Chapter 09/code/connect_four.py:37
Methodshow
(self)
Chapter 09/code/hexapawn.py:75
← previousnext →101–200 of 204, ranked by callers