MCPcopy Create free account

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

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

↓ 35 callersMethodshow
(self)
Chapter 09/code/coins.py:41
↓ 25 callersMethodjoin
Returns combined hash from two hashes one - existing (combined) hash so far two - hash of new element one = join(one,
Chapter 09/code/easyAI/AI/HashTT.py:51
↓ 15 callersMethodrun
(self,routine)
Chapter 08/code/robot.py:59
↓ 9 callersMethodtrain
(self, X_train, y_train)
Chapter 11/code/crf.py:35
↓ 7 callersMethodswitch_player
(self)
Chapter 09/code/easyAI/TwoPlayersGame.py:108
↓ 7 callersFunctionvisualize_classifier
(classifier, X, y, title='')
Chapter 03/code/utilities.py:4
↓ 6 callersMethodcopy
(self)
Chapter 09/code/easyAI/TwoPlayersGame.py:111
↓ 6 callersMethodpossible_moves
(self)
Chapter 09/code/coins.py:21
↓ 6 callersFunctionread_data
(input_file, index)
Chapter 11/code/timeseries.py:5
↓ 5 callersFunctionget_location
(rows, input_element)
Chapter 07/code/puzzle.py:62
↓ 5 callersMethodis_over
(self)
Chapter 09/code/coins.py:33
↓ 5 callersFunctionparent
(x, y)
Chapter 06/code/family.py:5
↓ 5 callersMethodscoring
(self)
Chapter 09/code/coins.py:37
↓ 5 callersMethodstore
Stores an entry into the table
Chapter 09/code/easyAI/AI/TT.py:52
↓ 4 callersFunctioncreate_layer
(shape)
Chapter 16/code/cnn.py:21
↓ 4 callersFunctionget_frame
(cap, scaling_factor)
Chapter 13/code/frame_diff.py:14
↓ 4 callersMethodmake_move
(self, move)
Chapter 09/code/coins.py:25
↓ 4 callersMethodplay
(self, nmoves=1000, verbose=True)
Chapter 09/code/easyAI/TwoPlayersGame.py:69
↓ 4 callersFunctionstring_to_list
(input_string)
Chapter 07/code/puzzle.py:58
↓ 3 callersFunctionextract_features
(words)
Chapter 10/code/sentiment_analyzer.py:6
↓ 3 callersFunctiongrandparent
(x, y)
Chapter 06/code/family.py:9
↓ 3 callersMethodhash_key
Given a key this will create a number and then convert it to an index for the dict.
Chapter 09/code/easyAI/AI/DictTT.py:24
↓ 3 callersMethodlookup
Requests the entry in the table. Returns None if the entry has not been previously stored in the table.
Chapter 09/code/easyAI/AI/TT.py:35
↓ 3 callersMethodloss_condition
(self)
Chapter 09/code/connect_four.py:44
↓ 3 callersFunctionmfcc
Compute MFCC features from an audio signal. :param signal: the audio signal from which to compute features. Should be an N*1 array :param sam
Chapter 12/code/features/base.py:13
↓ 3 callersFunctionpearson_score
(dataset, user1, user2)
Chapter 05/code/compute_scores.py:44
↓ 3 callersFunctionvisualize_classifier
(classifier, X, y)
Chapter 02/code/utilities.py:4
↓ 2 callersMethod__contains__
(self, key)
Chapter 09/code/easyAI/AI/DictTT.py:98
↓ 2 callersFunctionchunker
(input_data, N)
Chapter 10/code/text_chunker.py:6
↓ 2 callersMethodclassify
(self, input_data)
Chapter 11/code/crf.py:43
↓ 2 callersFunctionconvert_to_letters
(indices)
Chapter 11/code/crf.py:47
↓ 2 callersFunctionconvolution_2d
(x, W)
Chapter 16/code/cnn.py:28
↓ 2 callersFunctionextract_features
(word, N=2)
Chapter 10/code/gender_identifier.py:9
↓ 2 callersFunctionfbank
Compute Mel-filterbank energy features from an audio signal. :param signal: the audio signal from which to compute features. Should be an N*1 arr
Chapter 12/code/features/base.py:38
↓ 2 callersMethodget
Gets the value for the given key, or the default.
Chapter 09/code/easyAI/AI/DictTT.py:44
↓ 2 callersFunctionget_data
(num_points)
Chapter 14/code/recurrent_neural_network.py:5
↓ 2 callersFunctionget_filterbanks
Compute a Mel-filterbank. The filters are stored in the rows, the columns correspond to fft bins. The filters are returned as an array of size nfi
Chapter 12/code/features/base.py:128
↓ 2 callersFunctionhz2mel
Convert a value in Hertz to Mels :param hz: a value in Hz. This can also be a numpy array, conversion proceeds element-wise. :returns: a valu
Chapter 12/code/features/base.py:112
↓ 2 callersMethodloss_condition
(self)
Chapter 09/code/tic_tac_toe.py:26
↓ 2 callersMethodloss_condition
(self)
Chapter 09/code/hexapawn.py:65
↓ 2 callersFunctionmax_pooling
(x)
Chapter 16/code/cnn.py:32
↓ 2 callersMethodmix
Auxiliary function.
Chapter 09/code/easyAI/AI/Hashes.py:82
↓ 2 callersFunctionmtd
This implements Memory-Enhanced Test Driver. This method is not meant to be used directly. It's used by several algorithms from MT family
Chapter 09/code/easyAI/AI/MTdriver.py:87
↓ 2 callersFunctiontone_synthesizer
(freq, duration, amplitude=1.0, sampling_freq=44100)
Chapter 12/code/synthesizer.py:8
↓ 2 callersFunctionvisualize_output
(nn, num_points_test)
Chapter 14/code/recurrent_neural_network.py:24
↓ 2 callersMethodwin
(self)
Chapter 09/code/coins.py:29
↓ 1 callersMethod_reset
(self)
Chapter 08/code/robot.py:19
↓ 1 callersMethodafter
Returns final value of hash
Chapter 09/code/easyAI/AI/HashTT.py:18
↓ 1 callersMethodask_move
(self, game)
Chapter 09/code/easyAI/Player.py:57
↓ 1 callersMethodbefore
(self, key)
Chapter 09/code/easyAI/AI/Hashes.py:97
↓ 1 callersMethodbefore
Returns initial value of hash. It's also the place where you can initialize some auxiliary variables
Chapter 09/code/easyAI/AI/HashTT.py:11
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 15/code/balancer.py:5
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 15/code/run_environment.py:5
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 16/code/cnn.py:6
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 16/code/single_layer.py:6
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 12/code/speech_recognizer.py:12
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 07/code/greedy_search.py:4
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 05/code/collaborative_filtering.py:7
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 05/code/movie_recommender.py:8
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 05/code/compute_scores.py:5
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 11/code/crf.py:12
↓ 1 callersFunctionbuild_arg_parser
()
Chapter 03/code/random_forests.py:14
↓ 1 callersFunctionbuild_models
(input_folder)
Chapter 12/code/speech_recognizer.py:44
↓ 1 callersFunctioncheck_prime
(x)
Chapter 06/code/prime.py:6
↓ 1 callersMethodcompute_hash
Computes real hash
Chapter 09/code/easyAI/AI/Hashes.py:117
↓ 1 callersMethodcompute_score
(self, input_data)
Chapter 12/code/speech_recognizer.py:40
↓ 1 callersFunctioncreate_toolbox
(num_bits)
Chapter 08/code/bit_counter.py:11
↓ 1 callersFunctioncreate_toolbox
()
Chapter 08/code/robot.py:107
↓ 1 callersFunctioncreate_toolbox
(strategy)
Chapter 08/code/visualization.py:7
↓ 1 callersFunctioncreate_toolbox
()
Chapter 08/code/symbol_regression.py:26
↓ 1 callersMethoddelete
Deletes the given key from the dictionary.
Chapter 09/code/easyAI/AI/DictTT.py:67
↓ 1 callersFunctioneuclidean_score
(dataset, user1, user2)
Chapter 05/code/compute_scores.py:16
↓ 1 callersMethodevaluate
(self, X_test, y_test)
Chapter 11/code/crf.py:39
↓ 1 callersFunctionfind_similar_users
(dataset, user, num_users)
Chapter 05/code/collaborative_filtering.py:14
↓ 1 callersFunctionframe_diff
(prev_frame, cur_frame, next_frame)
Chapter 13/code/frame_diff.py:4
↓ 1 callersFunctionget_biases
(shape)
Chapter 16/code/cnn.py:17
↓ 1 callersFunctionget_frame
(cap, scaling_factor)
Chapter 13/code/colorspaces.py:5
↓ 1 callersFunctionget_frame
(cap, scaling_factor)
Chapter 13/code/background_subtraction.py:5
↓ 1 callersFunctionget_recommendations
(dataset, input_user)
Chapter 05/code/movie_recommender.py:15
↓ 1 callersMethodget_slot
Returns the index, key, and value of a slot found in the dict. Returns -1, key, and default (None if not set) when not found.
Chapter 09/code/easyAI/AI/DictTT.py:32
↓ 1 callersFunctionget_weights
(shape)
Chapter 16/code/cnn.py:13
↓ 1 callersMethodhash_char
Returns hash for an one-letter string
Chapter 09/code/easyAI/AI/HashTT.py:45
↓ 1 callersMethodhash_int
Returns hash for a number
Chapter 09/code/easyAI/AI/HashTT.py:39
↓ 1 callersFunctionid_solve
Solves a game using iterative deepening, i.e. determines if by playing perfectly the first player can force a win, or whether it will always
Chapter 09/code/easyAI/AI/solving.py:5
↓ 1 callersFunctionlifter
Apply a cepstral lifter the the matrix of cepstra. This has the effect of increasing the magnitude of the high frequency DCT coeffs. :par
Chapter 12/code/features/base.py:158
↓ 1 callersFunctionlist_to_string
(input_list)
Chapter 07/code/puzzle.py:54
↓ 1 callersFunctionload_data
(input_file)
Chapter 10/code/topic_modeler.py:7
↓ 1 callersMethodload_data
(self)
Chapter 11/code/crf.py:26
↓ 1 callersFunctionlogfbank
Compute log Mel-filterbank energy features from an audio signal. :param signal: the audio signal from which to compute features. Should be an N*1
Chapter 12/code/features/base.py:67
↓ 1 callersFunctionmagspec
Compute the magnitude 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:68
↓ 1 callersFunctionmel2hz
Convert a value in Mels to Hertz :param mel: a value in Mels. This can also be a numpy array, conversion proceeds element-wise. :returns: a v
Chapter 12/code/features/base.py:120
↓ 1 callersFunctionmt
This implements Memory-Enhanced Test with transposition tables. This method is not meant to be used directly. This implementation is insp
Chapter 09/code/easyAI/AI/MTdriver.py:6
↓ 1 callersFunctionnegamax
This implements Negamax with transposition tables. This method is not meant to be used directly. See ``easyAI.Negamax`` for an example of
Chapter 09/code/easyAI/AI/Negamax.py:11
↓ 1 callersMethodpossible_moves
(self)
Chapter 09/code/tic_tac_toe.py:18
↓ 1 callersMethodpossible_moves
(self)
Chapter 09/code/hexapawn.py:38
↓ 1 callersFunctionpowspec
Compute the power spectrum of each frame in frames. If frames is an NxD matrix, output will be NxNFFT. :param frames: the array of frames. Each
Chapter 12/code/features/sigproc.py:78
↓ 1 callersFunctionprocess
(input_text)
Chapter 10/code/topic_modeler.py:17
↓ 1 callersMethodresult
(self, state, action)
Chapter 07/code/maze.py:32
↓ 1 callersFunctionrun_tests
(test_files)
Chapter 12/code/speech_recognizer.py:100
↓ 1 callersMethodset
Sets the key to the value, replacing any existing value.
Chapter 09/code/easyAI/AI/DictTT.py:51
next →1–100 of 204, ranked by callers