<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Measures for Combining Accuracy and Time for Meta- learning</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Salisu Mamman Abdulrahman</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pavel Brazdil</string-name>
          <email>pbrazdil@inescporto.pt</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>FEP, University of Porto</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>LIAAD Inesc Tec</institution>
          ,
          <addr-line>Porto</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>1 The vast majority of studies in meta-learning uses only few performance measures when characterizing different machine learning algorithms. The measure Adjusted Ratios of Ratio (ARR) addresses the problem of how to evaluate the quality of a model based on the accuracy and training time. Unfortunately, this measure suffers from a shortcoming that is described in this paper. A new solution is proposed and it is shown that the proposed function satisfies the criterion of monotonicity, unlike ARR.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>The major reason why data mining has attracted a great deal of
attention in the information industry and in society as a whole in
recent years is due to the wide availability of huge amounts of data
and the imminent need for turning such data into useful information
and knowledge. The information and knowledge gained can be used
for applications ranging from market analysis, fraud detection,
customer retention to production control and science exploration.</p>
      <p>Data mining tools such as Weka, Knime, and RapidMiner contain
hundreds of operators covering a wide range of data analysis tasks,
but unfortunately provide only limited advice on how to select the
right method according to the nature of the problem under analysis.</p>
      <p>
        To alleviate these problems, different systems have been developed
that “intelligently” help users to analyze their data. The goal of
Metalearning systems is to help the user by providing some guidance [
        <xref ref-type="bibr" rid="ref1 ref2">1,
2, 3</xref>
        ]. This is done by suggesting a particular algorithm or
operation(s) (e.g. application of particular preprocessing operation or
classification algorithm) to the user that would lead to good
performance.
      </p>
      <p>The vast majority of studies in meta-learning uses only few
performance measures when characterizing different machine
learning algorithms. Regards classification, for instance, one
common measure is predictive accuracy. Other researchers have
used also AUC, area under the ROC curve, or else precision, recall
and F1. What is common to all these measures is the higher the
value, the better. Costs of operations, and in particular training time,
are different though, as the lower the value, the better.</p>
      <p>
        An aggregate metric that combine both accuracy and time as metric
was presented in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], ARR, the adjusted ratio of ratios, which allows
the user to add more emphasis either on the predictive accuracy or on
the training time. This measure suffers however, from a shortcoming,
which is described in the next section.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2 RANKING BASED ON ACCURACY AND</title>
    </sec>
    <sec id="sec-3">
      <title>TIME</title>
      <p>
        The Adjusted Ratio of Ratios (ARR) measure aggregates information
concerning accuracy and time. It can be seen as an extension of the
success rate ratios (SRR) method. This method was presented in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]
together with two other basic measures, average ranks (AR) and
where
      </p>
      <p>represent the success rate and time of algorithm
on dataset , respectively. The term
is the ratio of
success rates which can be seen as a measure of the advantage of
algorithm over algorithm (i.e., a benefit). The equivalent ratio
for time,</p>
      <p>, can be seen as a measure of the disadvantage of
algorithm over algorithm (i.e., a cost). Thus, the authors have
taken the ratio of the benefit and the cost, obtaining thus a measure
of the overall quality of algorithm .</p>
      <p>However, we note that time ratios have, in general, a much wider
range of possible values than success rate ratios. If a simple time
ratio were used it would dominate the ratio of ratios. This effect can
be controlled by re-scaling using
which provide a
measure of the order of magnitude of the ratio. The relative
importance between accuracy and time is taken into account by
multiplying this expression by the AccD parameter. This parameter is
provided by the user and represents the amount of accuracy he/she is
willing to trade for a 10 times speedup or slowdown. For example,
AccD = 10% means that the user is willing to trade 10% of accuracy
for 10 times speedup/slowdown. Finally, the value of 1 is added to
to yield values that vary around 1, as happens with the
success rate ratio.</p>
      <p>The ARR should ideally be monotonically increasing. Higher
success rate ratios should lead to higher values of ARR. Higher time
ratios should lead to lower values of ARR. The overall effect of
combining the two should again be monotonic.</p>
      <p>We have decided to verify whether this property can be verified on
data. We have fixed the value of SRR to 1 and varied the time ratio
from very small values (2-20) to very high values (220) and calculated
the ARR for three different values of AccD (0.2, 0.3 and 0.7). The
result can be seen in the plot in Fig. 1. The horizontal axis shows the
log of the time ratio (logRT). The vertical axis shows the ARR value.
As can be seen, the resulting ARR function is not monotonic and
even approaching infinity at some point. Obviously, this can lead to
incorrect rankings provided by the meta-learner. However, what is
even more worrying is that this can affect the evaluation results. In
the next section, we propose a solution to this problem.
3</p>
    </sec>
    <sec id="sec-4">
      <title>OUR PROPOSED SOLUTION</title>
      <p>When devising a new solution we did not wish to change the
overall philosophy underlying ARR. We believe that it is indeed a
good idea to work with ratios, as absolute numbers do not carry
much meaning.
The accuracy of 90% can be considered good in one situation, but
very bad in another. After some reflection, we have realized that the
problem lies in the way how the time ratio has been re-scaled. So, we
considered another way of re-scaling, which does not use log, but
nth root instead, where n is a parameter. The proposed function is
referred to as A3R and is defined as follows:
As Fig. 2 shows, this function is monotonic. The higher the A3R, the
better.
Taking n-th root in the denominator of eq.(2) enables to rescale the
ratio of times. The higher the value of n, the greater the rescaling. So,
for instance, if one algorithm is 10 slower than another, the ratio is
10. Taking for 8-th (2nd) root of this will decrease it to 1.33 (3.16). If
the ratio were 0.1 this would result in 0.74 (0.31). All numbers get
closer to 1 after rescaling.</p>
      <p>The change from ARR to A3R is important, as we wish to
recalculate many meta-learning experiments and consider both
accuracy ratios (and possibly AUC ratios) together with time ratios,
suitably rescaled.</p>
      <p>To understand the relationship between the success rate ratios
(SRR) and time ratios (RT), we have constructed iso-A3R curves
(Fig.3). The horizontal axis plots logRT in an increasing order of
time rate ratios. Thus negative values on the left characterize fast
algorithms, while the positive values on the right characterize slow
ones. The vertical axis shows the success rate ratios (SRR). Each
curve shows the values of A3R where the values are constant. The
blue (red, green) curve represents situations where A3R is 0.9 (1.0,
1.1). As the ratio of times decreases (i.e. the algorithm is faster), it is
sufficient to have lower values of the success rate ratio (SRR) to
obtain the same value of A3R.</p>
    </sec>
    <sec id="sec-5">
      <title>FUTURE PLANS</title>
      <p>
        We intend to improve the methods presented in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] which rely on
relatively pairwise comparison involving two algorithms. We plan to
upgrade this work by considering the information concerning both
accuracy (or AUC) ratios and time ratios. Hence, the new function
proposed will be very useful.
      </p>
      <p>
        Besides, another challenge is that the new set-up would use many
more algorithms (in the order of 100’s) than in previous studies. We
will exploit the OpenML [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] database in this process and
collaboration is underway with U.Leiden on running some of the
experiments and re-using the results. Considering that the number of
algorithms is high, we need to re-think the method based on pairwise
comparisons.
      </p>
      <p>
        Furthermore, we plan to use the method based on sampling
landmarks, as in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. To simplify the whole procedure, we will
probably use a fixed set of samples, rather than using some dynamic
sampling strategy, as proposed in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Still, we need to evaluate what
the best number of samples is from the benefit-cost perspective.
5
      </p>
    </sec>
    <sec id="sec-6">
      <title>CONCLUSION</title>
      <p>We have presented a new measure A3R for evaluating the
performance of algorithms that considers both accuracy and time
ratios suitably re-scaled. We have shown that this measure satisfies
the criterion of monotonicity, unlike the previous version ARR. We
have discussed the usage of A3R in further experiments on
metalearning.</p>
      <p>This work is funded (or part-funded) by the ERDF – European
Regional Development Fund through the COMPETE Programme
(operational programme for competitiveness) and by National Funds
through the FCT – Fundação para a Ciência e a Tecnologia
(Portuguese Foundation for Science and Technology) within project
«FCOMP - 01-0124-FEDER-022701»</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1] [3]
          <string-name>
            <given-names>P.</given-names>
            <surname>Brazdil</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Giraud-Carrier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Soares</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Vilalta</surname>
          </string-name>
          , Metalearning: Applications to Data Mining, Springer,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Kalousis</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          (
          <year>2002</year>
          ).
          <article-title>Algorithm selection via meta-learning</article-title>
          .
          <source>PhD Thesis</source>
          . University of Geneva.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Gama</surname>
            ,
            <given-names>J. and P.</given-names>
          </string-name>
          <string-name>
            <surname>Brazdil</surname>
          </string-name>
          (
          <year>1995</year>
          ).
          <article-title>Characterization of classification algorithms</article-title>
          .
          <source>Lecture Notes in Computer Science</source>
          <volume>990</volume>
          ,
          <fpage>189</fpage>
          -
          <lpage>200</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Brazdil</surname>
          </string-name>
          , P. B.,
          <string-name>
            <surname>C. Soares</surname>
          </string-name>
          , and Joaquin Pinto Da Costa.
          <article-title>"Ranking learning algorithms: Using IBL and meta-learning on accuracy and time results</article-title>
          .
          <source>" Machine Learning 50.3</source>
          (
          <year>2003</year>
          ):
          <fpage>251</fpage>
          -
          <lpage>277</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Leite</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          , and
          <string-name>
            <given-names>P.</given-names>
            <surname>Brazdil</surname>
          </string-name>
          .
          <article-title>"Active Testing Strategy to Predict the Best Classification Algorithm via Sampling and Metalearning."</article-title>
          <source>ECAI</source>
          .
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Vanschoren</surname>
            ,
            <given-names>J.. "</given-names>
          </string-name>
          <article-title>The experiment database for machine learning</article-title>
          .
          <source>" 5th Planning</source>
          to Learn Workshop, WS28 at ECAI-
          <year>2012</year>
          .
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>