<!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>FCA-based Approach to Machine Learning?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dmitry V. Vinogradov</string-name>
          <email>vinogradov.d.w@gmail.com</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>Federal Research Center for Computer Science and Control, Russian Academy of Science</institution>
          ,
          <addr-line>Moscow 119333</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Russian State University for Humanities, Intelligent Robotics Laboratory</institution>
          ,
          <addr-line>Moscow 125993</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The main result of the paper provides a lower bound on su cient number of randomly generated formal concepts to correctly predict all important positive test examples with given con dence level. The technique coincides with modern approach to the famous theorem of V.N. Vapnik and A.Ya. Chervonenkis. However the situation is dual to the classical one: in our case test examples correspond to xed subsets and probabilistically generated formal concepts must fall into selected areas of su cient large volume.</p>
      </abstract>
      <kwd-group>
        <kwd>formal context</kwd>
        <kwd>formal concept</kwd>
        <kwd>Boolean hypercube</kwd>
        <kwd>lower half-space</kwd>
        <kwd>prediction</kwd>
        <kwd>con dence</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>The key question of the approach is how to determine su cient number
of hypotheses to predict target class with given level of con dence. The paper
proposes an answer to this question.</p>
      <p>Used technique mostly coincides with modern approach to the famous
theorem of V.N. Vapnik and A.Ya. Chervonenkis. However the situation is dual to
the classical one: in our case test examples correspond to xed subsets and
probabilistically generated formal concepts must fall into selected areas of su cient
large volume. The general approach of Vapnik-Chervonenkis uses the \Occam
razor" principle where no assumption on selected hypothesis made except to its
correctness on all training examples. Hence a hypothesis coincides with area of
objects space. To reject a bad hypothesis is needed to randomly pick training
objects from the corresponding subset.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Background</title>
      <p>2.1</p>
      <p>Basic de nitions and facts of FCA
Here we recall some basic de nitions and facts of Formal Concept Analysis
(FCA) [1].</p>
      <p>A ( nite) context is a triple (G; M; I) where G and M are nite sets and
I G M . The elements of G and M are called objects and attributes,
respectively. As usual, we write gIm instead of hg; mi 2 I to denote that object
g has attribute m.</p>
      <p>For A G and B M , de ne</p>
      <p>
        A0 = fm 2 M j8g 2 A(gIm)g;
B0 = fg 2 Gj8m 2 B(gIm)g;
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
so A0 is the set of attributes common to all the objects in A and B0 is the set of
objects possesing all the attributes in B. The maps ( )0 : A 7! A0 and ( )0 : B 7!
      </p>
      <sec id="sec-2-1">
        <title>B0 are called derivation operators (polars) of the context (G; M; I).</title>
        <p>A concept of the context (G; M; I) is de ned to be a pair (A; B), where
A G, B M , A0 = B, and B0 = A. The rst component A of the concept
(A; B) is called the extent of the concept, and the second component B is
called its intent. The set of all concepts of the context (G; M; I) is denoted by
B(G; M; I).</p>
        <p>Let (G; M; I) be a context. For concepts (A1; B1) and (A2; B2) in B(G; M; I)
we write (A1; B1) (A2; B2), if A1 A2. The relation is a partial order on
B(G; M; I).</p>
        <p>A subset A G is the extent of some concept if and only if A00 = A in which
case the unique concept of which A is the extent is (A; A0). Similarly, a subset
B of M is the intent of some concept if and only if B00 = B and then the unique
concept with intent B is (B0; B).</p>
        <p>Proposition 1. [1] Let (G; M; I) be a context. Then (B(G; M; I); ) is a lattice
with join and meet given by
j2J
j2J
_ (Aj; Bj) = (( [ Aj)00; \ Bj);
^ (Aj; Bj) = ( \ Aj; ( [ Bj)00);
j2J
j2J</p>
        <p>j2J
j2J
Lemma 2. Let (G; M; I) be a context, (A1; B1); (A2; B2) 2 B(G; M; I), g 2 G,
and m 2 M . Then</p>
        <p>(A1; B1)
(A1; B1)</p>
        <p>(A2; B2) ) CbO((A1; B1); g)
(A2; B2) ) CbO((A1; B1); m)</p>
        <p>CbO((A2; B2); g);
CbO((A2; B2); m):</p>
        <p>Now we represent the coupling Markov chain algorithm that is a core of
probabilistic approach to machine learning based on FCA (VKF-method).
Corollary 1. For context (G; M; I) the lattice (B(G; M; I); ) has (M 0; M ) as
the bottom element and (G; G0) as the top element. In other words, for all
(A; B) 2 B(G; M; I) the following inequalities hold:
(M 0; M )
(A; B)</p>
        <p>(G; G0):
g 2 A ) CbO((A; B); g) = (A; B);
m 2 B ) CbO((A; B); m) = (A; B);</p>
        <p>g 2= A ) (A; B) &lt; CbO((A; B); g);
m 2= B ) CbO((A; B); m) &lt; (A; B):
De nition 1. For (A; B) 2 B(G; M; I), g 2 G, and m 2 M de ne
CbO((A; B); g) = ((A [ fgg)00; B \ fgg0);</p>
        <p>CbO((A; B); m) = (A \ fmg0; (B [ fmg)00):
so CbO((A; B); g) is equal to (A; B) _ (fgg00; fgg0) and CbO((A; B); m) is equal
to (A; B) ^ (fmg0; fmg00).</p>
        <p>We call these operations CbO because the rst one is used in Close-by-One
(CbO) Algorithm to generate all the elements of B(G; M; I), see [2] for details.</p>
        <p>Useful properties of introduced operations are summarized in the following</p>
      </sec>
      <sec id="sec-2-2">
        <title>Lemmas.</title>
        <p>
          Lemma 1. Let (G; M; I) be a context, (A; B) 2 B(G; M; I), g 2 G, and m 2 M .
Then
(
          <xref ref-type="bibr" rid="ref3">3</xref>
          )
(
          <xref ref-type="bibr" rid="ref4">4</xref>
          )
        </p>
        <p>
          tu
(
          <xref ref-type="bibr" rid="ref5">5</xref>
          )
        </p>
        <p>
          tu
(
          <xref ref-type="bibr" rid="ref6">6</xref>
          )
(
          <xref ref-type="bibr" rid="ref7">7</xref>
          )
(
          <xref ref-type="bibr" rid="ref8">8</xref>
          )
(9)
(10)
(11)
(12)
(13)
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Data: context (G; M; I), external function CbO( ; )</title>
        <p>Result: random concept (A; B) 2 B(G; M; I)
X := G t M ; (A; B) := (M 0; M ); (C; D) = (G; G0);
while ((A 6= C) _ (B 6= D)) do
select random element x 2 X;
(A; B) := CbO((A; B); x); (C; D) := CbO((C; D); x);
end</p>
      </sec>
      <sec id="sec-2-4">
        <title>Algorithm 1: Coupling Markov chain The order on two concepts (A; B) (C; D) at any intermediate step of the while loop of Algorithm 1 follows from Lemma 2.</title>
        <p>2.2</p>
        <p>Probabilistic algorithms for FCA-based machine learning
Now we represent the general scheme of machine learning based on FCA
(VKFmethod). The reader can learn the classical deterministic FCA-based approach
to machine learning from Kuznetsov [4]. Our technique uses probabilistic
Algorithm 1 for computing a random subset of formal concepts.</p>
        <p>As usual, there are two sets of objects called the training and test samples,
respectively.</p>
        <p>From positive examples of the training sample the program generates a formal
context (G+; M; I). The negative examples form the set G of counter-examples
(obstacles).</p>
      </sec>
      <sec id="sec-2-5">
        <title>Set G of examples to predict the target class contains all test objects.</title>
        <p>After that the program applies the coupling Markov chain algorithm 1 to
generate a random formal concept (A; B) 2 B(G+; M; I). The program saves
the concept (A; B), if there is no obstacle o 2 G such that B o0.</p>
      </sec>
      <sec id="sec-2-6">
        <title>Data: number N of concepts to generate</title>
      </sec>
      <sec id="sec-2-7">
        <title>Result: random sample S of formal concepts without obstacles</title>
        <p>G+ := (+)-examples, M := attributes; I G+ M is a formal context
for (+)-examples;
G := (-)-examples; S := ;; i := 0;
while (i &lt; N ) do</p>
        <p>Generate concept hA; Bi by Algorithm 1; hasObstacle := false;
for (o 2 G ) do
if (B o0) then</p>
        <p>hasObstacle := true;
end
end
if (hasObstacle = false) then</p>
        <p>S := S [ fhA; Big;
i := i + 1;
end
end</p>
      </sec>
      <sec id="sec-2-8">
        <title>Algorithm 2: Inductive generalization</title>
        <p>Condition (B o0) of Algorithm 2 means the inclusion of intent B of concept
hA; Bi into the fragment (attributes subset) of counter-example o.</p>
        <p>If a concept avoids all such obstacles it is added to the result set of all the
concepts without obstacles.</p>
        <p>We replace a time-consuming deterministic algorithm (for instance,
"Closeby-One") for generation of all concepts by the probabilistic one to randomly
generate the prescribed number of concepts.</p>
        <p>The goal of Markov chain approach is to select a random sample of formal
concepts without computation of the (possibly exponential size) set B(G; M; I)
of all the concepts.</p>
        <p>Finally, machine learning program predicts the target class of test examples
and compares the results of prediction with the original target value.</p>
      </sec>
      <sec id="sec-2-9">
        <title>Data: random sample S of concepts, list of ( )-objects</title>
      </sec>
      <sec id="sec-2-10">
        <title>Result: prediction of target class of ( )-examples X := ( )-examples;</title>
        <p>for (o 2 X) do</p>
        <p>P redictP ositively(o) := false;
for (hA; Bi 2 S+) do
if (B o0) then</p>
        <p>P redictP ositively(o) := true;
end
end
end</p>
      </sec>
      <sec id="sec-2-11">
        <title>Algorithm 3: Prediction of target class by analogy</title>
        <p>3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Main result</title>
      <sec id="sec-3-1">
        <title>Algorithm 3 gives the following</title>
        <p>De nition 2. Object o with fragment (attributes subset) o0
predicted by concept hA; Bi if B o0.</p>
        <p>M is positively</p>
        <p>If there are n = jM j attributes then intent B of any concept hA; Bi is a point
of n-hypercube f0; 1gn.</p>
        <p>De nition 3. Lower half-space H#(o) corresponding to object o with
fragment o0 M is de ned by linear inequality xj1 + : : : + xjk &lt; 12 , where M n o0 =
fmj1 ; : : : ; mjk g. The empty lower half-space 0 &lt; 21 (equals to f0; 1gn) is allowed
too and corresponds to o0 = M .</p>
        <sec id="sec-3-1-1">
          <title>Remark that cardinality of all possible lower half-spaces is equal to 2n.</title>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>Key observation is</title>
        <p>Lemma 3. Object o is positively predicted if and only if lower half-space H#(o)
contains a fragment B of at least one concept hA; Bi.</p>
        <p>De nition 4. Object o is called "-important if probability of occurrence of
random concept hA; Bi with B 2 H#(o) is greater than ".</p>
        <p>A family of concepts is called "-net if for each "-important object o there is
at least one its member hA; Bi with B 2 H#(o).</p>
        <p>Now we are interested only in 1-st type error probability (positive prediction
fails): we need to determine a number N (depending on " and ) such that a
random sample of cardinality N forms "-net with probability greater than 1 .
Lemma 4. For all " with l &gt; 2" and for any independent random samples S1
and S2 of concepts of cardinality l the following inequality holds:
PlfS1 : 9H 2 (Sub #) [S1 \ H = ;; PH &gt; "]g</p>
        <p>2 P2lfS1S2 : 9H 2 (Sub #) [S1 \ H = ;; jS2 \ Hj &gt; " l=2]g:
Lemma 5. For all " and for any independent random samples S1 and S2 of
concepts of cardinality l the following inequality holds:</p>
        <p>P2lfS1S2 : 9H 2 (Sub #) [S1 \ H = ;; jS2 \ Hj &gt; " l=2]g
Theorem 1. For n = jM j and for any " &gt; 0 and 1 &gt;
concepts of cardinality</p>
        <p>N
2 (n + 1)</p>
        <p>2 log2
"</p>
        <p>mSub#(2l) 2 "l=2:
&gt; 0 random sample of
2 "N=2
with respect to N to obtain the
forms "-net with probability &gt; 1</p>
        <p>.</p>
        <sec id="sec-3-2-1">
          <title>Proof. Solve inequality 2 2n</title>
          <p>estimate.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Conclusions</title>
      <p>In this paper we provided a lower bound on su cient number of randomly
generated formal concepts to correctly predict all important positive test examples
with given con dence level. The technique mostly coincides with modern
approach to the famous theorem of V.N. Vapnik and A.Ya. Chervonenkis, but the
situation is dual to the classical one.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgements.</title>
      <p>The author would like to thank Prof. Victor K. Finn and his colleagues at
Federal Research Center for Computer Science and Control of Russian Academy of</p>
      <sec id="sec-5-1">
        <title>Science for support and helpful discussions. The author is grateful to anonymous reviewers for improving the style of presentation.</title>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Ganter</surname>
          </string-name>
          , Bernard and Wille, Rudolf.
          <source>Formal Concept Analysis: Mathematical Foundations</source>
          , Springer-Verlag,
          <year>1999</year>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Kuznetsov</surname>
            ,
            <given-names>S.O.:</given-names>
          </string-name>
          <article-title>A Fast Algorithm for Computing all Intersections of Objects in a Finite Semi-Lattice</article-title>
          .
          <source>Autom. Doc. Math. Linguist. 27:5</source>
          ,
          <fpage>11</fpage>
          -
          <lpage>21</lpage>
          (
          <year>1993</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Kuznetsov</surname>
            ,
            <given-names>S.O.</given-names>
          </string-name>
          <article-title>Complexity of Learning in Concept Lattices from Positive and Negative Examples</article-title>
          . Discrete Applied Mathematics, no.
          <issue>142</issue>
          (
          <issue>1</issue>
          -
          <fpage>3</fpage>
          ). {
          <year>2004</year>
          . { pp.
          <volume>111</volume>
          {
          <fpage>125</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Kuznetsov</surname>
            ,
            <given-names>S.O.</given-names>
          </string-name>
          <article-title>Machine Learning and Formal Concept Analysis</article-title>
          .
          <source>Proc. 2nd International Conference on Formal Concept Analysis: Springer LNAI</source>
          , Vol.
          <volume>2961</volume>
          . {
          <year>2004</year>
          . { pp.
          <fpage>287</fpage>
          -
          <lpage>312</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Makhalova</surname>
            ,
            <given-names>T.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuznetsov</surname>
            ,
            <given-names>S.O.</given-names>
          </string-name>
          <article-title>On Over tting of Classi ers Making a Lattice</article-title>
          .
          <source>Proc. 14th International Conference on Formal Concept Analysis: Springer LNAI</source>
          , Vol.
          <volume>10308</volume>
          . {
          <year>2017</year>
          . { pp.
          <fpage>184</fpage>
          -
          <lpage>197</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Vinogradov</surname>
            ,
            <given-names>D.V.</given-names>
          </string-name>
          <article-title>A Markov Chain Approach to Random Generation of Formal Concepts</article-title>
          .
          <source>Proceedings of the Workshop Formal Concept Analysis Meets Information Retrieval (FCAIR</source>
          <year>2013</year>
          ):
          <source>CEUR Workshop Proceedings</source>
          , Vol.
          <volume>977</volume>
          . {
          <year>2013</year>
          . { p.
          <volume>127</volume>
          {
          <fpage>133</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Vinogradov</surname>
            ,
            <given-names>D.V.</given-names>
          </string-name>
          <string-name>
            <surname>Accidental</surname>
          </string-name>
          <article-title>Formal Concepts in the Presence of Counterexamples</article-title>
          .
          <source>Proceedings of International Workshop on Formal Concept Analysis for Knowledge Discovery (FCA4KD</source>
          <year>2017</year>
          ):
          <source>CEUR Workshop Proceedings</source>
          , Vol.
          <year>1921</year>
          . {
          <year>2017</year>
          . { p.
          <volume>104</volume>
          {
          <fpage>112</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Vorontsov</surname>
            ,
            <given-names>K.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ivahnenko</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <article-title>Tight Combinatorial Generalization Bounds for Threshold Conjunction Rules</article-title>
          .
          <source>Proceedings of 4th International Conference on Pattern Recognition and Machine Intelligence</source>
          . {
          <year>2011</year>
          . { p.
          <fpage>66</fpage>
          -
          <lpage>73</lpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>