MCPcopy Create free account

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

Functions306 in github.com/callous-youth/BOML

Methodcreate_outer_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:131
Methodcreate_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_v2.py:110
Methodcreate_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_v2.py:329
Methodcreate_supplier
Return a standard feed dictionary for this dataset. :param name: if not None, register this supplier in dict NAMED_SUPPLIERS (this c
boml/load_data/datasets/structures.py:235
Methodcreate_supplier
(self, x, y, *other_feeds, name=None)
boml/load_data/datasets/structures.py:474
Functioncross_entropy
:param pred: output of the neural networks :param label: the true label paired with the input :return: cross-entropy loss function
boml/utils.py:149
Methoddata
(self)
boml/load_data/datasets/structures.py:185
Methoddim_data
:return: The data dimensionality as an integer, if input are vectors, or a tuple in the general case
boml/load_data/datasets/structures.py:201
Methoddim_data
(self, *args, **kwargs)
boml/load_data/datasets/structures.py:334
Methoddim_target
:return: The target dimensionality as an integer, if targets are vectors, or a tuple in the general case
boml/load_data/datasets/structures.py:209
Methoddim_target
(self, *args, **kwargs)
boml/load_data/datasets/structures.py:338
Functiondot
Dot product between vectors `a` and `b` with optional name. If a and b are not vectors, formally this computes <vec(a), vec(b)>.
boml/utils.py:120
Methoddynamics
:return: A generator for the dynamics (state_variable_{k+1})
boml/lower_iter/inner_grad.py:143
Functionfeed_dict
Generate the feed_dicts for boml_optimizer.run() with data_batch and the instance of BOMLExperiment :param data_batch: each batch of data for
boml/utils.py:301
Functionfeed_dict
Generate the feed_dicts for boml_optimizer.run() with data_batch and the instance of BOMLExperiment :param data_batch: each batch of data for
test_script/script_helper.py:946
Functionfeed_dicts
Generate the feed_dicts for boml_optimizer.run() with lists of :param dat_lst: :param exs: :return:
boml/utils.py:277
Methodgenerate_datasets
(self, rand=None, num_classes=None, num_examples=None)
boml/load_data/datasets/load_full_dataset.py:208
Methodgenerate_datasets
( self, rand=None, num_classes=None, num_examples=None, wait_for_n_min=None )
boml/load_data/datasets/load_full_dataset.py:400
Functionget_L1Reg
Return the L1 regularization item :param var_list: list of parameters :param rate: regularization rate :return: L1_regularization_par
boml/utils.py:183
Functionget_L2Reg
Return the L1 regularization item :param var_list: list of parameters :param rate: regularization rate :return: L2_regularization_par
boml/utils.py:171
Methodget_all_batches
:return:
boml/utils.py:262
Functionget_bias_weight
:param boml_net: instance of BOMLNet :param i: int32, i-th layer to be defined :param initializer: function to initialize the bias :r
boml/setup_model/network_utils.py:158
Functionget_conv_weight
:param boml_net: instance of BOMLNet :param i: int32, the i-th layer to be defined :param initializer: function to initialize the weights
boml/setup_model/network_utils.py:125
Functionget_default_session
()
test_script/script_helper.py:909
Functionget_global_step
(name="GlobalStep", init=0)
boml/extension.py:171
Functionget_identity
:param dim: dimension of the identity matrix :param name: name for the variable :param conv: BOOLEAN, define variables as matrix or vecto
boml/setup_model/network_utils.py:208
Functionget_outerparameter
Creates an hyperparameter variable, which is a GLOBAL_VARIABLE and HYPERPARAMETER. Mirrors the behavior of `tf.get_variable`. :param nam
boml/extension.py:105
Functionget_rand_state
Utility methods for getting a `RandomState` object. :param rand: rand can be None (new State will be generated), np.rand
boml/utils.py:208
Functionget_rand_state
Utility methods for getting a `RandomState` object. :param rand: rand can be None (new State will be generated), np.rand
boml/setup_model/network_utils.py:325
Functionget_rand_state
Utility methods for getting a `RandomState` object. :param rand: rand can be None (new State will be generated), np.rand
test_script/script_helper.py:914
Methodget_single_batch
(self)
test_script/script_helper.py:817
Functionget_warp_bias
:param boml_net: instance of BOMLNet :param layer: int32, i-th layer to be defined :param initializer: function to initializer the weight
boml/setup_model/network_utils.py:193
Functionget_warp_weight
:param boml_net: instance of BOMLNet :param layer: int32, i-th layer to be defined :param initializer: function to initializer the weight
boml/setup_model/network_utils.py:173
Methodglobal_step
:return: globalstep used in whole graph.
boml/boml_optimizer/optimizer.py:604
Functionhypergradients
List of tensors and/or variables in the collection OUTERGRADIENTS. These variables are created by `far.HyperGradient`. :param scope: (s
boml/extension.py:65
Methodinit_dynamics
:return: The initialization dynamics if it has been set, or `None` otherwise.
boml/lower_iter/inner_grad.py:172
Methodinitialization
(self)
boml/upper_iter/outer_grad.py:75
Methodinitialization
:return: a list of operations that return the values of the state variables for this learning dynamics after the executio
boml/lower_iter/inner_grad.py:119
Methodinitialize
Initialize the model. If `deterministic_initialization` is set to true, saves the initial weight in numpy which will be used for subs
boml/setup_model/network.py:157
Methodinner_objectives
(self)
boml/boml_optimizer/optimizer.py:628
Methodinner_objectives
(self)
boml/upper_iter/outer_grad.py:97
Methodinnergradient
:return: the innergradient object underlying this wrapper.
boml/boml_optimizer/optimizer.py:576
Methoditeration
(self)
boml/upper_iter/outer_grad.py:83
Methoditeration
Performs a descent step (as return by `tf.train.Optimizer.apply_gradients`) and computes the values of the variables after it.
boml/lower_iter/inner_grad.py:101
Functionlagrangian_multipliers
List of variables in the collection LAGRANGIAN_MULTIPLIERS. These variables are created by `far.ReverseHG`. :param scope: (str) an opti
boml/extension.py:53
Functionleaky_relu
Implements leaky relu with negative coefficient `alpha`
boml/setup_model/network_utils.py:361
Methodlearning_rate
:return: the outergradient object underlying this wrapper.
boml/boml_optimizer/optimizer.py:583
Methodlearning_rate
(self)
boml/optimizer/opt.py:63
Methodlearning_rate
(self)
boml/optimizer/adam.py:184
Methodlearning_rate_tensor
(self)
boml/optimizer/opt.py:67
Methodlearning_rate_tensor
(self)
boml/optimizer/adam.py:188
Functionload_obj
:param file_path: path to save the pickle file :return:
boml/utils.py:324
Functionmaybe_add
return a if b is None else a + b
boml/utils.py:225
Functionmaybe_call
Calls obj with args and kwargs and return its result if obj is callable, otherwise returns obj.
boml/utils.py:111
Functionmaybe_call
Calls obj with args and kwargs and return its result if obj is callable, otherwise returns obj.
boml/setup_model/network_utils.py:232
Functionmaybe_eval
Run or eval `a` and returns the result if possible. :param a: object, or `tf.Variable` or `tf.Tensor` :param ss: `tf.Session` or get def
boml/utils.py:129
Methodmaybe_first_arg
(_v)
boml/boml_optimizer/optimizer.py:490
Functionmaybe_get
:param obj: object :param i: the index :return: the i-th item if the `obj` instantiates the __getitem__ function
boml/setup_model/network_utils.py:251
Functionmean_std_ci
Computes mean, standard deviation and 95% half-confidence interval for a list of measures. :param measures: list :param mul: optional mu
boml/setup_model/network_utils.py:347
Functionmean_std_ci
Computes mean, standard deviation and 95% half-confidence interval for a list of measures. :param measures: list :param mul: optional mu
test_script/script_helper.py:931
Functionmerge_dicts
Merges dictionaries recursively. Accepts also `None` and returns always a (possibly empty) dictionary
boml/utils.py:66
Methodmeta_learning_rate
:return: the outergradient object underlying this wrapper.
boml/boml_optimizer/optimizer.py:590
Functionmeta_mini_imagenet
Load a meta-datasets from Mini-ImageNet. Returns a Datasets of MetaDataset s, :param folder: base folder :param sub_folders: optional su
boml/load_data/datasets/load_full_dataset.py:493
Methodmeta_model
:return: the created BMLNet object
boml/boml_optimizer/optimizer.py:562
Functionmeta_omniglot
Loading function for Omniglot dataset in learning-to-learn version. Use image data as obtained from https://github.com/cbfinn/maml/blob/maste
boml/load_data/datasets/load_full_dataset.py:269
Methodmethod
:return: the method for whole algorithm.
boml/boml_optimizer/optimizer.py:597
Functionmnist
( folder=None, one_hot=True, partitions=None, filters=None, maps=None, shuffle=False )
boml/load_data/datasets/load_full_dataset.py:130
Methodmodel_param_tensor
:return: temporary weights dictionary used in maml and fomaml for back propagation
boml/lower_iter/simple.py:208
Functionmse
:param pred: output of the neural networks :param label: the true label paired with the input :return: msw loss function
boml/utils.py:160
Methodname
(self)
boml/upper_iter/outer_grad.py:177
Methodname
(self)
boml/load_data/datasets/structures.py:72
Methodname
(self)
boml/load_data/datasets/structures.py:161
Functionname_from_vars
Unfortunately this method doesn't return a very specific name....It gets a little messy :param var_dict: :param vars_: :return:
boml/setup_model/network_utils.py:287
Methodnum_examples
:return: Number of examples in this dataset
boml/load_data/datasets/structures.py:193
Functionomni_light
Extract from omniglot dataset with rotated images, 100 classes, 3 examples per class in training set 3 examples per class in validation s
boml/load_data/datasets/load_full_dataset.py:154
Methodoptimizer_params_tensor
(self)
boml/optimizer/opt.py:71
Methodoptimizer_params_tensor
(self)
boml/optimizer/adam.py:192
Methodoptimizer_params_tensor
(self)
boml/optimizer/momentum.py:134
Methodout
:return: the current output of the BOMLNet
boml/setup_model/network.py:117
Methodouter_param_tensor
:return: temporary weights dictionary used in maml and fomaml for back propagation
boml/lower_iter/simple.py:198
Functionouter_parameters
List of variables in the collection HYPERPARAMETERS. Hyperparameters constructed with `get_outerparameter` are in this collection by default
boml/extension.py:93
Methodoutergradient
:return: the outergradient object underlying this wrapper.
boml/boml_optimizer/optimizer.py:569
Methodparam_dict
:return: dict that holds hyper_params used in the inner optimization process.
boml/boml_optimizer/optimizer.py:611
Functionprocess_fn
(t)
test_script/test_meta_init.py:284
Functionprocess_fn
(t)
test_script/test_meta_feat.py:323
Functionrandom_classification_datasets
( n_samples, features=100, classes=2, informative=0.1, partition_proportions=(0.5, 0.3),
boml/load_data/datasets/load_full_dataset.py:579
Functionrandom_regression_datasets
( n_samples, features=100, outs=1, informative=0.1, partition_proportions=(0.5, 0.3),
boml/load_data/datasets/load_full_dataset.py:608
Methodre_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/meta_init_v1.py:257
Methodre_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/meta_feat_v1.py:226
Methodre_forward
(self, new_input=None, task_parameter=OrderedDict())
boml/setup_model/feedforward.py:103
Methodresidual_block
(x, n_filters)
boml/setup_model/meta_feat_v2.py:99
Methodresidual_block
(x, n_filters)
boml/setup_model/meta_feat_v2.py:209
Methodresidual_block
(x, i)
boml/setup_model/meta_init_v2.py:200
Functionsave_obj
:param file_path: path to save the pickle file :param obj: :return:
boml/utils.py:314
Functionset_gpu
()
boml/utils.py:201
Methodsetting
(self)
boml/load_data/datasets/structures.py:59
Methodsetting
(self)
boml/load_data/datasets/structures.py:442
Functionsolve_int_or_generator
(int_or_generator)
boml/utils.py:145
Methodstack
Stack some datasets calling stack for each dataset. :param datasets_s: :return: a new dataset
boml/load_data/datasets/structures.py:97
Functionstart_batch_makers
( number_of_workers, metadataset, batch_queue, n_batches, batch_size, rand=0 )
test_script/script_helper.py:789
← previousnext →201–300 of 306, ranked by callers