Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/modAL-python/modAL
/ functions
Functions
285 in github.com/modAL-python/modAL
⨍
Functions
285
◇
Types & classes
30
↓ 41 callers
Method
query
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 callers
Method
teach
(self, *args, **kwargs)
modAL/models/base.py:206
↓ 27 callers
Method
score
(self, *args, **kwargs)
tests/mock.py:47
↓ 23 callers
Method
predict
(self, *args, **kwargs)
tests/mock.py:35
↓ 21 callers
Function
multi_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 callers
Function
n
(a,c,f)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 17 callers
Function
shuffled_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 callers
Function
J
(a,b,c)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 11 callers
Method
predict_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 callers
Function
F
(a,b)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 9 callers
Method
_set_max
(self, X: modALinput, y: modALinput)
modAL/models/learners.py:391
↓ 9 callers
Method
teach
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 callers
Method
fit
(self, *args, **kwargs)
tests/mock.py:32
↓ 8 callers
Function
m
(a)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 8 callers
Method
predict_proba
(self, *args, **kwargs)
tests/mock.py:41
↓ 7 callers
Function
e
()
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 7 callers
Function
l
()
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 7 callers
Method
predict
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 callers
Function
retrieve_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 callers
Function
D
(a)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 6 callers
Function
c
(a,c)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 6 callers
Function
g
(a)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 5 callers
Function
G
(a,b)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 5 callers
Method
_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 callers
Function
classifier_uncertainty
Classification uncertainty of the classifier for the provided samples. Args: classifier: The classifier for which the uncertainty is
modAL/uncertainty.py:63
↓ 5 callers
Function
data_vstack
Stack vertically sparse/dense arrays and pandas data frames. Args: blocks: Sequence of modALinput objects. Returns: New
modAL/utils/data.py:16
↓ 5 callers
Function
linear_combination
(*args, **kwargs)
modAL/utils/combination.py:31
↓ 5 callers
Function
y
(a,c,d,e)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 4 callers
Method
__init__
(self, learner_list: List[ActiveLearner], query_strategy: Callable = vote_entropy_sampling, o
modAL/models/learners.py:484
↓ 4 callers
Method
_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 callers
Method
_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 callers
Function
d
(d,e)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 4 callers
Method
fit
(self, *args, **kwargs)
modAL/models/base.py:126
↓ 4 callers
Function
get_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 callers
Function
h
()
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 4 callers
Function
information_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 callers
Method
predict_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 callers
Method
_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 callers
Function
entropy_sum
(values: np.array, axis: int = -1)
modAL/dropout.py:291
↓ 3 callers
Function
k
(a,b)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 3 callers
Function
multi_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 callers
Method
predict
Predicts the class of the samples by picking the consensus prediction. Args: X: The samples to be predicted.
modAL/models/learners.py:540
↓ 3 callers
Function
shuffled_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 callers
Function
similarize_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 callers
Method
teach
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 callers
Method
teach
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 callers
Method
transform_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 callers
Method
vote_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 callers
Function
H
(a,b)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 2 callers
Function
_SVM_loss
Utility function for max_loss and mean_max_loss strategies. Args: multiclass_classifier: sklearn.multiclass.OneVsRestClassifier inst
modAL/multilabel.py:12
↓ 2 callers
Method
_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 callers
Function
b
(a)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 2 callers
Function
classifier_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 callers
Function
data_hstack
Stack horizontally sparse/dense arrays and pandas data frames. Args: blocks: Sequence of modALinput objects. Returns: N
modAL/utils/data.py:44
↓ 2 callers
Function
data_shape
Returns the shape of the data set X
modAL/utils/data.py:172
↓ 2 callers
Method
fit
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 callers
Function
make_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 callers
Function
make_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 callers
Method
predict
(self, X)
tests/example_tests/multidimensional_data.py:16
↓ 2 callers
Method
predict
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 callers
Method
predict_proba
(self, X)
tests/example_tests/multidimensional_data.py:19
↓ 2 callers
Method
rebag
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 callers
Function
set_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 callers
Method
vote
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 callers
Method
vote
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 callers
Function
E
(a,b)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 1 callers
Function
EI
(mean, std, max_val, tradeoff)
modAL/acquisition.py:19
↓ 1 callers
Function
I
(a,b,d)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 1 callers
Function
K
()
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 1 callers
Function
KL_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 callers
Function
PI
(mean, std, max_val, tradeoff)
modAL/acquisition.py:15
↓ 1 callers
Function
UCB
(mean, std, beta)
modAL/acquisition.py:24
↓ 1 callers
Method
_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 callers
Method
_add_training_data
(self, X: modALinput, y: modALinput)
modAL/models/learners.py:510
↓ 1 callers
Function
_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 callers
Function
_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 callers
Method
_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 callers
Function
_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 callers
Function
_proba_entropy
Calculates the entropy of the prediction probabilities. Args: proba: Prediction probabilities. Returns: Uncertainty of
modAL/uncertainty.py:49
↓ 1 callers
Function
_proba_uncertainty
Calculates the uncertainty of the prediction probabilities. Args: proba: Prediction probabilities. Returns: Uncertainty
modAL/uncertainty.py:15
↓ 1 callers
Function
_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 callers
Function
a
()
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 1 callers
Function
acton_QBC
(data_path, n_queries)
examples/runtime_comparison.py:149
↓ 1 callers
Function
acton_uncertainty
(data_path, n_queries)
examples/runtime_comparison.py:134
↓ 1 callers
Function
add_row
Returns X' = [X row]
modAL/utils/data.py:72
↓ 1 callers
Function
alp_QBC
(X, y, n_queries)
examples/runtime_comparison.py:177
↓ 1 callers
Function
alp_uncertainty
(X, y, n_queries)
examples/runtime_comparison.py:163
↓ 1 callers
Function
assign_pseudo_labels
(active_learner, X, confidence_idx)
examples/cost_effective_active_learning.py:42
↓ 1 callers
Function
check_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 callers
Function
check_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 callers
Function
classifier_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 callers
Function
comparisons
(n_queries=10)
examples/runtime_comparison.py:195
↓ 1 callers
Function
consensus_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 callers
Function
drop_rows
Returns X without the row(s) at index/indices I
modAL/utils/data.py:125
↓ 1 callers
Function
enumerate_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 callers
Method
fit
(self, X, y)
tests/example_tests/multidimensional_data.py:13
↓ 1 callers
Method
fit
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 callers
Method
get_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 callers
Function
i
(a,c,d,e,f,i,j)
docs/source/_themes/sphinx_rtd_theme/static/js/modernizr.min.js:4
↓ 1 callers
Function
j
(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