Abstract
Obtaining relevant information from the vast amount of data generated by interactions in a market or, in general, from a dyadic dataset, is a broad problem of great interest both for industry and academia. Also, the interpretability of machine learning algorithms is becoming increasingly relevant and even becoming a legal requirement, all of which increases the demand for such algorithms. In this work we propose a quality measure that factors in the interpretability of results. Additionally, we present a grouping algorithm on dyadic data that returns results with a level of interpretability selected by the user and capable of handling large volumes of data. Experiments show the accuracy of the results, on par with traditional methods, as well as its scalability.
1. Introduction
Data obtained by monitoring a marketplace are mainly dyadic [1], that is, they represent the relation between two entities (for instance user vs products, buyers vs sellers or any other pairing of agents). This sort of data are also prevalent in common problems such as recommender systems [2], computational linguistics, information retrieval and preference learning [3], besides being used in more specific problems like automatic test grading [4].
A traditional problem to be solved with this kind of data consists on obtaining groups of entities that show a similar behavior. Market segmentation is the process of performing this analysis on market data [5]. The resulting grouping is coveted by companies since it offers valuable insight, but it is hard to obtain.
Also, having results that are easily interpretable by managers is essential. Interpretability is given by a collection of characteristics that promote ease of understanding of a model [6] and can be achieved by providing transparent models and algorithms or by offering additional explanations for the outputs of the model.
The algorithm introduced in this work aims to obtain informative and easy to interpret data for human supervisors. It is implemented in the Apache Spark [7] distributed framework, which enables the analysis of large amounts of data in a reasonable time.
2. Proposal
Given a dataset containing data showing the interactions between two entities and in which each data point has the form with f being a utility function, a grouping on one of the entities can be defined as a set of m groups containing all the elements in . The aptness of this grouping can be measured as the homogeneity of the value v across the elements in each [8]. Using this measure, we can define the weighted entropy of a grouping as
where represents the Shannon entropy of x.
Since each is a defined by a set of variables, each is defined by giving a range for those variables. We can obtain a measure of the quality of by adding a factor that measures its interpretability. We do that by adding the number of such variables needed to define each group .
where represents the number of variables needed to characterize x and is a hyperparameter that enables the user to manage the balance between accuracy and ease of understanding.
The proposed algorithm takes a dataset as input and returns a grouping that maximizes . It does so by constructing a decision tree over the variables in which defines the grouping .
| Algorithm 1: Grouping algorithm. |
![]() |
3. Results
Experiments performed on a large real world dataset containing information about readers and news items show that the proposed algorithm obtains a grouping consisting of 18 groups with a weighted entropy similar to that of the grouping with 100 elements obtained by Kmeans with .
Additional experiments show that the Apache Spark implementation of the algorithm shows almost linear scalability when adding more computation nodes.
Acknowledgements
This work has been partially funded by the Ministerio de Economía y Competitividad (research projects TIN 2015-65069-C2, both 1-R and 2-R and “Red Española de Big Data y Análisis de datos escalable”, TIN2016-82013-REDT), by the Xunta de Galicia (GRC2014/035 y ED431G/01) and by the European Union Regional Development Funds.
The authors want to thank Fundación Pública Galega Centro Tecnolóxico de Supercomputación de Galicia (CESGA) for the use of their computing resources.
Conflicts of Interest
The authors declare no conflict of interest. The founding sponsors had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, and in the decision to publish the results.
References
- Hofmann, T.; Puzicha, J.; Jordan, M.I. Learning from dyadic data. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 1999; pp. 466–472. [Google Scholar]
- Koren, Y.; Bell, R.; Volinsky, C. Matrix factorization techniques for recommender systems. Computer 2009, 42, 30–37. [Google Scholar] [CrossRef] [Scilit]
- Luaces, O.; Díez, J.; Alonso-Betanzos, A.; Troncoso, A.; Bahamonde, A. A factorization approach to evaluate open-response assignments in MOOCs using preference learning on peer assessments. Knowl. Based Syst. 2015, 85, 322–328. [Google Scholar] [CrossRef] [Scilit]
- Luaces, O.; Díez, J.; Alonso-Betanzos, A.; Troncoso, A.; Bahamonde, A. Content-based methods in peer assessment of open-response questions to grade students as authors and as graders. Knowl. Based Syst. 2017, 117, 79–87. [Google Scholar] [CrossRef] [Scilit]
- Kotler, P.; Cox, K.K. Marketing Management and Strategy; Prentice Hall: Upper Saddle River, NJ, USA, 1980. [Google Scholar]
- Lipton, Z.C. The mythos of model interpretability. arXiv 2016, arXiv:1606.03490. [Google Scholar]
- Zaharia, M.; Xin, R.S.; Wendell, P.; Das, T.; Armbrust, M.; Dave, A.; Meng, X.; Rosen, J.; Venkataraman, S.; Franklin, M.J.; et al. Apache spark: A unified engine for big data processing. Commun. ACM 2016, 59, 56–65. [Google Scholar] [CrossRef] [Scilit]
- Díez, J.; Pérez, P.; Luaces, O.; Bahamonde, A. Readers Segmentation According to their Preferences to Click Promoted Links in Digital Publications; Technical Report; Universidad de Oviedo: Oviedo, Spain, 2018. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
