youchoose.data.example_datasets package¶
Submodules¶
youchoose.data.example_datasets.instacart_dataset module¶
Download and unzip instacart data.
-
youchoose.data.example_datasets.instacart_dataset.create_adjancency_matrix(db, save_folder='../../data/interim/', num_orders=10)¶ Create and save a weighted adjacency matrix of the instacart database.
Parameters: - db (Database) – The connected instacart database.
- save_folder (str, optional) – File location to save the data to. Defaults to “../../data/interim/”.
- num_orders (int, optional) – The number of orders to get interactions from. Defaults to 10.
Raises: TypeError– If the number of orders is not an int.
-
youchoose.data.example_datasets.instacart_dataset.define_instacart_db(db)¶ Add the instacart database tables as attributes of the Database class.
-
youchoose.data.example_datasets.instacart_dataset.main()¶