Icon

Solution_Round_4_Team_AST (Public_Version)

<p>This workflow is Team AST’s solution for the Round of 4 challenge in the KNIME Game of Nodes 2024. Some modifications have been made to the originally submitted workflow.<br>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br><br><br>Product Recommendation Engine<br><br>Challenge description:<br><br>You work as a data scientist at Amazon, one of the world's largest online retailers. To drive more sales and deliver valuable suggestions to customers, your manager has tasked you with building a product recommendation engine. Based on the product ratings given by customers, recommend 5 other products for each product in the given set of products. You are free to choose the approach that you see fits best. Clearly, in the interest of the company's sales, your recommendations should be meaningful to customers.<br><br>Additionally, your manager requires you to present the obtained recommendations in an interactive dashboard, and provide an explanation of your approach in an annotation (max. 200 words).<br><br>Note: Considering the dataset size, the recommendation engine can be computationally expensive to run. Feel free to use a small sample of the dataset, if computational resources are limited.<br><br>Key requirement: you must provide an explanation of your approach where you also clarify why you think your recommendation engine is good and would benefit the company and the customers.<br><br>Outcome:&nbsp;<br><br>An item-item recommender system and an interactive dashboard to present the recommendations.<br><br>Deliver your solution as a separate workflow and name it: Solution_Round_4_. Place your solution workflow in the same folder of this challenge workflow.<br><br>Teams are strongly encouraged to submit high-quality work in order to improve their chances of getting maximum points. Don't be afraid to go the extra mile! :)<br><br>Dataset:<br><br>Provided in challenge folder.<br><br>Deadline:<br><br>April 7, 2024 (submission by 11:59 PM CET) **. Check the calendar of the tournament: https://info.knime.com/game-of-nodes<br><br>** We will verify the date and time of the latest edits.<br><br>KNIME Game of Nodes:<br><br>Rules, Assessment Criteria &amp; FAQs: https://info.knime.com/game-of-nodes</p>

URL: KNIME Game of Nodes https://info.knime.com/game-of-nodes

Annotations and comments
  • Product Recommendation Engine Challenge description: You work as a data scientist at Amazon, one of the world's largest online retailers. To drive more sales and deliver valuable suggestions to customers, your manager has tasked you with building a product recommendation engine. Based on the product ratings given by customers, recommend 5 other products for each product in the given set of products. You are free to choose the approach that you see fits best. Clearly, in the interest of the company's sales, your recommendations should be meaningful to customers. Additionally, your manager requires you to present the obtained recommendations in an interactive dashboard, and provide an explanation of your approach in an annotation (max. 200 words). Note: Considering the dataset size, the recommendation engine can be computationally expensive to run. Feel free to use a small sample of the dataset, if computational resources are limited. Key requirement: you must provide an explanation of your approach where you also clarify why you think your recommendation engine is good and would benefit the company and the customers. Outcome:&nbsp; An item-item recommender system and an interactive dashboard to present the recommendations. Deliver your solution as a separate workflow and name it: Solution_Round_4_&lt;your_team_name&gt;. Place your solution workflow in the same folder of this challenge workflow. Teams are strongly encouraged to submit high-quality work in order to improve their chances of getting maximum points. Don't be afraid to go the extra mile! :) Dataset: Provided in challenge folder. Deadline: April 7, 2024 (submission by 11:59 PM CET) **. Check the calendar of the tournament: https://info.knime.com/game-of-nodes ** We will verify the date and time of the latest edits. KNIME Game of Nodes: Rules, Assessment Criteria &amp; FAQs: https://info.knime.com/game-of-nodes
  • How to use 1. execute Recommendation System and open view 2. select whether you have a User ID. If you have a User ID, enter it. (You can do this in the default sample) 3. select one item and press the Buy button.
  • Our system is a product recommendation system that combines multiple approaches from the following four perspectives: 1. Items frequently bought together : Frequently purchased together and high rated products enhances their value by combination use. 2. #1 Best Seller in the Topic: These items are offered as highly reliable options. 3. Items Selected via Association Rules or Collaborative Filtering (CF): Personalized recommendations based on users’ purchase history and ratings increase satisfaction and loyalty. CF is implemented when a user ID is provided. 4. Highly Rated and Frequently Purchased Items in the Same Topic: A powerful indicator, increasing the likelihood of purchases by new customers. The priority of recommendations is in numerical order. By combining multiple approaches, we can cover a wide range of customers, including new ones. For existing customers, better product recommendations can be made by utilizing their purchase and rating history. This recommendation system enhances the shopping experience, boosts purchase intent, and fosters brand loyalty by facilitating efficient exploration and comparison, especially in time-constrained online shopping.
  • Read Product_history.csv
  • Tile view CSS
  • Do you have a user ID?
  • User ID
  • User ID (empty)
  • User ID Top: Yes Bottom: No
  • For Product Id and User Id
  • For Product Id
  • Add User Id
  • Rating to double
  • Top: Product Id
  • train ALS model
  • training set from original training set + user ratings
  • remove NaN and missing preditions
  • calculate numerical error between oiginal ratings and predicted ratings
  • 80% - 20%
  • generate rating predictions on test set
  • generate ratings for user on the recommendated products
  • predicted ratings back to KNIME
  • Pull user ratings into spark
  • Recommendated products by association rules into Spark
  • Pull table into spark
  • Explanation of flag
  • Image of flag description
  • space
  • add edge_wide
  • add edge_size
  • Extract users who have purchased the selected products
  • Extract the number of times each product was purchased by separate users.
  • Extract other products purchased by the user
  • edge_size
  • Node color
  • color
  • edge_wide
  • rule of color
  • Create edgeID
  • If the name is long, it is difficult to see when displayed, so edit the name to be short.
  • Mutual data as A to B and B to A
  • add Color
  • Include true
  • Display the 6 products
  • Presented by Team AST(sryu, tark, tofusa)
  • Associatioin rule-based
  • Tagged with MostBuyTogether
  • blank data
  • Obtain the number of times the product was purchased at the same time as the selected product
  • Extract data whose UseID and Timestamp match the selected product.
  • Ranking by Average Rating and Purchase Count
  • Use Spliter to exclude selected products from recommendations Port 0: Products subject to recommendation Port 1: the selected product
  • Move the first line up
  • Sort by number of simultaneous purchases with highest priority
  • Convert ProductId of selected product to Variable
  • Recommended product candidates in the same topic
  • The selected products are excluded from consideration for recommendations
  • Sort by ranking
  • MostBuyTogether
  • Best Seller
  • star
  • bestsetter
  • Flag Description
  • ProductId
  • dummy
  • bestseller
  • Join 6 product images
  • Join star icons
  • image to SVG Bestseller
  • image to SVG item
  • SVG to PNG item
  • image to SVG star rating
  • SVG to PNG star rating
  • 0:Bestseller
  • Assign URLs of star icons in accordance with the product ratings
  • Creating the bar chart
  • Create a column for the corresponding ProductId in this loop process
  • Include "Rating and Count" in Group settings to use Variable
  • Star Rating Distribution Chart added to product data
  • Calculate the percentage of the total for each row
  • Convert Rating to string
  • Filter products to be graphed.
  • Convert Rating to "# star" value
  • Sort data so that they appear in order from 5 to 1 in the bar chart
  • Create bar chart titles. Adjusted so that the text is centered.
  • List of star ratings from 1 to 5
  • Join no image
  • Join images of recommendated products
  • no image
  • Top: Items without URLs to the images
  • Summarize columns with BestSeller
  • Take the top 5
  • 0:#1Frequently bought together
  • subtitle choose a product
  • title1
  • title2
  • subtitle Recommendation
  • subtitle Network Analysis
  • subtitle Support vs Lift
  • Title
  • Description buy
  • Description network analysis
  • Note about images
  • Product Id
  • Combines data of Mean(Rating), Count*(Rating), Rating_and_Count
  • add Best Sellar
  • Filter only on columns needed for analysis
  • Tagged as BestSeller
  • Duplicates are removed by Product name for product-by-product analysis.
  • Get the maximum number of sales in each Topic and make it the bestseller in topic
  • add assigned topic
  • add BestSeller
  • Removes all punctuation characters of terms contained in the input documents.
  • In order of number of purchases
  • Exclude unnecessary POS
  • Organizations This node assigns a named entity tag to each term of a document.
  • upperCase($Product Name$)
  • remove unnecessary symbols
  • list of unnecessary symbols
  • 200 topics a 5 words
  • Deletion of duplicate data
  • Mean Rating Count Rating
  • Data Merging
  • Mean Rating two decimal places
  • Rating_and_Count
  • Join support using the list as a key.
  • Join expected confidence
  • Lift value
  • Get the total number of baskets (= the number of rows)
  • To be used as a key in the following joiner node
  • Calculation of support (Support = Each itemset's count / the total number of baskets)
  • Join Antecedent
  • Antecedent
  • Combine Consequent and Antecedent in to a single List
  • Set Rule ID
  • Group by product id, count the number of user id
  • Calculate expected confidence (Expected confidence = Each product's basket count / the total number of baskets)
  • Ungroup the list (product id)
  • Group by userID and Unix timestamp put product ID into a list
  • For each product in this given set of products, what other 5 products will you recommend?

Nodes

Extensions

Links