How to select random data for 2 different recommender systems?












1












$begingroup$


The business problems : we have 2 different vendors that offer personalized recommender engine and want to do A/B testing with them. The recommendation would give the user a personalized offer via a push message on the phone. During the testing period, we should give each provider a dataset with different details regarding the customers (purchase history, in-app events etc). Each vendor will receive a dataset with identical info but for different clients.



What is the best method to choose the 2 datasets so that they would be similar in terms of client behaviour?



I assumed that giving them random data from our database wouldn't be a rigorous method so one idea that I have in mind is applying dbScan clustering on our database and further randomly picking clients from each cluster - don't know is this is the best approach. The full database has 200k clients and each dataset should contain 5k clients.



ex: after dbScan clustering there are k = 10 clusters so I randomly pick elements from each cluster and split them in Dataset01 and Dataset02



Any suggestions?










share|improve this question







New contributor




Remus Raphael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$

















    1












    $begingroup$


    The business problems : we have 2 different vendors that offer personalized recommender engine and want to do A/B testing with them. The recommendation would give the user a personalized offer via a push message on the phone. During the testing period, we should give each provider a dataset with different details regarding the customers (purchase history, in-app events etc). Each vendor will receive a dataset with identical info but for different clients.



    What is the best method to choose the 2 datasets so that they would be similar in terms of client behaviour?



    I assumed that giving them random data from our database wouldn't be a rigorous method so one idea that I have in mind is applying dbScan clustering on our database and further randomly picking clients from each cluster - don't know is this is the best approach. The full database has 200k clients and each dataset should contain 5k clients.



    ex: after dbScan clustering there are k = 10 clusters so I randomly pick elements from each cluster and split them in Dataset01 and Dataset02



    Any suggestions?










    share|improve this question







    New contributor




    Remus Raphael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$















      1












      1








      1


      1



      $begingroup$


      The business problems : we have 2 different vendors that offer personalized recommender engine and want to do A/B testing with them. The recommendation would give the user a personalized offer via a push message on the phone. During the testing period, we should give each provider a dataset with different details regarding the customers (purchase history, in-app events etc). Each vendor will receive a dataset with identical info but for different clients.



      What is the best method to choose the 2 datasets so that they would be similar in terms of client behaviour?



      I assumed that giving them random data from our database wouldn't be a rigorous method so one idea that I have in mind is applying dbScan clustering on our database and further randomly picking clients from each cluster - don't know is this is the best approach. The full database has 200k clients and each dataset should contain 5k clients.



      ex: after dbScan clustering there are k = 10 clusters so I randomly pick elements from each cluster and split them in Dataset01 and Dataset02



      Any suggestions?










      share|improve this question







      New contributor




      Remus Raphael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      The business problems : we have 2 different vendors that offer personalized recommender engine and want to do A/B testing with them. The recommendation would give the user a personalized offer via a push message on the phone. During the testing period, we should give each provider a dataset with different details regarding the customers (purchase history, in-app events etc). Each vendor will receive a dataset with identical info but for different clients.



      What is the best method to choose the 2 datasets so that they would be similar in terms of client behaviour?



      I assumed that giving them random data from our database wouldn't be a rigorous method so one idea that I have in mind is applying dbScan clustering on our database and further randomly picking clients from each cluster - don't know is this is the best approach. The full database has 200k clients and each dataset should contain 5k clients.



      ex: after dbScan clustering there are k = 10 clusters so I randomly pick elements from each cluster and split them in Dataset01 and Dataset02



      Any suggestions?







      dataset statistics recommender-system ab-test






      share|improve this question







      New contributor




      Remus Raphael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Remus Raphael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Remus Raphael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 57 mins ago









      Remus RaphaelRemus Raphael

      61




      61




      New contributor




      Remus Raphael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Remus Raphael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Remus Raphael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          Welcome @Remus Raphael :) - Your approach is a sound option.



          More specifically, if a density-based algorithm was already working for you, I'd recommend the HDBSCAN clustering algo, which should have a better performance and has a unique built-in cluster validation (based on the DBCV algorithm).



          Then your general pipe line could be:




          1. An optional pre-processing

          2. An optional NLP / TFIDF for meaningful text features

          3. An optional dimensionality reduction (I found TSNE and TruncatedSVD to
            work nicely with HDBSCAN with textual processing)

          4. HDBSCAN tuning for different params and distance metrics

          5. Finally, when you're satisfied with the clustering quality - you can simply start with the 2 largest clusters for your AB testing


          I'd love to hear you feedback on your actual data :)





          share









          $endgroup$













            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "557"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Remus Raphael is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f44317%2fhow-to-select-random-data-for-2-different-recommender-systems%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0












            $begingroup$

            Welcome @Remus Raphael :) - Your approach is a sound option.



            More specifically, if a density-based algorithm was already working for you, I'd recommend the HDBSCAN clustering algo, which should have a better performance and has a unique built-in cluster validation (based on the DBCV algorithm).



            Then your general pipe line could be:




            1. An optional pre-processing

            2. An optional NLP / TFIDF for meaningful text features

            3. An optional dimensionality reduction (I found TSNE and TruncatedSVD to
              work nicely with HDBSCAN with textual processing)

            4. HDBSCAN tuning for different params and distance metrics

            5. Finally, when you're satisfied with the clustering quality - you can simply start with the 2 largest clusters for your AB testing


            I'd love to hear you feedback on your actual data :)





            share









            $endgroup$


















              0












              $begingroup$

              Welcome @Remus Raphael :) - Your approach is a sound option.



              More specifically, if a density-based algorithm was already working for you, I'd recommend the HDBSCAN clustering algo, which should have a better performance and has a unique built-in cluster validation (based on the DBCV algorithm).



              Then your general pipe line could be:




              1. An optional pre-processing

              2. An optional NLP / TFIDF for meaningful text features

              3. An optional dimensionality reduction (I found TSNE and TruncatedSVD to
                work nicely with HDBSCAN with textual processing)

              4. HDBSCAN tuning for different params and distance metrics

              5. Finally, when you're satisfied with the clustering quality - you can simply start with the 2 largest clusters for your AB testing


              I'd love to hear you feedback on your actual data :)





              share









              $endgroup$
















                0












                0








                0





                $begingroup$

                Welcome @Remus Raphael :) - Your approach is a sound option.



                More specifically, if a density-based algorithm was already working for you, I'd recommend the HDBSCAN clustering algo, which should have a better performance and has a unique built-in cluster validation (based on the DBCV algorithm).



                Then your general pipe line could be:




                1. An optional pre-processing

                2. An optional NLP / TFIDF for meaningful text features

                3. An optional dimensionality reduction (I found TSNE and TruncatedSVD to
                  work nicely with HDBSCAN with textual processing)

                4. HDBSCAN tuning for different params and distance metrics

                5. Finally, when you're satisfied with the clustering quality - you can simply start with the 2 largest clusters for your AB testing


                I'd love to hear you feedback on your actual data :)





                share









                $endgroup$



                Welcome @Remus Raphael :) - Your approach is a sound option.



                More specifically, if a density-based algorithm was already working for you, I'd recommend the HDBSCAN clustering algo, which should have a better performance and has a unique built-in cluster validation (based on the DBCV algorithm).



                Then your general pipe line could be:




                1. An optional pre-processing

                2. An optional NLP / TFIDF for meaningful text features

                3. An optional dimensionality reduction (I found TSNE and TruncatedSVD to
                  work nicely with HDBSCAN with textual processing)

                4. HDBSCAN tuning for different params and distance metrics

                5. Finally, when you're satisfied with the clustering quality - you can simply start with the 2 largest clusters for your AB testing


                I'd love to hear you feedback on your actual data :)






                share











                share


                share










                answered 3 mins ago









                morkmork

                26413




                26413






















                    Remus Raphael is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Remus Raphael is a new contributor. Be nice, and check out our Code of Conduct.













                    Remus Raphael is a new contributor. Be nice, and check out our Code of Conduct.












                    Remus Raphael is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Data Science Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f44317%2fhow-to-select-random-data-for-2-different-recommender-systems%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to label and detect the document text images

                    Vallis Paradisi

                    Tabula Rosettana