# Methods¶

## Summary¶

method

class parent

truncated documentation

__eq__

Blossom

__eq__

Edge

__eq__

Vertex

__hash__

Blossom

__hash__

Edge

__hash__

Vertex

__init__

Blossom

__init__

Edge

__init__

Vertex

__init__

ParemetreCoutTrajet

__init__

ImageNearestNeighbors

__init__

MLStoragePerf2018

__init__

MLStoragePerf2018Image

__init__

MLStoragePerf2018TimeSeries

__repr__

Blossom

__repr__

Edge

__repr__

Vertex

__str__

Blossom

__str__

Edge

__str__

Vertex

__str__

ParemetreCoutTrajet

usuel

_folder2matrix

ImageNearestNeighbors

Converts images stored in a folder into a matrix of features.

_get_transform

ImageNearestNeighbors

Returns the associated transform function with self.transform_.

_imglist2matrix

ImageNearestNeighbors

Converts a list of images into a matrix of features.

_label_mapping

MLStoragePerf2018Image

Computes the label based on a subfolder name.

_label_mapping

MLStoragePerf2018TimeSeries

Computes the label based on a subfolder name.

_load_cached_performance

MLStoragePerf2018

_load_cached_performance

MLStoragePerf2018Image

_load_cached_performance

MLStoragePerf2018TimeSeries

_load_ml_storage

MLStoragePerf2018

Creates an instance of a MLStorage

_load_ml_storage

MLStoragePerf2018Image

Creates an instance of a MLStorage

_load_ml_storage

MLStoragePerf2018TimeSeries

Creates an instance of a MLStorage

_private_kn

ImageNearestNeighbors

Commun private function to handle the same kind of inputs in all transform functions.

_save_performance

MLStoragePerf2018

Saves cached performance.

_save_performance

MLStoragePerf2018Image

Saves cached performance.

_save_performance

MLStoragePerf2018TimeSeries

Saves cached performance.

add_edge_to

Vertex

adjust_charge

Blossom

Decides what is supposed to happen on charge adjusts and recurses.

adjust_charge

Vertex

Decides what is supposed to happen on charge adjusts and recurses.

alter_tree

Blossom

Detects and handles the four cases where trees need to be altered.

alter_tree

Vertex

Detects and handles the four cases where trees need to be altered.

attach_out_of_tree_pair

Blossom

Handles case (P2).

attach_out_of_tree_pair

Vertex

Handles case (P2).

augment_matching

Blossom

Augments the matching along the alternating path containing given edge. (P4)

augment_matching

Vertex

Augments the matching along the alternating path containing given edge. (P4)

calculate_charge

Edge

Calculates the total charge on this edge. The charge is calculated as the sum of all blossoms containing …

compute_perf

MLStoragePerf2018

Computes the performances for every image and one particular model.

compute_perf

MLStoragePerf2018Image

Computes the performances for every image and one particular model.

compute_perf

MLStoragePerf2018TimeSeries

Computes the performances for every image and one particular model.

compute_performance

MLStoragePerf2018

Computes the performance for the not cached one if use_cache is True.

compute_performance

MLStoragePerf2018Image

Computes the performance for the not cached one if use_cache is True.

compute_performance

MLStoragePerf2018TimeSeries

Computes the performance for the not cached one if use_cache is True.

cost

ParemetreCoutTrajet

Retourne un coût, plus il est bas, plus de déplacement est probable.

detach_children

Blossom

Detaches all children and turns them into out-of-tree pairs.

detach_children

Vertex

Detaches all children and turns them into out-of-tree pairs.

detach_from_parent

Blossom

Detaches itself from the parent and forms an out-of-tree pair. If called on an odd blossom, edge needs to be None …

detach_from_parent

Vertex

Detaches itself from the parent and forms an out-of-tree pair. If called on an odd blossom, edge needs to be None …

expand

Blossom

Expands this blossom back into its constituents. (P1)

expand

Vertex

fit

ImageNearestNeighbors

Fits the model. X can be a folder.

flip_alternating_path

Blossom

Flips edge selection on the alternating path from v1 to v2. v1 and v2 are the two vertices at the boundaries of …

flip_alternating_path

Vertex

Flips edge selection on the alternating path from v1 to v2. v1 and v2 are the two vertices at the boundaries of …

flip_root_path

Blossom

Flips edge selection on the alternating path from self to root. Argument edge is the edge from a child from which …

flip_root_path

Vertex

Flips edge selection on the alternating path from self to root. Argument edge is the edge from a child from which …

get_base_vertex

Blossom

get_base_vertex

Vertex

get_image_classes

ImageNearestNeighbors

Returns images classes for the given list of indices.

get_image_names

ImageNearestNeighbors

Returns images names for the given list of indices.

get_max_delta

Blossom

Finds the maximum allowed charge adjust for this blossom and its children.

get_max_delta

Vertex

Finds the maximum allowed charge adjust for this blossom and its children.

get_outermost_blossom

Blossom

get_outermost_blossom

Vertex

get_remaining_charge

Edge

get_root

Blossom

get_root

Vertex

handle_tight_edges

Blossom

Finds any fresh tight edges. If a tight edge leads to an out-of-tree blossom, attach the pair (P2). …

handle_tight_edges

Vertex

Finds any fresh tight edges. If a tight edge leads to an out-of-tree blossom, attach the pair (P2). …

kneighbors

ImageNearestNeighbors

See NearestNeighbors, method kneighbors. Parameter X can be a file, the image is then loaded and …

kneighbors_graph

ImageNearestNeighbors

See NearestNeighbors, method kneighbors_graph. Parameter X can be a file, the image is then loaded …

plot_neighbors

ImageNearestNeighbors

Calls plot_gallery_images with information on the neighbors.

radius_neighbors

ImageNearestNeighbors

See NearestNeighbors, method radius_neighbors. Parameter X can be a file, the image is then loaded …

shrink_with_peer

Blossom

Shrinks the cycle along given edge into a new blossom. (P3)

shrink_with_peer

Vertex

Shrinks the cycle along given edge into a new blossom. (P3)

toggle_selection

Edge

Toggles the membership of self in the current matching.

traverse_from

Edge

Returns the other endpoint of an edge. The argument can be either a vertex, a Blossom or a set of vertices. …