Methods

Summary

method class parent truncated documentation
__add__ Point ajoute un vecteur a celui-ci :githublink:
__eq__ Point retourne True si les deux points
__getitem__ CompletionSystem return
__iadd__ Point ajoute un vecteur a celui-ci :githublink:
__init__ Point constructeur :githublink:
__init__ Segment constructeur, pour éviter des erreurs d’etourderie, on crée des copies des extrémités a et b, ...
__init__ MlGridBenchMark initialisation
__init__ ROC initialisation with a dataframe and two columns: * column 1: score (y_score) * column 2: ...
__init__ CompletionTrieNode  
__init__ CompletionElement constructor
__init__ CompletionSystem fill the completion system :githublink:
__iter__ CompletionTrieNode iterates on all nodes (sorted) :githublink:
__iter__ CompletionSystem iterates over elements :githublink:
__len__ ROC usual :githublink:
__len__ CompletionSystem number of elements :githublink:
__repr__ Point usuel :githublink:
__repr__ ROC show first elements, precision rate :githublink:
__repr__ CompletionElement usual :githublink:
__str__ Point permet d’afficher un point avec l’instruction print :githublink:
__str__ Segment permet d’afficher le segment avec l’instruction print :githublink:
__str__ ROC show first elements, precision rate :githublink:
__str__ CompletionTrieNode usual :githublink:
__sub__ Point soustraction de deux de vecteurs :githublink:
_add CompletionTrieNode add a child
all_completions CompletionTrieNode retrieve all completions for a node, the method does not need :meth:
all_mks_completions CompletionTrieNode retrieve all completions for a node, the method assumes :meth:
angle Point retourne l’angle du vecteur :githublink:
arrondi Point retourne les coordonnées arrondies à l’entier le plus proche :githublink:
auc ROC computes the area under the curve
auc_interval ROC Determines a confidence interval for the AUC with bootstrap.
bench_experiment MlGridBenchMark Calls meth fit. :githublink:
compare_with_trie CompletionSystem compare the results with the other implementation
compute_metrics CompletionSystem Compute the metric for the completion itself.
compute_roc_curve ROC Compute a ROC curve with nb points avec nb, if nb == -1, there are as many as points as the data contains, ...
confusion ROC Computes the confusion matrix for a specific score or all if score is None.
directeur Segment retourne le vecteur directeur du segment, ce vecteur est norme :githublink:
end MlGridBenchMark nothing to do :githublink:
enumerate_test_metric CompletionSystem Evaluate the completion set on a set of queries, the function returns a list of :class:
find CompletionTrieNode returns the node which holds all completions starting with a given prefix
find CompletionSystem not very efficient, find an item in a the list
fit MlGridBenchMark Train a model.
graphs MlGridBenchMark Plot multiples graphs.
init_metrics CompletionElement initiate the metrics
items CompletionTrieNode iterates on children, iterates on weight, key, child :githublink:
items CompletionSystem iterate on
items_list CompletionTrieNode all children nodes inluding itself in a list
iter_leaves CompletionTrieNode iterators on leaves sorted per weight, yield weight, value
leaves CompletionTrieNode iterators on leaves :githublink:
min_dynamic_keystroke CompletionTrieNode returns the dynamic minimum keystrokes for a word,
min_dynamic_keystroke2 CompletionTrieNode returns the modified dynamic minimum keystrokes for a word,
min_keystroke CompletionTrieNode Returns the minimum keystrokes for a word without optimisation, this function should be used if you only ...
min_keystroke0 CompletionTrieNode returns the minimum keystrokes for a word
normal Segment retourne le vecteur normal du segment, ce vecteur est norme :githublink:
normalise Point normalise le vecteur, sa norme devient 1 :githublink:
norme Point retourne la norme
plot ROC Plot a ROC curve.
plot_graphs MlGridBenchMark Plots all graphs in the same graphs.
precision ROC Compute precision :githublink:
precompute_stat CompletionTrieNode computes and stores list of completions for each node, computes mks
predict_score_experiment MlGridBenchMark Calls method score. :githublink:
preprocess_dataset MlGridBenchMark split the dataset into train and test
random_cloud ROC resample among the data
roc_intersect ROC ROC curve is defined by a set of points. This function interpolates those points to determine ...
roc_intersect_interval ROC computes a confidence interval for the value returned by :meth:
scalaire Point calcule le produit scalaire
scalairek Point mulitplication par un scalaire
score MlGridBenchMark Score a model :githublink:
sort_values CompletionSystem sort the elements by value :githublink:
sort_weight CompletionSystem sort the elements by value :githublink:
str_all_completions CompletionTrieNode builds a string with all completions for all prefixes along the paths
str_all_completions CompletionElement builds a string with all completions for all prefixes along the paths, this is only available ...
str_mks CompletionElement return a string with metric information :githublink:
str_mks0 CompletionElement return a string with metric information :githublink:
test_metric CompletionSystem evaluate the completion set on a set of queries, the function returns a dictionary with the aggregated metrics ...
to_dict CompletionSystem return a dictionary :githublink:
tuples CompletionSystem iterate on
unsorted_iter CompletionTrieNode iterates on all nodes :githublink:
update_metrics CompletionElement update the metrics
update_stat_dynamic CompletionTrieNode must be called after :meth: