Methods

Summary

method class parent truncated documentation
__add__ Point ajoute un vecteur a celui-ci source on GitHub
__eq__ Point retourne True si les deux points self et a sont egaux, False sinon source on GitHub
__getitem__ CompletionSystem return elements[i] source on GitHub
__iadd__ Point ajoute un vecteur a celui-ci source on GitHub
__init__ Point constructeur source on GitHub
__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:
__init__ CompletionTrieNode  
__init__ CompletionElement constructor
__init__ CompletionSystem fill the completion system source on GitHub
__iter__ CompletionTrieNode iterates on all nodes (sorted) source on GitHub
__iter__ CompletionSystem iterates over elements source on GitHub
__len__ ROC usual source on GitHub
__len__ CompletionSystem number of elements source on GitHub
__repr__ Point usuel source on GitHub
__repr__ ROC show first elements, precision rate source on GitHub
__repr__ CompletionElement usual source on GitHub
__str__ Point permet d’afficher un point avec l’instruction print source on GitHub
__str__ Segment permet d’afficher le segment avec l’instruction print source on GitHub
__str__ ROC show first elements, precision rate source on GitHub
__str__ CompletionTrieNode usual source on GitHub
__sub__ Point soustraction de deux de vecteurs source on GitHub
_add CompletionTrieNode add a child
all_completions CompletionTrieNode retrieve all completions for a node, the method does not need precompute_stat() to be run first …
all_mks_completions CompletionTrieNode retrieve all completions for a node, the method assumes precompute_stat() was run …
angle Point retourne l’angle du vecteur source on GitHub
arrondi Point retourne les coordonnées arrondies à l’entier le plus proche source on GitHub
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. source on GitHub
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 source on GitHub
end MlGridBenchMark nothing to do source on GitHub
enumerate_test_metric CompletionSystem Evaluate the completion set on a set of queries, the function returns a list of CompletionElement
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 source on GitHub
items CompletionSystem iterate on (e.value, e) source on GitHub
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 source on GitHub
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 source on GitHub
normalise Point normalise le vecteur, sa norme devient 1 source on GitHub
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 source on GitHub
precompute_stat CompletionTrieNode computes and stores list of completions for each node, computes mks
predict_score_experiment MlGridBenchMark Calls method score. source on GitHub
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 roc_intersect().
scalaire Point calcule le produit scalaire
scalairek Point mulitplication par un scalaire
score MlGridBenchMark Score a model source on GitHub
sort_values CompletionSystem sort the elements by value source on GitHub
sort_weight CompletionSystem sort the elements by value source on GitHub
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 source on GitHub
str_mks0 CompletionElement return a string with metric information source on GitHub
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 source on GitHub
tuples CompletionSystem iterate on (e.weight, e.value) source on GitHub
unsorted_iter CompletionTrieNode iterates on all nodes source on GitHub
update_metrics CompletionElement update the metrics
update_stat_dynamic CompletionTrieNode must be called after precompute_stat() and computes dynamic mks (see Dynamic Minimum Keystroke) …