Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bgokden/lstm-recommender-example
An recommender system using Keras LSTM using product purchases as time-series data
https://github.com/bgokden/lstm-recommender-example
encoder-decoder keras keras-tensorflow lstm recommender-system tensorflow
Last synced: 27 days ago
JSON representation
An recommender system using Keras LSTM using product purchases as time-series data
- Host: GitHub
- URL: https://github.com/bgokden/lstm-recommender-example
- Owner: bgokden
- License: apache-2.0
- Created: 2020-03-15T12:36:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-25T00:12:10.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T00:49:35.587Z (8 months ago)
- Topics: encoder-decoder, keras, keras-tensorflow, lstm, recommender-system, tensorflow
- Language: Python
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lstm-recommender-example
An recommender system using Keras LSTM using product purchases as time-series dataThis a recommender system example where purchases are considered as time-series data and 2 new products are recommended based on last 3 purchases.
For data [e-commerce data from kaggle used](https://www.kaggle.com/carrie1/ecommerce-data/data)
Download data as data.csv to data folder and run:
```shell
$ python preparedata.py
$ python trainmodel.py
$ python testsmodel.py
```#### there will be a blog post for explanation of this repo.
#### Example input output pairs:
```python
['BABY BOOM RIBBONS ', 'GINGERBREAD MAN COOKIE CUTTER', 'ROSE COTTAGE KEEPSAKE BOX '] => ['ALARM CLOCK BAKELIKE IVORY']
['FELTCRAFT HAIRBAND PINK AND PURPLE', 'CERAMIC HEART FAIRY CAKE MONEY BANK', 'FAWN BLUE HOT WATER BOTTLE'] => ['DRAWER KNOB CRACKLE GLAZE IVORY']
['CAMOUFLAGE DESIGN TEDDY', 'GARDEN METAL SIGN ', 'VINTAGE SNAP CARDS'] => ['STORAGE TIN VINTAGE LEAF']
['', '', 'JAM MAKING SET PRINTED'] => ['STORAGE TIN VINTAGE LEAF']
['', "PAPER CHAIN KIT 50'S CHRISTMAS ", 'SET OF 72 RETROSPOT PAPER DOILIES'] => ['PAPER CHAIN KIT VINTAGE CHRISTMAS']
['WHITE HANGING HEART T-LIGHT HOLDER', 'PACK OF 6 BIRDY GIFT TAGS', 'GINGERBREAD MAN COOKIE CUTTER'] => ['STORAGE TIN VINTAGE LEAF', 'DOORKNOB CRACKED GLAZE IVORY']
['HAND WARMER SCOTTY DOG DESIGN', 'SWEETHEART CERAMIC TRINKET BOX', 'HAND WARMER RED RETROSPOT'] => ['STORAGE TIN VINTAGE LEAF', 'HAND WARMER OWL DESIGN']
['POLKADOT RAIN HAT ', 'DECORATIVE CATS BATHROOM BOTTLE', 'RETROSPOT LAMP'] => ['STORAGE TIN VINTAGE LEAF', 'LUNCH BAG VINTAGE DOILEY ']
['JUMBO STORAGE BAG SUKI', 'JUMBO BAG RED RETROSPOT', 'SCOTTIE DOG HOT WATER BOTTLE'] => ['JUMBO STORAGE BAG SKULLS']
['WHITE HANGING HEART T-LIGHT HOLDER', 'HEART OF WICKER SMALL', 'WASH BAG VINTAGE ROSE PAISLEY'] => ['STORAGE TIN VINTAGE LEAF', 'HANGING HEART JAR T-LIGHT HOLDER']
['WHITE HANGING HEART T-LIGHT HOLDER', 'SET OF 9 HEART SHAPED BALLOONS', 'ASSORTED CREEPY CRAWLIES'] => ['STORAGE TIN VINTAGE LEAF']
['60 CAKE CASES VINTAGE CHRISTMAS', 'REGENCY CAKESTAND 3 TIER', 'CLOTHES PEGS RETROSPOT PACK 24 '] => ['STORAGE TIN VINTAGE LEAF']
['RECORD FRAME 7" SINGLE SIZE ', '3 TIER CAKE TIN GREEN AND CREAM', 'SILVER CHRISTMAS TREE BAUBLE STAND '] => ['STORAGE TIN VINTAGE LEAF']
['CARD PARTY GAMES ', 'JAM MAKING SET PRINTED', 'HOMEMADE JAM SCENTED CANDLES'] => ['STORAGE TIN VINTAGE LEAF', 'DOORKNOB CRACKED GLAZE IVORY']
['WHITE HANGING HEART T-LIGHT HOLDER', 'SCANDINAVIAN PAISLEY PICNIC BAG', 'RECIPE BOX PANTRY YELLOW DESIGN'] => ['STORAGE TIN VINTAGE LEAF']
['PACK OF 60 SPACEBOY CAKE CASES', 'HEART OF WICKER SMALL', 'ROTATING LEAVES T-LIGHT HOLDER'] => ['STORAGE TIN VINTAGE LEAF']
['CREAM SLICE FLANNEL PINK SPOT ', 'CREAM SLICE FLANNEL CHOCOLATE SPOT ', 'SWISS ROLL TOWEL, CHOCOLATE SPOTS'] => ['ALARM CLOCK BAKELIKE IVORY', 'DOORKNOB CRACKED GLAZE IVORY']
['RETROSPOT LARGE MILK JUG', 'PINK BLUE FELT CRAFT TRINKET BOX', 'ENGLISH ROSE HOT WATER BOTTLE'] => ['DRAWER KNOB CRACKLE GLAZE IVORY']
['POLKADOT RAIN HAT ', 'WOODEN BOX OF DOMINOES', 'PLASTERS IN TIN SKULLS'] => ['STORAGE TIN VINTAGE LEAF']
['', '', 'CHRISTMAS CRAFT LITTLE FRIENDS'] => ['STORAGE TIN VINTAGE LEAF', 'VINTAGE CHRISTMAS STOCKING ']
```#### Acknowledgements
[E-Commerce Data](https://www.kaggle.com/carrie1/ecommerce-data/data)
Per the UCI Machine Learning Repository, this data was made available by Dr Daqing Chen, Director: Public Analytics group. chend '@' lsbu.ac.uk, School of Engineering, London South Bank University, London SE1 0AA, UK.
[How to Develop LSTM Models for Time Series Forecasting](https://machinelearningmastery.com/how-to-develop-lstm-models-for-time-series-forecasting/)
[Tensorflow Universal Sentence Encoder Multilingual Large](https://tfhub.dev/google/universal-sentence-encoder-multilingual-large/3)