Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Artificial-Intelligence-with-Python
/ functions
Functions
204 in github.com/PacktPublishing/Artificial-Intelligence-with-Python
⨍
Functions
204
◇
Types & classes
32
↓ 1 callers
Method
set_target
(self, target_string)
Chapter 07/code/greedy_search.py:14
↓ 1 callers
Function
sibling
(x, y)
Chapter 06/code/family.py:14
↓ 1 callers
Function
start_tracking
()
Chapter 13/code/optical_flow.py:5
↓ 1 callers
Method
start_tracking
(self)
Chapter 13/code/camshift.py:73
↓ 1 callers
Method
train
(self, training_data)
Chapter 12/code/speech_recognizer.py:34
↓ 1 callers
Method
traverse_map
(self, matrix)
Chapter 08/code/robot.py:64
↓ 1 callers
Function
uncle
(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
Method
actions
(self, cur_state)
Chapter 07/code/puzzle.py:7
Method
actions
(self, state)
Chapter 07/code/maze.py:22
Method
actions
(self, cur_state)
Chapter 07/code/greedy_search.py:18
Method
after
(self, key, hash)
Chapter 09/code/easyAI/AI/Hashes.py:51
Method
ask_move
(self, game)
Chapter 09/code/easyAI/Player.py:21
Method
before
(self, key)
Chapter 09/code/easyAI/AI/Hashes.py:40
Method
before
(self, key)
Chapter 09/code/easyAI/AI/Hashes.py:58
Method
before
(self, key)
Chapter 09/code/easyAI/AI/Hashes.py:64
Method
collisions
(self)
Chapter 09/code/easyAI/AI/DictTT.py:80
Function
constraint_bigger
(variables, values)
Chapter 07/code/constrained_problem.py:13
Function
constraint_func
(names, values)
Chapter 07/code/coloring.py:5
Function
constraint_odd_even
(variables, values)
Chapter 07/code/constrained_problem.py:18
Function
constraint_unique
(variables, values)
Chapter 07/code/constrained_problem.py:7
Method
cost
(self, state, action, state2)
Chapter 07/code/maze.py:53
Function
deframesig
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
Function
df_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
Function
division_operator
(numerator, denominator)
Chapter 08/code/symbol_regression.py:9
Function
eval_func
(individual)
Chapter 08/code/bit_counter.py:6
Function
eval_func
(individual)
Chapter 08/code/robot.py:97
Function
eval_func
(individual, points)
Chapter 08/code/symbol_regression.py:16
Function
framesig
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
Method
fromfile
Loads a transposition table previously saved with ``TT.tofile``
Chapter 09/code/easyAI/AI/TT.py:64
Method
get_hash
Overridden. Just to create list of single elements to hash
Chapter 09/code/easyAI/AI/Hashes.py:101
Method
get_hash
Recursively computes a hash
Chapter 09/code/easyAI/AI/HashTT.py:24
Method
heuristic
(self, state)
Chapter 07/code/puzzle.py:40
Method
heuristic
(self, state)
Chapter 07/code/maze.py:57
Method
heuristic
(self, cur_state)
Chapter 07/code/greedy_search.py:34
Method
if_target_ahead
(self, out1, out2)
Chapter 08/code/robot.py:56
Method
is_goal
(self, state)
Chapter 07/code/puzzle.py:35
Method
is_goal
(self, state)
Chapter 07/code/maze.py:49
Method
is_goal
(self, cur_state)
Chapter 07/code/greedy_search.py:30
Method
is_over
(self)
Chapter 09/code/tic_tac_toe.py:34
Method
is_over
(self)
Chapter 09/code/connect_four.py:60
Method
is_over
(self)
Chapter 09/code/hexapawn.py:71
Method
join
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:16
Method
join
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:20
Method
join
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:24
Method
join
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:28
Method
join
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:32
Method
join
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:36
Method
join
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:42
Method
join
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:46
Method
join
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:60
Method
join
(self, one, two)
Chapter 09/code/easyAI/AI/Hashes.py:67
Function
logpowspec
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
Method
make_move
(self, move)
Chapter 09/code/tic_tac_toe.py:22
Method
make_move
(self, column)
Chapter 09/code/connect_four.py:32
Method
make_move
(self, move)
Chapter 09/code/hexapawn.py:56
Method
mouse_event
(self, event, x, y, flags, param)
Chapter 13/code/camshift.py:37
Method
move_forward
(self)
Chapter 08/code/robot.py:40
Method
nopponent
(self)
Chapter 09/code/easyAI/TwoPlayersGame.py:97
Method
opponent
(self)
Chapter 09/code/easyAI/TwoPlayersGame.py:105
Method
player
(self)
Chapter 09/code/easyAI/TwoPlayersGame.py:101
Method
possible_moves
(self)
Chapter 09/code/connect_four.py:28
Function
preemphasis
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
Method
prog2
(self, out1, out2)
Chapter 08/code/robot.py:91
Method
prog3
(self, out1, out2, out3)
Chapter 08/code/robot.py:94
Method
result
(self, state, action)
Chapter 07/code/puzzle.py:24
Method
result
(self, cur_state, action)
Chapter 07/code/greedy_search.py:26
Method
scoring
(self)
Chapter 09/code/tic_tac_toe.py:43
Method
scoring
(self)
Chapter 09/code/connect_four.py:64
Method
sense_target
(self)
Chapter 08/code/robot.py:51
Method
show
(self)
Chapter 09/code/tic_tac_toe.py:38
Method
show
(self)
Chapter 09/code/connect_four.py:37
Method
show
(self)
Chapter 09/code/hexapawn.py:75
← previous
next →
101–200 of 204, ranked by callers