Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bowenbaker/metaqnn
/ functions
Functions
163 in github.com/bowenbaker/metaqnn
⨍
Functions
163
◇
Types & classes
22
↓ 29 callers
Method
as_tuple
(self)
libs/grammar/state_enumerator.py:36
↓ 19 callers
Method
copy
(self)
libs/grammar/state_enumerator.py:47
↓ 8 callers
Method
bucket_state
(self, state)
libs/grammar/state_enumerator.py:202
↓ 7 callers
Method
numlist
(self, _parent=None)
libs/grammar/cnn.py:131
↓ 6 callers
Function
get_int
(file_in)
libs/input_modules/get_datasets.py:312
↓ 5 callers
Method
add_activate
(self, bottom)
libs/caffe/string_to_model.py:52
↓ 5 callers
Method
enumerate_state
Defines all state transitions, populates q_values where actions are valid Legal Transitions: conv -> conv, pool
libs/grammar/state_enumerator.py:69
↓ 4 callers
Method
_calc_new_image_size
Returns new image size given previous image size and filter parameters
libs/grammar/state_enumerator.py:207
↓ 4 callers
Function
create_record
Creates a single LMDB file. Path is the full path of filename to store
libs/input_modules/lmdb_creator.py:25
↓ 4 callers
Method
load_q_values
(self, q_csv_path)
libs/grammar/q_learner.py:15
↓ 4 callers
Function
parse_caffe_log_file
(log_file)
libs/caffe/run_caffe_command_line.py:39
↓ 4 callers
Method
split
(self, _parent=None)
libs/grammar/cnn.py:117
↓ 3 callers
Method
_update_q_value
Update a single Q-Value for start_state given the state we transitioned to and the reward.
libs/grammar/q_learner.py:264
↓ 3 callers
Function
check_out_of_memory
(log_file)
libs/caffe/run_caffe_command_line.py:7
↓ 3 callers
Method
convert_model_string_to_states
Takes a parsed model string and returns a recursive list of states.
libs/grammar/state_string_utils.py:77
↓ 3 callers
Function
get_test_accuracies_dict
(log_file)
libs/caffe/run_caffe_command_line.py:82
↓ 3 callers
Method
load_qlearner
(self)
q_server.py:84
↓ 3 callers
Method
save_to_csv
(self, q_csv_path)
libs/grammar/q_learner.py:60
↓ 3 callers
Method
send_new_net
(self, client_name)
q_server.py:225
↓ 2 callers
Method
_possible_fc_size
Return a list of possible FC sizes given the current state
libs/grammar/state_enumerator.py:221
↓ 2 callers
Method
_reset_for_new_walk
Reset the state for a new random walk
libs/grammar/q_learner.py:196
↓ 2 callers
Method
_run_agent
Have Q-Learning agent sample current policy to generate a network
libs/grammar/q_learner.py:205
↓ 2 callers
Method
add_batchnorm
(self, bottom)
libs/caffe/string_to_model.py:46
↓ 2 callers
Function
add_padding
(data, pad, pad_value)
libs/input_modules/lmdb_creator.py:14
↓ 2 callers
Method
bucket_state_tuple
(self, state)
libs/grammar/state_enumerator.py:197
↓ 2 callers
Function
clear_redundant_logs_caffe
Deletes uneeded log files and model saves: args: replay - with standard replay dic columns. Deletes only model saves that aren't
libs/misc/clear_trained_models.py:8
↓ 2 callers
Method
create_caffe_spec
(self, net_string, caffe_prototxt)
libs/caffe/string_to_model.py:65
↓ 2 callers
Method
create_top_layer
(self, phase=caffe.TRAIN, input_file="", train=True)
libs/caffe/string_to_model.py:72
↓ 2 callers
Method
generate_net
(self)
libs/grammar/q_learner.py:166
↓ 2 callers
Method
get_snapshot_epoch_fname
(self, model_dir, max_iter)
libs/caffe/model_exec.py:108
↓ 2 callers
Function
get_svhn
If root_path is None, we download the data set from internet. Either save path or root path must not be None and not both. Returns
libs/input_modules/get_datasets.py:124
↓ 2 callers
Method
layers
(self, _parent=None)
libs/grammar/cnn.py:32
↓ 2 callers
Function
load_CIFAR_batch
load single batch of cifar
libs/input_modules/get_datasets.py:71
↓ 2 callers
Function
load_cifar100_data
(filename)
libs/input_modules/get_datasets.py:263
↓ 2 callers
Function
load_mnist
(image_fname, label_fname)
libs/input_modules/get_datasets.py:322
↓ 2 callers
Method
net
(self, _parent=None)
libs/grammar/cnn.py:144
↓ 2 callers
Method
number_trained_unique
Epsilon defaults to the minimum
q_server.py:106
↓ 2 callers
Function
parse_line_for_net_output
(regex_obj, row, row_dict_list, line, iteration)
libs/caffe/run_caffe_command_line.py:18
↓ 2 callers
Method
save_models
(self, model_descr, learning_rate, max_iter)
libs/caffe/model_gen.py:21
↓ 2 callers
Function
shuffle
X and y must be the same length vectors
libs/input_modules/lmdb_creator.py:59
↓ 2 callers
Method
state_action_transition
start_state: Should be the actual start_state, not a bucketed state action: valid action returns: next state, not bucketed
libs/grammar/state_enumerator.py:181
↓ 2 callers
Method
state_list_to_string
Convert the list of strings to a string we can train from according to the grammar
libs/grammar/state_string_utils.py:48
↓ 2 callers
Method
state_to_string
Returns the string asociated with state.
libs/grammar/state_string_utils.py:60
↓ 2 callers
Method
transition_to_action
(self, start_state, to_state)
libs/grammar/state_enumerator.py:175
↓ 1 callers
Method
_possible_conv_sizes
(self, image_size)
libs/grammar/state_enumerator.py:212
↓ 1 callers
Method
_possible_pool_sizes
(self, image_size)
libs/grammar/state_enumerator.py:215
↓ 1 callers
Method
_possible_pool_strides
(self, filter_size)
libs/grammar/state_enumerator.py:218
↓ 1 callers
Method
_post_transition_updates
(self)
libs/grammar/q_learner.py:233
↓ 1 callers
Method
_transition_q_learning
Updates self.state according to an epsilon-greedy strategy
libs/grammar/q_learner.py:213
↓ 1 callers
Method
accuracy_to_reward
How to define reward from accuracy
libs/grammar/q_learner.py:254
↓ 1 callers
Method
add_drop_out_states
Add drop out every 2 layers and after each fully connected layer Sets dropout rate to be between 0 and 0.5 at a linear rate
libs/grammar/state_string_utils.py:16
↓ 1 callers
Method
bn
(self, _parent=None)
libs/grammar/cnn.py:84
↓ 1 callers
Method
check_reached_limit
Returns True if the experiment is complete
q_server.py:113
↓ 1 callers
Method
conv
(self, _parent=None)
libs/grammar/cnn.py:63
↓ 1 callers
Method
convert
(self, net_string)
libs/caffe/string_to_model.py:90
↓ 1 callers
Method
create_dir
(self, filename)
libs/caffe/string_to_model.py:56
↓ 1 callers
Function
create_records
Splits Xtr in validation and train sets. Also saves a full train lmdb. full train and split train are both first shuffled before being saved
libs/input_modules/lmdb_creator.py:67
↓ 1 callers
Method
drop
(self, _parent=None)
libs/grammar/cnn.py:103
↓ 1 callers
Method
fc
(self, _parent=None)
libs/grammar/cnn.py:96
↓ 1 callers
Method
filter_replay_for_first_run
Order replay by iteration, then remove duplicate nets keeping the first
q_server.py:101
↓ 1 callers
Method
gap
(self, _parent=None)
libs/grammar/cnn.py:77
↓ 1 callers
Function
get_all_accuracies
(log_file)
libs/caffe/run_caffe_command_line.py:73
↓ 1 callers
Method
get_all_time_fns
(self)
test/test_base.py:3
↓ 1 callers
Function
get_byte
(file_in)
libs/input_modules/get_datasets.py:308
↓ 1 callers
Function
get_image
(file_in, row=28, col=28)
libs/input_modules/get_datasets.py:316
↓ 1 callers
Function
get_last_test_epoch
(log_file)
libs/caffe/run_caffe_command_line.py:122
↓ 1 callers
Method
get_log_fname
(self, model_dir, learning_rate, max_iter)
libs/caffe/model_exec.py:97
↓ 1 callers
Method
get_log_fname_complete
(self, model_dir, learning_rate)
libs/caffe/model_exec.py:102
↓ 1 callers
Function
get_model_dir
(base_ckpt_dir, net)
caffe_client.py:27
↓ 1 callers
Method
get_pad
(self, kernel_size)
libs/caffe/string_to_model.py:117
↓ 1 callers
Function
get_snapshot_list
(log_file)
libs/caffe/run_caffe_command_line.py:90
↓ 1 callers
Function
get_transition_space_size
()
test/needed_for_testing/state_space_parameters.py:42
↓ 1 callers
Method
incorporate_trained_net
(self, net_string, acc_best_val,
q_server.py:180
↓ 1 callers
Method
load_replay
(self)
q_server.py:74
↓ 1 callers
Function
main
()
q_server.py:266
↓ 1 callers
Function
main
()
caffe_client.py:144
↓ 1 callers
Function
main
(argv)
libs/caffe/string_to_model.py:190
↓ 1 callers
Function
main
()
libs/misc/clear_trained_models.py:47
↓ 1 callers
Function
main
()
libs/input_modules/lmdb_creator.py:202
↓ 1 callers
Function
main
()
libs/input_modules/preprocessing.py:76
↓ 1 callers
Method
model_paths
(self, model_descr)
libs/caffe/model_gen.py:15
↓ 1 callers
Method
nin
(self, _parent=None)
libs/grammar/cnn.py:70
↓ 1 callers
Function
parse
(rule, text)
libs/grammar/cnn.py:158
↓ 1 callers
Method
pool
(self, _parent=None)
libs/grammar/cnn.py:89
↓ 1 callers
Function
preprocess
(image_dir, new_image_dir, preprocess_fn)
libs/input_modules/preprocessing.py:54
↓ 1 callers
Method
remove_drop_out_states
(self, state_list)
libs/grammar/state_string_utils.py:40
↓ 1 callers
Method
replace_top_names
(self, cc, dbg_out=False, simplify_naming=False)
libs/caffe/string_to_model.py:22
↓ 1 callers
Function
rm_model_dir
(base_ckpt_dir, net)
caffe_client.py:14
↓ 1 callers
Function
run_caffe_from_snapshot
(solver_fname, log_file, snapshot_file, caffe_root, gpu_to_use=None)
libs/caffe/run_caffe_command_line.py:154
↓ 1 callers
Function
run_caffe_return_accuracy
(solver_fname, log_file, caffe_root, num_iter=-1, gpu_to_use=None)
libs/caffe/run_caffe_command_line.py:130
↓ 1 callers
Method
run_one_model
(self, model_descr, gpu_to_use=None)
libs/caffe/model_exec.py:28
↓ 1 callers
Method
sample_replay_for_update
(self)
libs/grammar/q_learner.py:239
↓ 1 callers
Method
save_q
(self, q_path)
libs/grammar/q_learner.py:193
↓ 1 callers
Method
save_solver
(self, solver_path, netspec_path, learning_rate=-1, max_iter=-1)
libs/caffe/model_gen.py:30
↓ 1 callers
Method
softmax
(self, _parent=None)
libs/grammar/cnn.py:110
↓ 1 callers
Function
start_reactor
(clientname, hostname, model, gpu_to_use, debug)
caffe_client.py:132
↓ 1 callers
Function
test_all
()
test/test_all.py:21
↓ 1 callers
Method
unpack_item
(self, layer, previous_image_size, layer_number, bottom, label=None)
libs/caffe/string_to_model.py:121
↓ 1 callers
Method
unpack_list
(self, net_list, data, label)
libs/caffe/string_to_model.py:103
↓ 1 callers
Method
update_q_value_sequence
Update all Q-Values for a sequence.
libs/grammar/q_learner.py:258
next →
1–100 of 163, ranked by callers