MCPcopy Create free account

hub / github.com/callous-youth/BOML / functions

Functions306 in github.com/callous-youth/BOML

↓ 30 callersMethodrun
Run a whole iteration and updates the parameters of meta-learner. :param inner_objective_feed_dicts: feed dictionary for the Lower-L
boml/boml_optimizer/optimizer.py:512
↓ 19 callersMethodfilter_vars
(self, var_name)
boml/setup_model/network.py:154
↓ 16 callersMethodre_forward
reuses defined convolutional networks with new input and update the output results :param new_input: new input with same shape as the
boml/setup_model/network.py:181
↓ 10 callersMethodfrom_list
Generates a `Datasets` object from a list. :param list_of_datasets: list containing from one to three dataset :return:
boml/load_data/datasets/structures.py:78
↓ 6 callersFunctionremove_from_collection
Remove tensors in lst from collection given by key
boml/extension.py:77
↓ 5 callersFunctionaccuracy_on
(batch_queue, exs, pybml_ho, sess, T)
test_script/script_helper.py:863
↓ 5 callersMethodgenerate
Generator of datasets :param rand: random seed, state or None :param count: number of datasets to generate :param ba
boml/load_data/datasets/structures.py:303
↓ 5 callersMethodminimize
The `dynamics` contains a list of var_and_dynamics where var are both variables in `var_list` and also additional state (auxiliary) variables
boml/optimizer/opt.py:36
↓ 5 callersFunctionremove_from_collection
Remove tensors in lst from collection given by key
boml/utils.py:40
↓ 4 callersMethod_shape
(self, what)
boml/load_data/datasets/structures.py:168
↓ 4 callersFunctionas_tuple_or_list
Make sure that `obj` is a tuple or a list and eventually converts it into a list with a single element :param obj: :return: A `tuple` or
boml/setup_model/network_utils.py:241
↓ 4 callersMethodcompute_gradients
:param boml_opt: instance of modified optimizers in the `optimizer` module :param loss_inner: Lower-Level objectives :param l
boml/lower_iter/aggr.py:44
↓ 4 callersMethodgenerate_datasets
Generates and returns a single Datasets (possibly composed by training, validation and test sets) according to args and kwargs
boml/load_data/datasets/structures.py:291
↓ 4 callersMethodget_context
(self, item)
boml/load_data/datasets/structures.py:394
↓ 4 callersFunctionget_rand_state
Utility methods for getting a `RandomState` object. :param rand: rand can be None (new State will be generated), np.rand
boml/load_data/datasets/dl_utils.py:164
↓ 4 callersFunctionmerge_dicts
(*dicts)
boml/load_data/datasets/dl_utils.py:91
↓ 4 callersFunctionredivide_data
Function that redivides datasets. Can be use also to shuffle or filter or map examples. :param rand: :param balance_classes: # TODO RICC
boml/load_data/datasets/load_full_dataset.py:644
↓ 4 callersMethodstack
Assuming that the datasets have same structure, stacks data, targets and other info :param datasets: :return: stacked datase
boml/load_data/datasets/structures.py:267
↓ 3 callersFunctionaccuracy_on_up_to_T
(batch_queue, exs, pybml_ho, sess, T)
test_script/script_helper.py:899
↓ 3 callersMethodaggregate_all
To be called when no more dynamics or problems will be added, computes the updates for the outer parameters. This behave nicely with
boml/boml_optimizer/optimizer.py:475
↓ 3 callersMethodapply_gradients
Apply gradients to variables. This is the second part of `minimize()`. It returns an `Operation` that applies gradients. Arg
boml/optimizer/sgd.py:65
↓ 3 callersMethodbase_learner
This method has to be called for every experiment and takes responsibility for defining task-specific modules and inner optimizers.
boml/boml_optimizer/optimizer.py:186
↓ 3 callersMethodcheck_loaded_images
(self, n_min)
boml/load_data/datasets/load_full_dataset.py:395
↓ 3 callersFunctionconv_block
Perform, conv, batch norm, nonlinearity, and max pool :param boml_net: instance of BOMLNet :param cweight: parameter of convolutional filter
boml/setup_model/network_utils.py:33
↓ 3 callersMethodcreate_initial_parameter
:param primary_outerparameter: the primary outerparameters used to create the task-specific parameters :return: dictionary to
boml/setup_model/network.py:123
↓ 3 callersMethodget_all_batches
(self)
test_script/script_helper.py:809
↓ 3 callersMethodll_problem
After construction of neural networks, solutions to lower level problems should be regulated in LL_Problem. :param inner_objective: l
boml/boml_optimizer/optimizer.py:235
↓ 3 callersMethodmeta_learner
This method must be called once at first to build meta modules and initialize meta parameters and neural networks. :param _input: org
boml/boml_optimizer/optimizer.py:134
↓ 3 callersFunctionsave_obj
(file_path, obj)
test_script/script_helper.py:821
↓ 3 callersMethodul_problem
Set the outer optimization problem and the descent procedure for the optimization of the outer parameters. Can be called at least onc
boml/boml_optimizer/optimizer.py:393
↓ 2 callersMethod_compute_input_shape
:return: compute the shape of input according to the data formats
boml/load_data/experiment.py:49
↓ 2 callersMethod_compute_output_shape
:return: compute the shape of output according to the data formats
boml/load_data/experiment.py:57
↓ 2 callersMethod_save_history
(self, weights)
boml/upper_iter/reverse.py:244
↓ 2 callersMethod_state_read
:return: generator of read value op for the state variables
boml/lower_iter/inner_grad.py:157
↓ 2 callersFunctionadd_list
sum elements in two lists by sequence :return: new list that sum elements in two lists by sequence
boml/utils.py:102
↓ 2 callersFunctionas_list
Makes sure `obj` is a list or otherwise converts it to a list with a single element. :param obj: :return: A `list`
boml/load_data/datasets/dl_utils.py:150
↓ 2 callersFunctionbalanced_choice_wr
(a, num, rand=None)
boml/load_data/datasets/load_full_dataset.py:124
↓ 2 callersFunctionbuild
( metasets, learn_lr, lr0, MBS, T, mlr0, mlr_decay=1.0e-5, process_fn=None,
test_script/test_meta_init.py:20
↓ 2 callersFunctionbuild
( metasets, learn_lr, learn_alpha, learn_alpha_itr, learn_st, lr0, MBS, T,
test_script/test_meta_feat.py:23
↓ 2 callersMethodconv_block
(xx)
boml/setup_model/meta_feat_v2.py:102
↓ 2 callersMethodgenerate_all
(self)
boml/load_data/datasets/structures.py:367
↓ 2 callersMethodgenerate_visiting_scheme
Generates and stores example visiting scheme, as a numpy array of integers. :return: self
boml/load_data/datasets/structures.py:449
↓ 2 callersFunctionget_data
:param d_set: instance of dataset :return: inputs of datasets
boml/load_data/datasets/dl_utils.py:123
↓ 2 callersMethodload_all_images
(self)
boml/load_data/datasets/load_full_dataset.py:355
↓ 2 callersFunctionmaybe_cast_to_scalar
:param what: input :return: return the scalar of input if the length of input equals 1.
boml/load_data/datasets/dl_utils.py:69
↓ 2 callersFunctionmeta_test
( exp_dir, metasets, exs, pybml_ho, saver, sess, c_way, k_shot, lr, n_
test_script/script_helper.py:582
↓ 2 callersFunctionmeta_test_up_to_T
( exp_dir, metasets, exs, pybml_ho, saver, sess, c_way, k_shot, lr, n_
test_script/script_helper.py:674
↓ 2 callersFunctionmeta_train
( exp_dir, metasets, exs, pybml_ho, saver, sess, n_test_episodes, MBS, see
test_script/script_helper.py:441
↓ 2 callersFunctionpad
:param _example: :param _size: :return: performs concatenation
boml/load_data/datasets/dl_utils.py:77
↓ 2 callersMethodsetting
for save setting purposes, does not save the actual data :return:
boml/load_data/datasets/structures.py:171
↓ 2 callersFunctionstack_or_concat
(list_of_arays)
boml/load_data/datasets/dl_utils.py:86
↓ 2 callersMethodstate_feed_dict
Builds a feed dictionary of (past) states
boml/lower_iter/inner_grad.py:165
↓ 2 callersFunctionto_one_hot_enc
:param seq: sequence :param dimension: the dimension of output :return: output of one-hot encoding
boml/load_data/datasets/dl_utils.py:200
↓ 2 callersFunctionvstack
Vstack that considers sparse matrices :param lst: :return:
boml/load_data/datasets/dl_utils.py:95
↓ 1 callersMethod__init__
:param _input: original input :param dim_output: dimension of output :param name: scope of meta-learner :param outer_
boml/setup_model/meta_feat_v2.py:37
↓ 1 callersMethod__init__
:param _input: original input :param dim_output: dimension of output :param name: scope of meta-learner :param outer_
boml/setup_model/meta_init_v2.py:32
↓ 1 callersMethod__init__
( self, info=None, rotations=None, name="Omniglot", num_classes=None,
boml/load_data/datasets/load_full_dataset.py:190
↓ 1 callersMethod__init__
:param data: Numpy array containing data :param target: Numpy array containing targets :param sample_info: either an array o
boml/load_data/datasets/structures.py:122
↓ 1 callersMethod_create_darts_derivatives
(var_list, darts_derivatives)
boml/upper_iter/darts.py:182
↓ 1 callersMethod_create_lagrangian_multipliers
(optimizer_dict, doo_ds)
boml/upper_iter/reverse.py:124
↓ 1 callersMethod_create_outergradient
(outer_obj, hyper)
boml/upper_iter/reverse.py:156
↓ 1 callersMethod_create_outergradient
(outer_obj, hyper)
boml/upper_iter/darts.py:214
↓ 1 callersMethod_create_outergradient_from_dodh
Creates one hyper-gradient as a variable. doo_dhypers: initialization, that is the derivative of the outer objective w.r.t this hype
boml/upper_iter/reverse.py:142
↓ 1 callersMethod_create_outergradient_from_dodh
Creates one hyper-gradient as a variable. doo_dhypers: initialization, that is the derivative of the outer objective w.r.t this hype
boml/upper_iter/darts.py:200
↓ 1 callersMethod_create_q
(self, d_oo_d_state)
boml/upper_iter/implicit.py:115
↓ 1 callersMethod_forward
_forward() uses defined convolutional neural networks with initial input :return:
boml/setup_model/network.py:174
↓ 1 callersMethod_forward_step
(self, ss, _fd)
boml/upper_iter/implicit.py:157
↓ 1 callersMethod_run_batch_initialization
(self, ss, fd)
boml/upper_iter/implicit.py:160
↓ 1 callersMethod_save_history
(self, weights)
boml/upper_iter/simple.py:106
↓ 1 callersMethod_save_history
(self, weights)
boml/upper_iter/darts.py:292
↓ 1 callersMethod_state_feed_dict_generator
(self, history, T_or_generator)
boml/upper_iter/reverse.py:161
↓ 1 callersFunction_tf_string_replace
Replace chars that are not accepted by tensorflow namings (eg. variable_scope) :param _str: :return:
boml/setup_model/network_utils.py:308
↓ 1 callersMethod_variable_scope
May override default variable scope context. :param reuse: :return:
boml/setup_model/network.py:84
↓ 1 callersFunctionas_tuple_or_list
Make sure that `obj` is a tuple or a list and eventually converts it into a list with a single element :param obj: :return: A `tuple` or
boml/load_data/datasets/dl_utils.py:190
↓ 1 callersMethodbml_inner_grad_aggr
:param inner_optimizer: the instance of modified optimizer :param loss_inner: inner objective :param loss_outer: outer object
boml/lower_iter/aggr.py:92
↓ 1 callersMethodbml_inner_grad_trad
:param loss_inner: LL objectives :param param_dict: dictionary of general parameters for different algorithms :param var_lis
boml/lower_iter/simple.py:97
↓ 1 callersFunctionbuild_and_test
( metasets, exp_dir, method, inner_method, outer_method, use_t=False, use_warp=Fal
test_script/test_meta_init.py:209
↓ 1 callersFunctionbuild_and_test
( metasets, exp_dir, method, inner_method, outer_method, use_t=False, use_warp=Fal
test_script/test_meta_feat.py:235
↓ 1 callersMethodcombine_grads
(inner_grads, outer_grads, alpha, s, t, t_tensor)
boml/lower_iter/aggr.py:150
↓ 1 callersMethodconv_block
:param xx: input for the i-th block :param i: i-th block :param j: the j-th convolution block :return: the ouput of
boml/setup_model/meta_init_v2.py:464
↓ 1 callersFunctionconvert_sparse_matrix_to_sparse_tensor
:param X: sparse matrix :return: sparse tensor of X
boml/load_data/datasets/dl_utils.py:109
↓ 1 callersMethodconvert_to_tensor
(self, keep_sparse=True)
boml/load_data/datasets/structures.py:217
↓ 1 callersMethodcreate_feed_dict_supplier
:param name: optional name for this supplier :param x: placeholder for independent variable :param y: placeholder for depend
boml/load_data/datasets/structures.py:477
↓ 1 callersMethodcreate_initial_parameter
(self)
boml/setup_model/feedforward.py:81
↓ 1 callersMethodcreate_model_parameters
(self, var_collections=GraphKeys.METAPARAMETERS)
boml/setup_model/meta_init_v1.py:172
↓ 1 callersMethodcreate_model_parameters
:param var_collections: name of collections to store the created variables. :return: dictionary to index the created variables.
boml/setup_model/meta_feat_v1.py:153
↓ 1 callersMethodcreate_outer_parameters
:param var_collections: name of collections to store the created variables. :return: dictionary to index the created variables.
boml/setup_model/meta_init_v1.py:124
↓ 1 callersFunctionextract_args_from_json
(json_file_path, args_dict)
test_script/script_helper.py:380
↓ 1 callersFunctionfilter_vars
:param var_name: name of the variable :param scope: name scope :return: variable with the name in the scope
boml/setup_model/network_utils.py:271
↓ 1 callersFunctionflatten_list
:param lst: original list :return: flattened list
boml/setup_model/network_utils.py:261
↓ 1 callersMethodgenerate_batch
Generates a batch of Datasets
boml/load_data/datasets/structures.py:325
↓ 1 callersFunctionget_indices_balanced_classes
:param n_examples: number of examples :param labels: paired labels :param forbidden_indices: :return:
boml/load_data/datasets/dl_utils.py:30
↓ 1 callersFunctionget_install_requirements
()
setup.py:9
↓ 1 callersMethodget_single_batch
(self)
boml/utils.py:273
↓ 1 callersFunctionget_targets
:param d_set: instance of dataset :return: labels of datasets
boml/load_data/datasets/dl_utils.py:137
↓ 1 callersFunctionisinteger
Judge whether the num is integer :param num: :return: BOOLEAN
boml/utils.py:239
↓ 1 callersFunctionjust_train_on_dataset
(dat, exs, pybml_ho, sess, T)
test_script/script_helper.py:835
↓ 1 callersFunctionjust_train_on_dataset_up_to_T
(dat, exs, pybml_ho, sess, T)
test_script/script_helper.py:872
↓ 1 callersMethodload_all
(self)
boml/load_data/datasets/load_full_dataset.py:250
↓ 1 callersFunctionload_obj
(file_path)
test_script/script_helper.py:826
next →1–100 of 306, ranked by callers