.. _l-functions: Functions ========= .. contents:: :local: :depth: 1 Summary +++++++ +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | function | class parent | truncated documentation | +======================================================================================================================================+==============+================================================================================================================================================================================================================+ | :func:`AUC ` | | Compute the `AUC `_. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`AUC_multi ` | | Compute the `AUC `_. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`AUC_multi_multi ` | | Compute the `AUC `_. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_complete_subset_streets ` | | Extends a set of edges to have less extermities into the graph composed by the sets of edges. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_default_name ` | | Returns a default username. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_delete_edge ` | | Removes an edge from the graph. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_enumerate_close ` | | Enumerates close streets from a starting point. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_euler_path ` | | Computes an Eulerian path. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_explore_path ` | | Explores an Eulerian path, remove used edges from *edges_from*. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_recurse_fill ` | | | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_search_images_dogcat_keras ` | | | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_search_images_dogcat_torch ` | | | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`_setup_hook ` | | does nothing | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`add_missing_time ` | | After aggregation, it usually happens that the series is sparse. This function adds rows for missing time. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`added ` | | Retrieves ``added.zip``. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`anyzip ` | | Any zip. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`appariement ` | | On veut apparier les événemens -1 aux événemens +1. On s'attend aux colonnes suivantes: *"file"*, *"collect_date"*, ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`bellman_distances ` | | Computes shortest distances between all vertices. It assumes edges are symmetric. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`besancon_df ` | | Retrieves ``Besancon.df.zip``. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`best_euler_path ` | | Computes the final solution for the Eulerian path. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`build_streets_vertices ` | | Returns vertices and edges based on the subset of edges. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`cached_property ` | | A memoize decorator for class properties. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`change_encoding ` | | Changes the encoding of a text file and removes quotes. By default *process* is :func:`process_line`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`change_encoding_improve ` | | Changes the encoding of a text file, removes quotes. By default *process* is :func:`process_line` but the function ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`check ` | | Checks the library is working. It raises an exception. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`clean_column_name_sql_dump ` | | Removes quotes in a line which looks like: | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`clean_function_notebook ` | | Cleans cells when unittesting notebooks. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`compute_degrees ` | | Compute the degree of vertices. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`connect_streets ` | | Tells if streets `st1`, `st2` are connected. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`convert_dates ` | | Converts a string into a date. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`convert_dcm2png ` | | Converts all medical images in a folder from format :epkg:`dcm` to :epkg:`png`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`cresus_dummy_file ` | | | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`dcm2png ` | | Converts all medical images in a folder from format :epkg:`dcm` to :epkg:`png`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`decrypt_dataframe ` | | Reads an encrypted dataframe. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`df2rsthtml ` | | Writes a table into RST or HTML format. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`df_crossjoin ` | | Makes a cross join (cartesian product) between two dataframes by using a constant temporary key. Also sets a MultiIndex ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`dijkstra_path ` | | Returns the best path between two vertices. Uses `Dikjstra `_ ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`distance ` | | Calcule une distance pour un appariement conçu ici comme la variance de la vitesse de chaque déplacement + la somme ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`distance_path ` | | Calcule la vitesse moyenne lorsque le chemin est connu. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`distance_solution ` | | Checks if a solution is really a solution and returns the distance of it, None if it is not a solution. The function ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`distance_vertices ` | | Computes the length of edges if distances is None. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`encrypt_file ` | | Encrypts a file with a specific password. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`enumerate_batch_features ` | | Enumerates all batches saved in a folder. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`enumerate_events ` | | Construit la liste des événements (vélo réposé ou retiré). | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`enumerate_image_class ` | | Lists all images in one folder assuming subfolders indicates the class of each image belongs to. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`enumerate_json_items ` | | Enumerates items from a JSON file or string. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`enumerate_text_lines ` | | Enumerates all lines from a text file and does some cleaning (see the list of parameters). | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`euler_path ` | | Computes an Eulerian path. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`execute_notebooks ` | | Executes a list of notebooks. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`extract_bing_result ` | | Extract the first results from a search page assuming it comes from :epkg:`Bing Image`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`extract_images_from_json_2017 ` | | Extracts fields from a JSON files such as images. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`folder_split_train_test ` | | Splits images from a folder into train and test. The function saves images into two separate folders. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`folium_html_stations_map ` | | Returns a :epkg:`folium` map which shows stations in different colors. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`folium_html_street_map ` | | Returns a :epkg:`folium` map which represents the streets. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_additional_paths ` | | Returns a list of paths to add before running the notebooks, paths to :epkg:`pyquickhelper`, :epkg:`pyensae`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_chicago_stations ` | | Retrieves processed data from `Divvy Data `_. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_data ` | | Récupère les données. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_fields_description ` | | Retrieves a :epkg:`dataframe` which describes the meaning of the metadata. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_max_delta ` | | Returns the maximal value by which we can improve the dual solution by adjusting charges on alternating trees. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_meaning ` | | Retrieves data related to the meaning of a table. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_password ` | | Retrieves a password with `keyring `_. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_password ` | | Retrieves a password assocatied to *key*. Relies on module :epkg:`keyring`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_password_from_keyring_or_env ` | | Gets the password from `keyring `_ first, then from the environment variables. ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_seattle_streets ` | | Retrieves processed data from `Seattle Streets `_. ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`haversine_distance ` | | Computes `Haversine formula `_. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`histogram_image_size ` | | Computes the distribution of images size. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`image_zoom ` | | Resizes an *image* (from :epkg:`PIL`). | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`img2gray ` | | Converts an image (:epkg:`PIL`) to gray scale. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`last_element ` | | Returns the last element of sequence assuming they were generated by an iterator or a generator. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`load_batch_features ` | | Loads a batch file saved by :func:`stream_image2features`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`ls_notebooks ` | | Lists the notebooks in a particular subfolder. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`main ` | | Implements ``python -m ensae_projects ``. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`main_codalab_wrapper_binary_classification ` | | adapt the tempate available at `evaluate.py `_ ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`main_codalab_wrapper_multi_classification ` | | adapt the tempate available at `evaluate.py `_ ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`matching_vertices ` | | Finds the best match between vertices. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`merge_schema ` | | Merges schemas of various databases. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`plot_gallery_random_images ` | | Plots a gallery of images using :epkg:`matplotlib`. Extracts a random sample from a folder which contains many images. ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`plot_streets_network ` | | Plots the network based on :epkg:`cartopy`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`plot_streets_network_projection ` | | Returns the default projection for :func:`plot_streets_network`. See `projection `_. ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`prepare_cresus_data ` | | Prepares the data for the challenge. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`private_codalab_wrapper_binary_classification ` | | Wraps the function following the guidelines `User_Building a Scoring Program for a Competition `_. ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`private_codalab_wrapper_multi_classification ` | | Wraps the function following the guidelines `User_Building a Scoring Program for a Competition `_. ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`process_cresus_sql ` | | Processes the database sent by cresus and produces a list of flat files. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`process_cresus_whole_process ` | | Processes the database from :epkg:`Cresus` until it splits the data into two two sets of files. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`query_bing_image ` | | Returns the search page from :epkg:`Bing Image` for a specific query. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`random_answers_2020_images ` | | Generates random answers the deep learning challenge of hackathons :ref:`l-hackathon-2020`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`random_answers_2020_ml ` | | Generates random answers the machine learning challenge of hackathons :ref:`l-hackathon-2020`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`read_image ` | | Reads an image. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`read_input ` | | | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`resize_image ` | | Resizes an image until one of its dimension becomes smaller than *maxdim* after dividing the dimensions by two many ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`score_images ` | | Scores the predictions for images. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`search_images_dogcat ` | | Defines a :epkg:`REST` application. It returns a list of neighbors among a small set of images representing dogs ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`seattle_streets_set_level ` | | Returns a graph of streets. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`seattle_streets_set_level2 ` | | Returns a small graph of streets. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`seattle_streets_set_level3 ` | | Returns a small graph of streets. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`seattle_streets_set_small ` | | Returns a small graph of streets. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`set_password ` | | Stores a password with `keyring `_. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`set_password ` | | Stores a password assocatied to *key*. Relies on module :epkg:`keyring`. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`shapely_records ` | | Uses `pyshp `_ to return shapes and records from shapefiles. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`split_XY_bind_dataset_cresus_data ` | | Splits XY for the blind set. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`split_train_test_cresus_data ` | | Splits the tables into two sets for tables (based on users). | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`stream_apply_image_transform ` | | Applies a transform on every image in a folder, saves it in another one. It keeps the same subfolders. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`stream_copy_images ` | | Copies all images from *src_folder* to *dest_folder* if *valid(name)* is True. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`stream_download_images ` | | Downloads images based on their urls. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`stream_image2features ` | | Considers all images in a folder, transform them into features (function *transform*) and saves them with :epkg:`pickle` ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`stream_random_sample ` | | Extracts a random sample from a folder which contains many images. Relies on fonction :func:`enumerate_image_class`. ... | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`update_tree_structures ` | | | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`vitesse ` | | Calcule la vitesse d'un déplacement. | +--------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+