Download ebooks file Introduction to Algorithms for Data Mining and Machine Learning Xin-She Yang all chapters
Download ebooks file Introduction to Algorithms for Data Mining and Machine Learning Xin-She Yang all chapters
https://ebookmass.com
https://ebookmass.com/product/introduction-to-
algorithms-for-data-mining-and-machine-learning-
xin-she-yang/
https://ebookmass.com/product/introduction-to-algorithms-for-data-
mining-and-machine-learning-yang/
testbankdeal.com
https://ebookmass.com/product/fundamentals-of-machine-learning-for-
predictive-data-analytics-algorithms/
testbankdeal.com
https://ebookmass.com/product/machine-learning-for-signal-processing-
data-science-algorithms-and-computational-statistics-max-a-little/
testbankdeal.com
https://ebookmass.com/product/big-data-analytics-introduction-to-
hadoop-spark-and-machine-learning-raj-kamal/
testbankdeal.com
Machine Learning for Biometrics: Concepts, Algorithms and
Applications (Cognitive Data Science in Sustainable
Computing) Partha Pratim Sarangi
https://ebookmass.com/product/machine-learning-for-biometrics-
concepts-algorithms-and-applications-cognitive-data-science-in-
sustainable-computing-partha-pratim-sarangi/
testbankdeal.com
https://ebookmass.com/product/machine-learning-algorithms-for-signal-
and-image-processing-suman-lata-tripathi/
testbankdeal.com
Introduction to
Algorithms for Data Mining
and Machine Learning
Introduction to Algorithms for Data Mining and
Machine Learning
This page intentionally left blank
Introduction to
Algorithms for Data
Mining and Machine
Learning
Xin-She Yang
Middlesex University
School of Science and Technology
London, United Kingdom
Academic Press is an imprint of Elsevier
125 London Wall, London EC2Y 5AS, United Kingdom
525 B Street, Suite 1650, San Diego, CA 92101, United States
50 Hampshire Street, 5th Floor, Cambridge, MA 02139, United States
The Boulevard, Langford Lane, Kidlington, Oxford OX5 1GB, United Kingdom
Copyright © 2019 Elsevier Inc. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying, recording, or any information storage and retrieval system, without
permission in writing from the publisher. Details on how to seek permission, further information about the
Publisher’s permissions policies and our arrangements with organizations such as the Copyright Clearance Center
and the Copyright Licensing Agency, can be found at our website: www.elsevier.com/permissions.
This book and the individual contributions contained in it are protected under copyright by the Publisher (other
than as may be noted herein).
Notices
Knowledge and best practice in this field are constantly changing. As new research and experience broaden our
understanding, changes in research methods, professional practices, or medical treatment may become necessary.
Practitioners and researchers must always rely on their own experience and knowledge in evaluating and using
any information, methods, compounds, or experiments described herein. In using such information or methods
they should be mindful of their own safety and the safety of others, including parties for whom they have a
professional responsibility.
To the fullest extent of the law, neither the Publisher nor the authors, contributors, or editors, assume any liability
for any injury and/or damage to persons or property as a matter of products liability, negligence or otherwise, or
from any use or operation of any methods, products, instructions, or ideas contained in the material herein.
ISBN: 978-0-12-817216-2
1 Introduction to optimization 1
1.1 Algorithms 1
1.1.1 Essence of an algorithm 1
1.1.2 Issues with algorithms 3
1.1.3 Types of algorithms 3
1.2 Optimization 4
1.2.1 A simple example 4
1.2.2 General formulation of optimization 7
1.2.3 Feasible solution 9
1.2.4 Optimality criteria 10
1.3 Unconstrained optimization 10
1.3.1 Univariate functions 11
1.3.2 Multivariate functions 12
1.4 Nonlinear constrained optimization 14
1.4.1 Penalty method 15
1.4.2 Lagrange multipliers 16
1.4.3 Karush–Kuhn–Tucker conditions 17
1.5 Notes on software 18
2 Mathematical foundations 19
2.1 Convexity 20
2.1.1 Linear and affine functions 20
2.1.2 Convex functions 21
2.1.3 Mathematical operations on convex functions 22
2.2 Computational complexity 22
2.2.1 Time and space complexity 24
2.2.2 Complexity of algorithms 25
2.3 Norms and regularization 26
2.3.1 Norms 26
2.3.2 Regularization 28
2.4 Probability distributions 29
2.4.1 Random variables 29
2.4.2 Probability distributions 30
vi Contents
3 Optimization algorithms 45
3.1 Gradient-based methods 45
3.1.1 Newton’s method 45
3.1.2 Newton’s method for multivariate functions 47
3.1.3 Line search 48
3.2 Variants of gradient-based methods 49
3.2.1 Stochastic gradient descent 50
3.2.2 Subgradient method 51
3.2.3 Conjugate gradient method 52
3.3 Optimizers in deep learning 53
3.4 Gradient-free methods 56
3.5 Evolutionary algorithms and swarm intelligence 58
3.5.1 Genetic algorithm 58
3.5.2 Differential evolution 60
3.5.3 Particle swarm optimization 61
3.5.4 Bat algorithm 61
3.5.5 Firefly algorithm 62
3.5.6 Cuckoo search 62
3.5.7 Flower pollination algorithm 63
3.6 Notes on software 64
Bibliography 163
Index 171
Visit https://ebookmass.com
now to explore a rich
collection of eBooks and enjoy
exciting offers!
About the author
Xin-She Yang obtained his PhD in Applied Mathematics from the University of Ox-
ford. He then worked at Cambridge University and National Physical Laboratory (UK)
as a Senior Research Scientist. Now he is Reader at Middlesex University London, and
an elected Bye-Fellow at Cambridge University.
He is also the IEEE Computer Intelligence Society (CIS) Chair for the Task Force
on Business Intelligence and Knowledge Management, Director of the International
Consortium for Optimization and Modelling in Science and Industry (iCOMSI), and
an Editor of Springer’s Book Series Springer Tracts in Nature-Inspired Computing
(STNIC).
With more than 20 years of research and teaching experience, he has authored
10 books and edited more than 15 books. He published more than 200 research pa-
pers in international peer-reviewed journals and conference proceedings with more
than 36 800 citations. He has been on the prestigious lists of Clarivate Analytics and
Web of Science highly cited researchers in 2016, 2017, and 2018. He serves on the
Editorial Boards of many international journals including International Journal of
Bio-Inspired Computation, Elsevier’s Journal of Computational Science (JoCS), In-
ternational Journal of Parallel, Emergent and Distributed Systems, and International
Journal of Computer Mathematics. He is also the Editor-in-Chief of the International
Journal of Mathematical Modelling and Numerical Optimisation.
This page intentionally left blank
Preface
Both data mining and machine learning are becoming popular subjects for university
courses and industrial applications. This popularity is partly driven by the Internet and
social media because they generate a huge amount of data every day, and the under-
standing of such big data requires sophisticated data mining techniques. In addition,
many applications such as facial recognition and robotics have extensively used ma-
chine learning algorithms, leading to the increasing popularity of artificial intelligence.
From a more general perspective, both data mining and machine learning are closely
related to optimization. After all, in many applications, we have to minimize costs,
errors, energy consumption, and environment impact and to maximize sustainabil-
ity, productivity, and efficiency. Many problems in data mining and machine learning
are usually formulated as optimization problems so that they can be solved by opti-
mization algorithms. Therefore, optimization techniques are closely related to many
techniques in data mining and machine learning.
Courses on data mining, machine learning, and optimization are often compulsory
for students, studying computer science, management science, engineering design, op-
erations research, data science, finance, and economics. All students have to develop
a certain level of data modeling skills so that they can process and interpret data for
classification, clustering, curve-fitting, and predictions. They should also be familiar
with machine learning techniques that are closely related to data mining so as to carry
out problem solving in many real-world applications. This book provides an introduc-
tion to all the major topics for such courses, covering the essential ideas of all key
algorithms and techniques for data mining, machine learning, and optimization.
Though there are over a dozen good books on such topics, most of these books are
either too specialized with specific readership or too lengthy (often over 500 pages).
This book fills in the gap with a compact and concise approach by focusing on the key
concepts, algorithms, and techniques at an introductory level. The main approach of
this book is informal, theorem-free, and practical. By using an informal approach all
fundamental topics required for data mining and machine learning are covered, and
the readers can gain such basic knowledge of all important algorithms with a focus
on their key ideas, without worrying about any tedious, rigorous mathematical proofs.
In addition, the practical approach provides about 30 worked examples in this book
so that the readers can see how each step of the algorithms and techniques works.
Thus, the readers can build their understanding and confidence gradually and in a
step-by-step manner. Furthermore, with the minimal requirements of basic high school
mathematics and some basic calculus, such an informal and practical style can also
enable the readers to learn the contents by self-study and at their own pace.
This book is suitable for undergraduates and graduates to rapidly develop all the
fundamental knowledge of data mining, machine learning, and optimization. It can
xii Preface
also be used by students and researchers as a reference to review and refresh their
knowledge in data mining, machine learning, optimization, computer science, and data
science.
Xin-She Yang
January 2019 in London
Acknowledgments
I would like to thank all my students and colleagues who have given valuable feedback
and comments on some of the contents and examples of this book. I also would like to
thank my editors, J. Scott Bentley and Michael Lutz, and the staff at Elsevier for their
professionalism. Last but not least, I thank my family for all the help and support.
Xin-She Yang
January 2019
This page intentionally left blank
Introduction to optimization
Contents
1.1 Algorithms
1 1
1.1.1 Essence of an algorithm 1
1.1.2 Issues with algorithms 3
1.1.3 Types of algorithms 3
1.2 Optimization 4
1.2.1 A simple example 4
1.2.2 General formulation of optimization 7
1.2.3 Feasible solution 9
1.2.4 Optimality criteria 10
1.3 Unconstrained optimization 10
1.3.1 Univariate functions 11
1.3.2 Multivariate functions 12
1.4 Nonlinear constrained optimization 14
1.4.1 Penalty method 15
1.4.2 Lagrange multipliers 16
1.4.3 Karush–Kuhn–Tucker conditions 17
1.5 Notes on software 18
This book introduces the most fundamentals and algorithms related to optimization,
data mining, and machine learning. The main requirement is some understanding of
high-school mathematics and basic calculus; however, we will review and introduce
some of the mathematical foundations in the first two chapters.
1.1 Algorithms
An algorithm is an iterative, step-by-step procedure for computation. The detailed
procedure can be a simple description, an equation, or a series of descriptions in
combination with equations. Finding the roots of a polynomial, checking if a natu-
ral number is a prime number, and generating random numbers are all algorithms.
Example 1
As an example, if x0 = 1 and a = 4, then we have
1 4
x1 = (1 + ) = 2.5. (1.2)
2 1
Similarly, we have
1 4 1 4
x2 = (2.5 + ) = 2.05, x3 = (2.05 + ) ≈ 2.0061, (1.3)
2 2.5 2 2.05
x4 ≈ 2.00000927, (1.4)
√
which is very close to the true value of 4 = 2. The accuracy of this iterative formula or algorithm
is high because it achieves the accuracy of five decimal places after four iterations.
The convergence is very quick if we start from different initial values such as
x0 = 10 and even x0 = 100. However, for an obvious reason, we cannot start with
x0 = 0 due to division by
√zero.
Find the root of x = a is equivalent to solving the equation
f (x) = x 2 − a = 0, (1.5)
which is again equivalent to finding the roots of a polynomial f (x). We know that
Newton’s root-finding algorithm can be written as
f (xk )
xk+1 = xk − , (1.6)
f (xk )
where f (x) is the first derivative or gradient of f (x). In this case, we have
f (x) = 2x. Thus, Newton’s formula becomes
(xk2 − a)
xk+1 = xk − , (1.7)
2xk
1.2 Optimization
V = πr 2 h. (1.12)
There are only two design variables r and h and one objective function S to be min-
imized. Obviously, if there is no capacity constraint, then we can choose not to build
the container, and then the cost of materials is zero for r = 0 and h = 0. However,
Introduction to optimization 5
the constraint requirement means that we have to build a container with fixed volume
V0 = πr 2 h = 10 m3 . Therefore, this optimization problem can be written as
πr 2 h = V0 = 10. (1.14)
To solve this problem, we can first try to use the equality constraint to reduce the
number of design variables by solving h. So we have
V0
h= . (1.15)
πr 2
Substituting it into (1.13), we get
S = 2πr 2 + 2πrh
V0 2V0
= 2πr 2 + 2πr 2 = 2πr 2 + . (1.16)
πr r
This is a univariate function. From basic calculus we know that the minimum or max-
imum can occur at the stationary point, where the first derivative is zero, that is,
dS 2V0
= 4πr − 2 = 0, (1.17)
dr r
which gives
V0 3 V0
r3 = , or r = . (1.18)
2π 2π
Thus, the height is
h V0 /(πr 2 ) V0
= = 3 = 2. (1.19)
r r πr
Random documents with unrelated
content Scribd suggests to you:
describit, dicens: Cum de Pictavis bellum sit et Andegavinis, Inque
die Martis fuit et Sancti Benedicti, Circa forte Caput Wultonnæ
contigit esse, Annus millenus tunc sexagesimus unus.”
That entry comprises all the direct information on the subject. The
Angevin monastic chronicles and Fulk Rechin do not mention it at all.
Neither do the Gesta Cons. in the right place; but they mix it up with
the war between Geoffrey Martel and William the Fat in 1033. By the
light of the Chron. S. Maxent., it seems possible to disentangle the
two stories. It even seems possible to make sense of a passage in
the Gesta which never can be sense as it stands, by understanding it
as referring to Geoffrey the Bearded instead of his uncle: “Willelmus
Pictavensium comes consulatum Sanctonicum suum esse volebat et
vi preoccupatum tenebat, quia patrui sui fuerat. Martellus eumdem
consulatum reclamabat quia avi sui fuerat, cujus heredes absque
liberis mortui erant; et ideo ad heredes sororis avi sui debere reverti
affirmabat” (Gesta Cons., Marchegay, Comtes, p. 126). This is the
story by which the Gesta-writer professes to explain the cause of the
war of Geoffrey Martel and William the Fat, of which he then gives
an elaborate account, ending with William’s capture and the
consequent surrender of Saintes to Geoffrey. But the story is utterly
senseless; the claims of William and Martel as therein stated are
alike devoid of all show of reason. In the account of the war itself,
too, there are strong traces of confusion; Saintes is assumed to have
passed back into the duke’s hands, of which there is no sign
elsewhere; and to crown all, the scene of the battle in which William
is taken is laid, not as by the Chron. S. Maxent. (a. 1032,
Marchegay, Eglises, p. 392) and Fulk Rechin (Comtes, p. 378), at S.
Jouin-de-Marne or Montcontour, but at Chef-Boutonne. The question
then arises: Can this wild tale in the Gesta, which is quite impossible
as an explanation of Martel’s war with William V., be interpreted so
as to explain his successor’s war with William VII.?
“Willelmus [VII., alias Guy-Geoffrey] Pictavensium comes
consulatum Sanctonicum suum esse volebat et vi præoccupatum
tenebat [having presumably seized it on Martel’s death], quia patrui
sui [for patrui read fratris—William the Fat—or patris, William the
Great] fuerat. Martellus [Barbatus] eumdem consulatum reclamabat,
quia avi sui [Fulconis Nerræ] fuerat, cujus hæredes [i.e. G. Martellus]
absque liberis mortui essent; et ideo ad hæredes sororis avi sui
[read avunculi sui—Martel’s sister, the Bearded one’s mother]
debere reverti affirmabat.”
Read in this way, the story is quite reasonable and intelligible, and
the rest of the Gesta’s account might stand almost intact, except the
capture of the duke, which of course is dragged in from the earlier
war. The confusion between the Williams of Aquitaine is easily
accounted for, and so is that between the Geoffreys of Anjou,
especially as all the Geoffreys after Martel occasionally took to
themselves his cognomen.
Note D.
THE DESCENDANTS OF HERBERT WAKE-DOG.
Note F.
THE MARRIAGE OF GEOFFREY AND MATILDA.
The date of this marriage is commonly given as 1127. A
comparison of evidence seems however to lead to the conclusion
that its true date is 1128.
1. The Angevin chronicles never mention the marriage at all. The
Gesta Cons., Will. Jumièges and several other writers mention it
without any kind of date. The English Chronicle, Sim. Durh., Will.
Malm. and Hen. Hunt. give no distinct date, but imply that the
proposal was immediately followed by the wedding. They speak as if
Robert and Brian had taken Matilda over sea and married her to
Geoffrey without more ado.
2. Orderic mentions the marriage in two places. In the first
(Duchesne, Hist. Norm. Scriptt., p. 763) he gives no clue to the date;
in the second (ib. p. 889) he dates it 1129.
3. The Chron. Fiscannense (Rer. Gall. Scriptt., vol. xii. p. 778)
dates it 1127.
4. A charter of agreement between the bishop of Séez and the
convent of Marmoutier (printed in Gilles Bry’s Hist. de Perche, p.
106) has “signum Henrici Regis quando dedit filiam suam Gaufredo
comiti Andegavensi juniori.” It is dated “anno ab Inc. Dom. 1127,
Indictione VI.”
5. The last witness is John of Marmoutier, the author of the
Historia Gaufredi Ducis. From him we might have expected a distinct
and authentic statement; but he does not mention the year at all. He
says that Geoffrey was knighted on Whit-Sunday and married on its
octave, and that he was then fifteen years of age (Hist. Gaufr. Ducis,
Marchegay, Comtes, pp. 236, 233). Afterwards, in speaking of the
birth of Henry Fitz-Empress, he says that it took place in the fourth
year of his parents’ marriage (ib. pp. 277, 278). Henry was born on
Mid-Lent Sunday, March 5, 1133; if therefore the writer reckoned
backwards from the Whitsuntide of that year, his words ought to
mean that the marriage was in 1129. But as he goes on to state that
Matilda’s third son was born in the sixth year of her marriage, and
that Henry I. died “anno eodem, ab Incarnatione videlicet Domini
1137,” it is impossible to say what he did mean. Whether he is
collecting the traditions of the ancient counts or writing the life of his
own contemporary sovereign, John’s chronology is pursued by the
same fate; whenever he mentions a date by the year, he is almost
certain to make it wrong. But that he should have done the like in his
reckoning of days, or even of his hero’s age, by no means follows.
To consider the latter point first: Geoffrey the Handsome was born on
August 24, 1113 (Chron. S. Albin. ad ann., Marchegay, Eglises, p.
32). Therefore, if John meant that he was past fifteen at his
marriage, it must have been in 1129. But if he only meant “in his
fifteenth year,” it would be 1128. In that year the octave of Pentecost
fell on June 17; Geoffrey then lacked but two months to the
completion of his fifteenth year; and considering Matilda’s age, it is
no wonder that the panegyrist tried to make her husband out as old
as possible. It is in fact plain that such was his intention, for though
he places Geoffrey’s death in the right year, 1151, he gives his age
as forty-one instead of thirty-eight (Hist. Gaufr. Ducis, Marchegay,
Comtes, p. 292).
The most important matter, however, is John’s statement that the
wedding took place on the octave of Pentecost. The date in this case
is not one casually slipped in by the writer in passing; it comes in a
detailed account of the festivities at Rouen on the occasion of
Geoffrey’s knighting, which is expressly said to have occurred at
Pentecost, and to have been followed by his marriage on the octave.
Now this leaves us on the horns of a dilemma fatal alike to the date
in the Chron. Fiscann., 1127, and to that of Orderic, 1129. For, on the
one hand, Will. Malm. (Hist. Nov., l. i. c. 3, Hardy, p. 692) says that
Matilda did not go to Normandy till after Whitsuntide [1127]; and Hen.
Hunt., l. vii. c. 37 (Arnold, p. 247), adds that the king followed her in
August (Sim. Durh., ed. Arnold, vol. ii. pp. 281, 282, really witnesses
to the same effect; for his chronology of the whole story is a year in
advance). Consequently, as Mrs. Everett Green remarks, “the union
could not have taken place before the spring of the following year,
1128” (Princesses of England, vol. i. pp. 107, 108). On the other
hand, it is plain that Fulk was present at his son’s wedding; but
before Whitsuntide 1129 Fulk was himself married to the princess of
Jerusalem (Will. Tyr., l. xiii. c. 24).
From all this it results: 1. If Geoffrey and Matilda were married in
1127, it cannot have been earlier than September, i.e. at least three
months after Whitsuntide. 2. If they were married in 1129, it must
have been quite at the beginning of the year, and Orderic must, on
this occasion at least, have made his year begin in English fashion,
at Christmas. 3. If they were married at Whitsuntide, it can only have
been in 1128.
We have in short to choose one out of three authorities: the
Chronicle of Fécamp, Orderic and John of Marmoutier—for the Séez
charter, as Mrs. Everett Green remarks (Princesses, vol. i. p. 108),
proves nothing more than that the betrothal had taken place in 1127.
Of these three, the first is certainly of least account. Orderic, on the
other hand, is on most other subjects a far better authority than
John. But his chronology is very little better than John’s, at any rate
towards the close of his work; his whole account of Henry’s later
years is sketchy and confused; while John is Geoffrey Plantagenet’s
own special biographer, writing within sixty years of the event, from
materials furnished by personal followers of his hero. I cannot but
regard him as our primary authority on this subject, and believe on
his testimony that the real wedding-day of Geoffrey and Matilda was
the octave of Pentecost, June 17, 1128.
CHAPTER V.
GEOFFREY PLANTAGENET AND STEPHEN OF
BLOIS.
1128–1139.
All the mental and bodily gifts wherewith nature had endowed the
most favoured members of the Angevin house seemed to have been
showered upon the eldest son of Fulk V. and Aremburg of Maine.
The surname by which he is most generally known, and which an
inveterate usage has attached to his descendants as well as to
himself, is in its origin and meaning curiously unlike most historical
surnames; it seems to have been derived simply from his boyish
habit of adorning his cap with a sprig of “planta-genista,” the broom
which in early summer makes the open country of Anjou and Maine
a blaze of living gold. With a fair and ruddy countenance, lit up by the
lightning-glance of a pair of brilliant eyes; a tall, slender, sinewy
frame, made for grace no less than for strength and activity:—[628] in
the unanimous opinion of his contemporaries, he was emphatically
“Geoffrey the Handsome.” To this prepossessing appearance were
added the charms of a gracious manner and a ready, pleasant
speech;[629] and beneath this winning exterior there lay a
considerable share of the quick wits of his race, sharpened and
developed by such a careful education as was given to very few
princes of the time. The intellectual soil was worthy of the pains
bestowed upon it, and brought forth a harvest of, perhaps, somewhat
too precocious scholarship and sagacity. Geoffrey’s fondness for the
study of the past seems to have been an inheritance from Fulk
Rechin; the historian-count might have been proud of a grandson
who carried in his memory all the battles fought, all the great deeds
done, not only by his own people but also in foreign lands.[630] Even
Fulk the Good might have approved a descendant who when still a
mere boy could shine in serious conversation with such a “lettered
king” as Henry I.;[631] and Fulk the Black might not have been
ashamed of one who in early youth felt the “demon-blood” within him
too hot to rest content in luxury and idleness, avoided the corrupting
influences of mere revelry, gave himself up to the active exercises of
military life,[632] and, while so devoted to letters that he would not
even go to war without a learned teacher by his side,[633] turned his
book-learning to account in ways at which ruder warriors and more
unworldly scholars were evidently somewhat astonished.[634] Like
his ancestor the Black Count, Geoffrey was one of those men about
whom their intimate associates have a fund of anecdotes to tell. The
“History” of his life put together from their information, a few years
after his death, is chiefly made up of these stories; and through the
mass of trite moralizing and pedantic verbiage in which the compiler
has imbedded them there still peeps out unmistakeably the peculiar
temper of his hero. Geoffrey’s readiness to forgive those who threw
themselves upon his mercy is a favourite theme of his biographer’s
praise; but the instances given of this clemency indicate more of the
vanity and display of chivalry in its narrower sense than of real
tenderness of heart or generosity of soul. Such is the story of a
discontented knight whose ill-will against his sovereign took the
grotesque form of a wish that he had the neck of “that red-head
Geoffrey” fast between the two hot iron plates used for making a
wafer-cake called oublie. It chanced that the man whose making of
oublies—then, as now, a separate trade—had suggested the wish of
this knight at St.-Aignan shortly afterwards made some for the eating
and in the presence of Count Geoffrey himself, to whom he related
what he had heard. The knight and his comrades were presently
caught harrying the count’s lands; and the biographer is lost in
admiration at Geoffrey’s generosity in forgiving not only their
depredations, but the more heinous crime of having, in a fit of ill-
temper after dinner, expressed a desire to make a wafer of him.[635]
On another occasion we find the count’s wrath averted by the
charms of music and verse, enhanced no doubt by the further charm
of a little flattery. Four Poitevin knights who had been taken captive
in one of the skirmishes so common on the Aquitanian border won
their release by the truly southern expedient of singing in Geoffrey’s
hearing a rime which they had composed in his praise.[636] A touch
of truer poetry comes out in another story. Geoffrey, with a great train
of attendants and noble guests, was once keeping Christmas at Le
Mans. From his private chapel, where he had been attending the
nocturnal services of the vigil, he set out at daybreak at the head of a
procession to celebrate in the cathedral church the holy mysteries of
the festival. At the cathedral door he met a poorly-dressed young
clerk, whom he flippantly saluted: “Any news, sir clerkling?”—“Ay, my
lord, the best of good news!”—“What?” cried Geoffrey, all his
curiosity aroused—“tell me quick!”—“‘Unto us a Child is born, unto
us a Son is given!’” Abashed, Geoffrey asked the youth his name,
bade him join the other clergy in the choir, and as soon as mass was
over went straight to the bishop: “For the love of Him Who was born
this day, give me a prebend in your church.” It was no sooner
granted than taking his new acquaintance by the hand, he begged
leave to make him his substitute, and added the further gift of a stall
in his own chapel, as a token of gratitude to the poor clerk whose
answer to his thoughtless question had brought home to him,
perhaps more deeply than he had ever felt them before, the glad
tidings of Christmas morning.[637] From another of these anecdotes
Geoffrey seems, as far as we can make out, to have been the
original hero of an adventure which has since, in slightly varying
forms, been attributed to several other princes, from Charles the
Great down to James the Fifth of Scotland, and which indeed may
easily have happened more than once. Led away by his ardour in
pursuit of the chase—next to literature, his favourite recreation—the
count one day outstripped all his followers, and lost his way alone in
the forest of Loches. At last he fell in with a charcoal-burner, who
undertook to conduct him back to the castle. Geoffrey mounted his
guide behind him; and as they rode along, the peasant, ignorant of
his companion’s rank, and taking him for a simple knight, let himself
be drawn into conversation on sundry matters, including a free
criticism on the government of the reigning count, and the
oppressions suffered by the people at the hands of his household
officers. When they reached the gates of Loches, the burst of joy
which greeted the wanderer’s return revealed to the poor man that
he had been talking to the count himself. Overwhelmed with dismay,
he tried to slip off the horse’s back; but Geoffrey held him fast, gave
him the place of honour at the evening banquet, sent him home next
day with a grant of freedom and a liberal gift of money, and profited
by the information acquired from him to institute a thorough reform in
the administration of his own household.[638]
[640] Ord. Vit. (Duchesne, Hist. Norm. Scriptt.), pp. 886, 887.
To King Henry the birth of his grandson was the crowning of all his
hopes. The greatest difficulty which had hitherto stood in the way of
his scheme for the descent of the crown—the objection which was
sure to be made against Matilda on account of her sex—would lose
more than half its force now that she could be regarded as regent for
her infant son; and Henry at once summoned another great council
at which he again made the archbishops, bishops, earls and barons
of his realm swear fealty to the Empress “and also to her little son
whom he appointed to be king after him.”[650] All things seemed as
safe as human foresight could make them when in the beginning of
August he crossed over to Normandy.[651] Signs and wonders in
earth and sky, related afterwards as tokens of coming evil,
accompanied his voyage;[652] but nearly two years passed away
before the portents were fulfilled. In the spring Matilda joined her
father at Rouen, and there, shortly before Whitsuntide, her second
son was born.[653] The old king’s pleasure in his two little
grandchildren was great enough to keep him lingering on in
Normandy with them and their mother, leaving England to the care of
Bishop Roger, till the middle of the following year,[654] when there
came tidings of disturbance on the Welsh border which made him
feel it was time he should return.[655] His daughter however set
herself against his departure. Her policy is not very clear; but it
seems impossible to acquit her of playing a double game and
secretly instigating her husband to attack her father while the latter
was living with her in unsuspecting intimacy and confidence.
Geoffrey now suddenly put forth a claim to certain castles in
Normandy which he asserted had been promised to him at his
marriage.[656] Henry denied the claim; the Angevin temper burst
forth at once; Geoffrey attacked and burned the castle of Beaumont,
whose lord was like himself a son-in-law of Henry, and altogether
behaved with such insulting violence that the king in his wrath was
on the point of taking Matilda, who was with him at Rouen all the
while, back with him to England. But he now found it impossible to
leave Normandy. The land was full of treason; many barons who
only disguised their real feelings from awe of the stern old king had
been gained over in secret to the Angevin cause; among those
whose fidelity was most suspected were Roger of Toëny and William
Talvas the lord of Alençon, who had been restored to the forfeited
estates of his family at the intercession of Geoffrey’s father in 1119.
Roger’s castle of Conches was garrisoned by the king; William
Talvas was summoned to Rouen more than once, but the conscious
traitor dared not shew his face; at last Henry again seized his
estates, and then, in September, Talvas fled across the border to be
received with open arms by the count of Anjou.[657] The countess
pleaded warmly with her father for the traitor’s pardon, but in vain.
When she found him inexorable, she suddenly threw off the mask
and shewed on which side her real sympathies lay by parting from
the king in anger and going home to her husband at Angers.[658]
Father and daughter never met again. In the last week of November
Henry fell sick while hunting in the Forest of Lions; feeling his end
near, he sent for his old friend Archbishop Hugh of Rouen to receive
his confession and give him the last sacraments. His son Earl Robert
of Gloucester hurried to the spot at the first tidings of his illness; his
daughter made no sign of a wish for reconciliation; yet when the earl
and the primate asked for his final instructions concerning the
succession to the crown, he remained true to his cherished purpose
and once more bequeathed all his dominions on both sides of the
sea to Matilda and her heirs for ever.[659] He died on the night of
December 1, 1135.[660]