MCPcopy Create free account

hub / github.com/modAL-python/modAL / functions

Functions285 in github.com/modAL-python/modAL

↓ 41 callersMethodquery
Finds the n_instances most informative point in the data provided by calling the query_strategy function. Args: X_pool:
modAL/models/base.py:155
↓ 33 callersMethodteach
(self, *args, **kwargs)
modAL/models/base.py:206
↓ 27 callersMethodscore
(self, *args, **kwargs)
tests/mock.py:47
↓ 23 callersMethodpredict
(self, *args, **kwargs)
tests/mock.py:35
↓ 21 callersFunctionmulti_argmax
return the indices and values of the n_instances highest values. Args: values: Contains the values to be selected from. n_in
modAL/utils/selection.py:55
↓ 18 callersFunctionn
(a,c,f)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 17 callersFunctionshuffled_argmax
Shuffles the values and sorts them afterwards. This can be used to break the tie when the highest utility score is not unique. The shuffle ra
modAL/utils/selection.py:8
↓ 14 callersFunctionJ
(a,b,c)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 11 callersMethodpredict_proba
Class probabilities if the predictor is a classifier. Interface with the predict_proba method of the classifier. Args: X
modAL/models/base.py:142
↓ 9 callersFunctionF
(a,b)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 9 callersMethod_set_max
(self, X: modALinput, y: modALinput)
modAL/models/learners.py:391
↓ 9 callersMethodteach
Adds X and y to the known training data and retrains the predictor with the augmented dataset. Args: X: The new samples
modAL/models/learners.py:160
↓ 8 callersMethodfit
(self, *args, **kwargs)
tests/mock.py:32
↓ 8 callersFunctionm
(a)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 8 callersMethodpredict_proba
(self, *args, **kwargs)
tests/mock.py:41
↓ 7 callersFunctione
()
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 7 callersFunctionl
()
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 7 callersMethodpredict
Estimator predictions for X. Interface with the predict method of the estimator. Args: X: The samples to be predicted.
modAL/models/base.py:129
↓ 7 callersFunctionretrieve_rows
Returns the rows I from the data set X For a single index, the result is as follows: * 1xM matrix in case of scipy sparse NxM matrix X
modAL/utils/data.py:89
↓ 6 callersFunctionD
(a)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 6 callersFunctionc
(a,c)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 6 callersFunctiong
(a)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 5 callersFunctionG
(a,b)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 5 callersMethod_fit_on_new
Fits self.estimator to the given data and labels. Args: X: The new samples for which the labels are supplied by the expe
modAL/models/base.py:102
↓ 5 callersFunctionclassifier_uncertainty
Classification uncertainty of the classifier for the provided samples. Args: classifier: The classifier for which the uncertainty is
modAL/uncertainty.py:63
↓ 5 callersFunctiondata_vstack
Stack vertically sparse/dense arrays and pandas data frames. Args: blocks: Sequence of modALinput objects. Returns: New
modAL/utils/data.py:16
↓ 5 callersFunctionlinear_combination
(*args, **kwargs)
modAL/utils/combination.py:31
↓ 5 callersFunctiony
(a,c,d,e)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 4 callersMethod__init__
(self, learner_list: List[ActiveLearner], query_strategy: Callable = vote_entropy_sampling, o
modAL/models/learners.py:484
↓ 4 callersMethod_add_training_data
Adds the new data and label to the known data, but does not retrain the model. Args: X: The new samples for which the la
modAL/models/learners.py:88
↓ 4 callersMethod_fit_to_known
Fits self.estimator to the training data and labels provided to it so far. Args: bootstrap: If True, the method trains t
modAL/models/learners.py:114
↓ 4 callersFunctiond
(d,e)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 4 callersMethodfit
(self, *args, **kwargs)
modAL/models/base.py:126
↓ 4 callersFunctionget_predictions
Runs num_predictions times the prediction of the classifier on the input X and puts the predictions in a list. Args:
modAL/dropout.py:216
↓ 4 callersFunctionh
()
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 4 callersFunctioninformation_density
Calculates the information density metric of the given data using the given metric. Args: X: The data for which the information dens
modAL/density.py:33
↓ 4 callersMethodpredict_proba
Consensus probabilities of the Committee. Args: X: The samples for which the class probabilities are to be predicted.
modAL/models/learners.py:556
↓ 3 callersMethod_set_classes
Checks the known class labels by each learner, merges the labels and returns a mapping which maps the learner's classes to the comple
modAL/models/learners.py:489
↓ 3 callersFunctionentropy_sum
(values: np.array, axis: int = -1)
modAL/dropout.py:291
↓ 3 callersFunctionk
(a,b)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 3 callersFunctionmulti_argmin
return the indices and values of the n_instances smallest values. Args: values: Contains the values to be selected from. n_i
modAL/utils/selection.py:72
↓ 3 callersMethodpredict
Predicts the class of the samples by picking the consensus prediction. Args: X: The samples to be predicted.
modAL/models/learners.py:540
↓ 3 callersFunctionshuffled_argmin
Shuffles the values and sorts them afterwards. This can be used to break the tie when the highest utility score is not unique. The shuffle ra
modAL/utils/selection.py:37
↓ 3 callersFunctionsimilarize_distance
Takes a distance measure and converts it into a information_density measure. Args: distance_measure: The distance measure to be conv
modAL/density.py:13
↓ 3 callersMethodteach
Adds X and y to the known training data and retrains the predictor with the augmented dataset. This method also keeps track of the ma
modAL/models/learners.py:407
↓ 3 callersMethodteach
Adds X and y to the known training data for each learner and retrains learners with the augmented dataset. Args: X: The n
modAL/models/learners.py:527
↓ 3 callersMethodtransform_without_estimating
Transforms the data as supplied to the estimator. * In case the estimator is an skearn pipeline, it applies all pipeline components
modAL/models/base.py:60
↓ 3 callersMethodvote_proba
Predicts the probabilities of the classes for each sample and each learner. Args: X: The samples for which class probabil
modAL/models/learners.py:598
↓ 2 callersFunctionH
(a,b)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 2 callersFunction_SVM_loss
Utility function for max_loss and mean_max_loss strategies. Args: multiclass_classifier: sklearn.multiclass.OneVsRestClassifier inst
modAL/multilabel.py:12
↓ 2 callersMethod_fit_to_known
Fits all learners to the training data and labels provided to it so far. Args: bootstrap: If True, each estimator is trai
modAL/models/base.py:248
↓ 2 callersFunctionb
(a)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 2 callersFunctionclassifier_margin
Classification margin uncertainty of the classifier for the provided samples. This uncertainty measure takes the first and second most likely
modAL/uncertainty.py:86
↓ 2 callersFunctiondata_hstack
Stack horizontally sparse/dense arrays and pandas data frames. Args: blocks: Sequence of modALinput objects. Returns: N
modAL/utils/data.py:44
↓ 2 callersFunctiondata_shape
Returns the shape of the data set X
modAL/utils/data.py:172
↓ 2 callersMethodfit
Fits every learner to a subset sampled with replacement from X. Calling this method makes the learner forget the data it has seen up
modAL/models/learners.py:513
↓ 2 callersFunctionmake_linear_combination
Takes the given functions and makes a function which returns the linear combination of the output of original functions. It works well with f
modAL/utils/combination.py:8
↓ 2 callersFunctionmake_product
Takes the given functions and makes a function which returns the product of the output of original functions. It works well with functions re
modAL/utils/combination.py:37
↓ 2 callersMethodpredict
(self, X)
tests/example_tests/multidimensional_data.py:16
↓ 2 callersMethodpredict
Predicts the values of the samples by averaging the prediction of each regressor. Args: X: The samples to be predicted.
modAL/models/learners.py:685
↓ 2 callersMethodpredict_proba
(self, X)
tests/example_tests/multidimensional_data.py:19
↓ 2 callersMethodrebag
Refits every learner with a dataset bootstrapped from its training instances. Contrary to .bag(), it bootstraps the training data for
modAL/models/base.py:333
↓ 2 callersFunctionset_dropout_mode
Function to change the mode of the dropout layers (bool: train_mode -> train or evaluation) Args: model: Pytorch model
modAL/dropout.py:405
↓ 2 callersMethodvote
Predicts the labels for the supplied data for each learner in the Committee. Args: X: The samples to cast votes.
modAL/models/learners.py:582
↓ 2 callersMethodvote
Predicts the values for the supplied data for each regressor in the CommitteeRegressor. Args: X: The samples to cast vote
modAL/models/learners.py:700
↓ 1 callersFunctionE
(a,b)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 1 callersFunctionEI
(mean, std, max_val, tradeoff)
modAL/acquisition.py:19
↓ 1 callersFunctionI
(a,b,d)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 1 callersFunctionK
()
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 1 callersFunctionKL_max_disagreement
Calculates the max disagreement for the Committee. First it computes the class probabilties of X for each learner in the Committee, then calc
modAL/disagreement.py:72
↓ 1 callersFunctionPI
(mean, std, max_val, tradeoff)
modAL/acquisition.py:15
↓ 1 callersFunctionUCB
(mean, std, beta)
modAL/acquisition.py:24
↓ 1 callersMethod_add_training_data
Adds the new data and label to the known data for each learner, but does not retrain the model. Args: X: The new samples
modAL/models/base.py:235
↓ 1 callersMethod_add_training_data
(self, X: modALinput, y: modALinput)
modAL/models/learners.py:510
↓ 1 callersFunction_bald_divergence
Calculates the bald divergence for each instance As it is explicitly formulated in: Deep Bayesian Active Learning with
modAL/dropout.py:366
↓ 1 callersFunction_entropy
Calculates the entropy per class over dropout cycles As it is explicitly formulated in: Deep Bayesian Active Learning w
modAL/dropout.py:321
↓ 1 callersMethod_fit_on_new
Fits all learners to the given data and labels. Args: X: The new samples for which the labels are supplied by the expert.
modAL/models/base.py:259
↓ 1 callersFunction_mean_standard_deviation
Calculates the mean of the per class calculated standard deviations. As it is explicitly formulated in: Deep Bayesian A
modAL/dropout.py:297
↓ 1 callersFunction_proba_entropy
Calculates the entropy of the prediction probabilities. Args: proba: Prediction probabilities. Returns: Uncertainty of
modAL/uncertainty.py:49
↓ 1 callersFunction_proba_uncertainty
Calculates the uncertainty of the prediction probabilities. Args: proba: Prediction probabilities. Returns: Uncertainty
modAL/uncertainty.py:15
↓ 1 callersFunction_variation_ratios
Calculates the variation ratios over dropout cycles As it is explicitly formulated in: Deep Bayesian Active Learning wi
modAL/dropout.py:345
↓ 1 callersFunctiona
()
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 1 callersFunctionacton_QBC
(data_path, n_queries)
examples/runtime_comparison.py:149
↓ 1 callersFunctionacton_uncertainty
(data_path, n_queries)
examples/runtime_comparison.py:134
↓ 1 callersFunctionadd_row
Returns X' = [X row]
modAL/utils/data.py:72
↓ 1 callersFunctionalp_QBC
(X, y, n_queries)
examples/runtime_comparison.py:177
↓ 1 callersFunctionalp_uncertainty
(X, y, n_queries)
examples/runtime_comparison.py:163
↓ 1 callersFunctionassign_pseudo_labels
(active_learner, X, confidence_idx)
examples/cost_effective_active_learning.py:42
↓ 1 callersFunctioncheck_class_labels
Checks the known class labels for each classifier. Args: *args: Classifier objects to check the known class labels. Returns:
modAL/utils/validation.py:8
↓ 1 callersFunctioncheck_class_proba
Checks the class probabilities and reshapes it if not all labels are present in the classifier. Args: proba: The class probabilities
modAL/utils/validation.py:30
↓ 1 callersFunctionclassifier_entropy
Entropy of predictions of the for the provided samples. Args: classifier: The classifier for which the prediction entropy is to be m
modAL/uncertainty.py:113
↓ 1 callersFunctioncomparisons
(n_queries=10)
examples/runtime_comparison.py:195
↓ 1 callersFunctionconsensus_entropy
Calculates the consensus entropy for the Committee. First it computes the class probabilties of X for each learner in the Committee, then cal
modAL/disagreement.py:48
↓ 1 callersFunctiondrop_rows
Returns X without the row(s) at index/indices I
modAL/utils/data.py:125
↓ 1 callersFunctionenumerate_data
for i, x in enumerate_data(X): Depending on the data type of X, returns: * A 1xM matrix in case of scipy sparse NxM matrix X * pand
modAL/utils/data.py:151
↓ 1 callersMethodfit
(self, X, y)
tests/example_tests/multidimensional_data.py:13
↓ 1 callersMethodfit
Interface for the fit method of the predictor. Fits the predictor to the supplied data, then stores it internally for the active lear
modAL/models/learners.py:136
↓ 1 callersMethodget_max
Gives the highest value so far. Returns: The location of the currently best value and the value itself.
modAL/models/learners.py:398
↓ 1 callersFunctioni
(a,c,d,e,f,i,j)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 1 callersFunctionj
(a,b,c,d,f)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
next →1–100 of 285, ranked by callers