Python deeper insights into machine learning leverage benefits of machine learning techniques using Python a course in three modules Hearty - Download the ebook and explore the most detailed content
Python deeper insights into machine learning leverage benefits of machine learning techniques using Python a course in three modules Hearty - Download the ebook and explore the most detailed content
com
https://textbookfull.com/product/python-deeper-insights-
into-machine-learning-leverage-benefits-of-machine-learning-
techniques-using-python-a-course-in-three-modules-hearty/
OR CLICK HERE
DOWLOAD EBOOK
https://textbookfull.com/product/advanced-data-analytics-using-python-
with-machine-learning-deep-learning-and-nlp-examples-mukhopadhyay/
textbookfull.com
https://textbookfull.com/product/practical-machine-learning-for-data-
analysis-using-python-1st-edition-abdulhamit-subasi/
textbookfull.com
https://textbookfull.com/product/data-science-and-machine-learning-
interview-questions-using-python-second-edition-vishwanathan-
narayanan/
textbookfull.com
Python for Probability Statistics and Machine Learning
José Unpingco
https://textbookfull.com/product/python-for-probability-statistics-
and-machine-learning-jose-unpingco/
textbookfull.com
https://textbookfull.com/product/thoughtful-machine-learning-with-
python-a-test-driven-approach-first-edition-kirk/
textbookfull.com
https://textbookfull.com/product/statistical-methods-for-machine-
learning-discover-how-to-transform-data-into-knowledge-with-python-
jason-brownlee/
textbookfull.com
Python: Deeper Insights
into Machine Learning
Leverage benefits of machine learning techniques
using Python
</>
LEARNING PATH
Python: Deeper Insights into
Machine Learning
BIRMINGHAM - MUMBAI
Python: Deeper Insights into Machine Learning
All rights reserved. No part of this course may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this course to ensure the accuracy
of the information presented. However, the information contained in this course
is sold without warranty, either express or implied. Neither the authors, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this course.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this course by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
ISBN 978-1-78712-857-6
www.packtpub.com
Credits
Reviewers
Richard Dutton
Dave Julian
Vahid Mirjalili
Hamidreza Sattari
Dmytro Taranovsky
Dr. Vahid Mirjalili
Jared Huffman
Ashwin Pajankar
Preface
Machine learning and predictive analytics are becoming one of the key strategies for
unlocking growth in a challenging contemporary marketplace .It is one of the fastest
growing trends in modern computing and everyone wants to get into the field of
machine learning. In order to obtain sufficient recognition in this field, one must be
able to understand and design a machine learning system that serves the needs of a
project. The idea is to prepare a Learning Path that will help you to tackle the real-
world complexities of modern machine learning with innovative and cutting-edge
techniques. Also, it will give you a solid foundation in the machine learning design
process, and enable you to build customized machine learning models to solve
unique problems
Module 2, Designing Machine Learning Systems with Python, acquaints you with large
library of packages for machine learning tasks. It introduces broad topics such
as big data, data properties, data sources, and data processing .You will further
explore models that form the foundation of many advanced nonlinear techniques.
This module will help you in understanding model selection and parameter tuning
techniques that could help in various case studies.
[i]
Preface
Module 3, Advanced Machine Learning with Python, helps you to build your skill
with deep architectures by using stacked denoising autoencoders. This module is a
blend of semi-supervised learning techniques, RBM and DBN algorithms .Further
this focuses on tools and techniques which will help in making consistent working
process.
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about
this course—what you liked or disliked. Reader feedback is important for us as it
helps us develop titles that you will really get the most out of.
[ ii ]
Preface
If there is a topic that you have expertise in and you are interested in either writing
or contributing to a book, see our author guide at www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt course, we have a number of things to
help you to get the most from your purchase.
1. Log in or register to our website using your e-mail address and password.
2. Hover the mouse pointer on the SUPPORT tab at the top.
3. Click on Code Downloads & Errata.
4. Enter the name of the course in the Search box.
5. Select the course for which you're looking to download the code files.
6. Choose from the drop-down menu where you purchased this course from.
7. Click on Code Download.
You can also download the code files by clicking on the Code Files button on the
course's webpage at the Packt Publishing website. This page can be accessed by
entering the course's name in the Search box. Please note that you need to be logged
in to your Packt account.
Once the file is downloaded, please make sure that you unzip or extract the folder
using the latest version of:
[ iii ]
Preface
The code bundle for the course is also hosted on GitHub at https://github.com/
PacktPublishing/Python-Deeper-Insights-into-Machine-Learning.
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes
do happen. If you find a mistake in one of our courses—maybe a mistake in the text
or the code—we would be grateful if you could report this to us. By doing so, you
can save other readers from frustration and help us improve subsequent versions
of this course. If you find any errata, please report them by visiting http://www.
packtpub.com/submit-errata, selecting your course, clicking on the Errata
Submission Form link, and entering the details of your errata. Once your errata are
verified, your submission will be accepted and the errata will be uploaded to our
website or added to any list of existing errata under the Errata section of that title.
Piracy
Piracy of copyrighted material on the Internet is an ongoing problem across all
media. At Packt, we take the protection of our copyright and licenses very seriously.
If you come across any illegal copies of our works in any form on the Internet, please
provide us with the location address or website name immediately so that we can
pursue a remedy.
We appreciate your help in protecting our authors and our ability to bring you
valuable content.
Questions
If you have a problem with any aspect of this course, you can contact us at
questions@packtpub.com, and we will do our best to address the problem.
[ iv ]
Course Module 1: Python Machine Learning
[i]
Table of Contents
[ ii ]
Table of Contents
[ iii ]
Table of Contents
[ iv ]
Table of Contents
[v]
Table of Contents
[ vi ]
Table of Contents
[ vii ]
Module 1
In this chapter, we will learn about the main concepts and different types of machine
learning. Together with a basic introduction to the relevant terminology, we will lay
the groundwork for successfully using machine learning techniques for practical
problem solving.
[3]
Giving Computers the Ability to Learn from Data
[4]
Chapter 1
Considering the example of e-mail spam filtering, we can train a model using a
supervised machine learning algorithm on a corpus of labeled e-mail, e-mail that are
correctly marked as spam or not-spam, to predict whether a new e-mail belongs to
either of the two categories. A supervised learning task with discrete class labels, such
as in the previous e-mail spam-filtering example, is also called a classification task.
Another subcategory of supervised learning is regression, where the outcome signal is
a continuous value:
[5]
Giving Computers the Ability to Learn from Data
However, the set of class labels does not have to be of a binary nature. The predictive
model learned by a supervised learning algorithm can assign any class label that was
presented in the training dataset to a new, unlabeled instance. A typical example of
a multi-class classification task is handwritten character recognition. Here, we could
collect a training dataset that consists of multiple handwritten examples of each letter
in the alphabet. Now, if a user provides a new handwritten character via an input
device, our predictive model will be able to predict the correct letter in the alphabet
with certain accuracy. However, our machine learning system would be unable to
correctly recognize any of the digits zero to nine, for example, if they were not part
of our training dataset.
The following figure illustrates the concept of a binary classification task given 30
training samples: 15 training samples are labeled as negative class (circles) and 15
training samples are labeled as positive class (plus signs). In this scenario, our dataset
is two-dimensional, which means that each sample has two values associated with
it: x1 and x2 . Now, we can use a supervised machine learning algorithm to learn a
rule—the decision boundary represented as a black dashed line—that can separate
those two classes and classify new data into each of those two categories given its x1
and x2 values:
[6]
Chapter 1
For example, let's assume that we are interested in predicting the Math SAT
scores of our students. If there is a relationship between the time spent studying
for the test and the final scores, we could use it as training data to learn a model
that uses the study time to predict the test scores of future students who are
planning to take this test.
The following figure illustrates the concept of linear regression. Given a predictor
variable x and a response variable y, we fit a straight line to this data that minimizes
the distance—most commonly the average squared distance—between the sample
points and the fitted line. We can now use the intercept and slope learned from this
data to predict the outcome variable of new data:
[7]
Giving Computers the Ability to Learn from Data
A popular example of reinforcement learning is a chess engine. Here, the agent decides
upon a series of moves depending on the state of the board (the environment), and the
reward can be defined as win or lose at the end of the game:
[8]
Chapter 1
The figure below illustrates how clustering can be applied to organizing unlabeled
data into three distinct groups based on the similarity of their features x1 and x2 :
[9]
Giving Computers the Ability to Learn from Data
[ 10 ]
Chapter 1
To keep the notation and implementation simple yet efficient, we will make use of
some of the basics of linear algebra. In the following chapters, we will use a matrix
and vector notation to refer to our data. We will follow the common convention to
represent each sample as separate row in a feature matrix X , where each feature is
stored as a separate column.
The Iris dataset, consisting of 150 samples and 4 features, can then be written as a
150 × 4 matrix X ∈ 150×4 :
[ 11 ]
Giving Computers the Ability to Learn from Data
For the rest of this book, we will use the superscript (i) to refer to the ith
training sample, and the subscript j to refer to the jth dimension of the
training dataset.
We use lower-case, bold-face letters to refer to vectors ( x ∈ R ) and
n×1
x j (1)
( 2)
x
xj = j
x (150)
j .
Similarly, we store the target variables (here: class labels) as a
y (1)
150-dimensional column vector y = … ( y ∈ {Setosa, Versicolor, Virginica} ) .
y (150)
[ 12 ]
Another Random Document on
Scribd Without Any Related Topics
CHAPTER XIX.
NED IS ASTONISHED.
He felt about, and soon made out that the chimney was made of
rough stone, with rather wide interstices between each boulder. It
was an easy matter to clamber up it, and soon Ned was on his way
toward the stars framed by the top of the structure. But when he
had reached a height of some ten feet above the cellar floor, a
strange thing happened. One of his feet struck a part of the
chimney, which gave out a hollow sound. Moreover, the sound was
that of wood.
“Guess that there must be a fireplace opening there,” thought the
Dreadnought Boy; “evidently, they had it boarded up for the
summer, or maybe the chimney was never finished. Guess that must
be it. Now, the question is, what lies beyond that board?”
As if in answer to his unspoken thought, he heard, at that moment,
a distinct groan coming from the other side of the board.
“That must be Mr. Lockyer,” was the boy’s instant thought; “wonder
how tight this board is?”
A hearty kick soon solved the question. The board flew outward into
the room with a clatter, and the next instant Ned beheld the face of
Channing Lockyer once more. The inventor was seated at a table in
a room which, apparently, contained no other furniture beside that
and the chair to which, in a close view, it became apparent he was
tightly bound. In one corner of the place a lamp, on a high shelf,
shed a sickly light.
“Mr. Lockyer!” cried the boy.
The inventor met his gaze with a half-dazed look that somehow sent
a creepy feeling through the boy. Crossing the room in a few steps
he shook the other’s shoulder.
“Mr. Lockyer? I’ve come to save you. What is it? What’s the matter?”
A hollow groan was the response, and the inventor, who had,
seemingly, been partially roused when the chimney-board fell in, let
his head sink forward on the table once more.
“By George!” exclaimed Ned, with a sudden remembrance; “I
recollect now. Those fellows did say something about having
drugged him. The stuff seems to be still working. Whatever will I
do? They’ll be back before long, and we ought to be out of here.”
Reasoning that it would be probably his best course of action to cut
the inventor loose, Ned drew his knife, of which his captors had not
bothered to deprive him, and slashed the ropes that bound Channing
Lockyer to the chair. As his bonds relaxed, the inventor slid heavily
forward and sank in a heap on the floor.
“Well, if this isn’t tough luck,” groaned Ned; “what am I to do? I
can’t carry him far, that’s certain. Guess I’ll open the door and see if
the fresh air will revive him.”
He swiftly was at the portal. But it would not yield to his tugs.
“Locked on the outside!” exclaimed Ned; “I’ll try the window.”
That, too, was locked in some way he could not discover. But Ned
was not one to be beaten by trifles like that. Picking up the chair, he
swung it against the casement, carrying away sash and all. The blast
of keen sea air that swept in seemed, to Ned’s delight, to revive Mr.
Lockyer. He stirred like a man awakening from a long sleep.
“Come, sir, come!” cried Ned, lifting him; “can’t you stand?”
“I—what has happened?” asked the inventor thickly. He stared about
him with a blank look.
“You’ve been drugged by rascals, but I’m going to get you out of
here,” rejoined Ned; “come, sir; rouse up. Ah, that’s better,” as the
inventor, with the lad’s aid, got to his feet. He stood staggeringly,
and then Ned, as gently as he could, half-dragged, half-carried him
to the window.
“Have to lift him through,” thought Ned, as Mr. Lockyer gazed
blankly about him. Evidently he had little knowledge of what was
happening.
Putting his strong, young arms about the inventor’s slight form, Ned
lifted him through the window. Then he followed.
“A fighting chance,” he breathed, as, gathering up Lockyer in his
arms, he began a staggering run across the heavy sands. Coarse
grass grew upon the island, which bothered him a good deal, but in
the emergency before him, Ned seemed endowed with superhuman
strength.
“A fighting chance,” he breathed, as,
gathering up Lockyer in his arms, he began
a staggering run across the heavy sands.
As one direction seemed as good as another, he did not pay much
heed to where he was going. Before long he reached the margin of
the island. At least, he could hear the ripple of tiny waves on the
beach.
“Good land,” breathed the lad to himself, setting down Mr. Lockyer’s
limp form, “it will be child’s play to find us now. If only there were
some way to escape from the island, but I guess there isn’t, and
we’re out of the frying pan into the fire.”
It was a bitter pill to swallow. To have come so far and surmounted
such obstacles only for this! For Ned, against all manner of reason,
perhaps, had treasured, deep down in his heart, a hope that, after
all, what he thought an island might turn out to be a part of the
mainland. He realized that there was no use dwelling in this fool’s
paradise any longer.
As he stood there under the stars, without a hope left, a sudden
sound was borne to his ears. It was as ominous an interruption to
the hush of the night as could be imagined.
The swift, sharp chug-chug of a motorboat’s exhaust.
To Ned, it meant only one thing. Ferriss and his companions were
returning. In a few minutes they would have discovered the escape
and then would scatter and search the island. In that case, their
recapture was inevitable.
“Well, Ned Strong,” said the Dreadnought Boy half-aloud, “this looks
like the beginning of a particularly lively end.”
But to Ned’s stark astonishment, the next instant a familiar sound
came over the water from the direction in which the approaching
chug-chug was manifest.
“Jer-us-o-hos-o-phat, shipmates, my advice is ter cruise back to the
submarine. Wherever them varmints has taken Ned Strong and Mr.
Lockyer, we won’t be able to find ’em. Not to-night, anyhow.”
“Which is just where you’re wrong, Tom Marlin!” hailed Ned, his
voice fairly aquiver with gladness.
“A-h-o-y!” came an amazed hail from the water. “Ned Strong, my
hearty, are you there, or is it your ghost?”
“It’s me, dear old Tom; but hurry and get alongside there. Is Herc
with you, and young Sim?”
“Here safe and sound, Ned,” shouted the well-known voice of the
red-headed lad; “thank goodness, we’ve found you.”
“And Mr. Lockyer, too,” shouted back Ned, in response to the glad
shouts that came in a perfect torrent from the other boat.
“What! How on earth——?”
“Never mind that now. Never mind anything now but getting that
boat in here as close as you can. They’ll be coming back before
long.”
Not stopping to ask who “they” might be, the boat was run close in
to the shore till not more than a foot of water was between her keel
and the bottom. Then Ned, picking up the still half-dazed inventor,
waded out to her and, presently, they were safe aboard.
“Say!” exclaimed the reporter, as Ned swiftly told his story, “let’s stay
here and give those rascals a fight.”
“I’d like to,” said Herc wistfully; “maybe we could arrest them and
land them where they belong, which is in jail.”
But Ned vetoed the proposition. For one thing, it was important to
get Mr. Lockyer back to where he could have medical attention, for
whatever kind of stuff the rascals had given him, it seemed to have
completely overcome him. He sat in the bottom of the launch with a
vacant look on his face. The little craft was, accordingly, put about
and headed for Grayport. As they chugged along Herc told how they
came to happen along at such an opportune moment for Ned.
After they had heard the auto speed off, they had given chase for a
while, but had finally desisted when they saw it was useless. Then
they began to look about for Ned, and discovered that he was gone.
For a time they were at a despairing standstill, but, after a lot of
discussion, it was agreed to head up the Inlet toward the islands, as
Reporter Hargraves recollected having heard the ruffians, who had
abducted Lockyer, mention the islands in their talk in the summer
house. They had been cruising around for some time among the
deserted summer colony of bungalows and islands, and were about
ready to give up the search when they heard Ned’s hail.
On the way back to Grayport they encountered something which
was to have played an important part in Ferriss’s plans. This was the
drifting boat in which Gradbarr had rowed Lockyer ashore. Drifting
about, bottom up as she was, they almost ran her down in the
darkness. On turning her over, they found that Anderson had carried
out his instructions to the letter, for under one of the thwarts was Mr.
Lockyer’s hat.
“Gracious!” exclaimed Herc, with a shudder, “suppose we had not
found you and had encountered this boat on our way back? We
would have given up Mr. Lockyer for lost for certain, and your fate
would have been a mystery to us.”
No time was lost in reporting on board the Lockyer, where anxiety
and apprehension were naturally at fever heat. Lieutenant Parry and
Midshipman Stark had returned some hours before, but they were
pacing the deck, on the lookout for news of some sort, when the
launch, with the returned adventurers, arrived.
Warm, indeed, were the congratulations showered upon the lads and
the reporter, who had aided them so materially. Mr. Lockyer was
placed in a bunk, and Lieutenant Parry, who had some knowledge of
medicine, administered some remedies to him. Such good effect did
they have that when a doctor came from the shore in the morning
there was not much for him to do, except to look profound and
recommend rest.
The police were communicated with, and a force of men sent to the
island on which Mr. Lockyer had been imprisoned. Evidences of a
hasty flight were found there. Evidently, Ferriss and his companions
had returned, and finding that in some mysterious way their
prisoners had escaped, had not deemed it wise to linger.
The auto had been hired, it was discovered, from a reputable garage
in the town. As for the bungalow, that had been rented by Ferriss
some days before. He had represented himself as an invalid anxious
to try the fresh-air cure, and the real estate agent who rented the
place to him had had no suspicion of the real purposes for which he
wanted it. Although a “general alarm” was sent out for all who had
taken part in the dastardly night’s work, no trace was discovered of
them in Grayport or the vicinity.
“I guess they’ve fired their last gun,” commented Ned, when this
information was brought off to the submarine that evening. But in
this the Dreadnought Boy was mistaken. Such men as Ferriss do not
accept defeat kindly. It only enrages their degraded natures and
makes them hungry for vengeance on those who they deem have
thwarted their ends.
CHAPTER XX.
TOM’S VERY THICK FOG.
From being a place which had little existence besides a name on the
map, Grayport had suddenly blossomed out into quite a celebrated
spot. Naturally, Hargraves’s story of the attack on the submarine
experimenters, and the stories of the other men concerning the
interesting tests, excited a great deal of attention. All sorts of people
began to flock to Grayport. Among them came several cranks. All
day long quite a flotilla of small boats maneuvered about the
submarine as she lay at anchor, but nobody was allowed aboard.
Even the newspaper correspondents, after they had been given that
first story, were barred.
For two days following the adventures of the night of Mr. Lockyer’s
abduction, the Lockyer lay idle at her moorings. But within her steel
shell, things were anything but idle. Incessant work was going
forward on the engines, getting them to the highest possible state of
efficiency. The reason for this was, at present, a mystery to the
boys, but it lay in the fact that Lieutenant Parry’s report had been so
favorable that the Government had decided to send a special board
to Grayport to investigate the little diving vessel.
So it came about, that on the morning of the third day, when Mr.
Lockyer was completely recovered, and his usual active, nervous self
once more, a trim-looking gunboat steamed into Grayport harbor,
and cast anchor not far from the little vessel. Lieutenant Parry,
calling his crew together, then made an announcement which thrilled
them all. That evening, in all probability, they would start on a long
trial spin with the members of the board as passengers. He
impressed them all that he wished the Lockyer to be put through her
best paces. Mr. Lockyer thanked him with a look for his words. So
far, the submarine had done all that she should, but the crucial test,
under keen, impartial eyes, remained.
Shortly afterward, Lieutenant Parry, in a shore boat, left the Lockyer
for the gunboat—the Louisville. He was on his way to pay his
respects to Captain McGill, the president of the testing board, and
his brother officers. When he returned on board again before noon,
it was with the five officers comprising the party of investigation. All
wore their uniforms and made an imposing array.
The Lockyer, too, with the naval members of her crew in blue
uniform, was decked out like a fighting ship. From her stern fluttered
the Stars and Stripes. From her forward mooring-bits, to the last bolt
on her keelson plate, she had been scoured and polished.
“A smart-looking little craft,” commented Captain McGill, after he had
been introduced to Mr. Lockyer. The inventor colored with pleasure.
“I hope to prove to you, sir, that she is as smart as she looks,” he
rejoined.
The officers now took possession of the cabin, and the boys and the
remainder of the crew were banished to the engineers’ quarters.
They were rather cramped, and Ned was not sorry when it came to
the turn of himself and Herc to take watch on deck.
They were kept busy enough up there, answering questions and
fending off too-inquisitive boats, whose occupants were eager to
come on board. After an inspection of the vessel, the naval party
went ashore in the gunboat’s launch to send some despatches to
Washington. This done, they embarked once more to take council
with Captain McGill on board the Louisville.
This afforded the men left on board more freedom, and they took
turns at coming on deck for a bit of fresh air. Toward the middle of
the afternoon—to the boys’ consternation—a heavy fog came rolling
in. It began to look as if the distance cruise that night might have to
be abandoned. Old Tom gazed at the wreaths of vapor as they came
drifting in from the Sound, wrapping the waters about the Lockyer in
a white obscurity.
“If this don’t lift by sundown it’s good for all night,” he remarked.
“Say,” he went on suddenly, “did I ever tell you lads about the time I
was in a fog in the English Channel on board the old wind-jammer
Wampus?”
The boys shook their heads.
“Well, here goes for the yarn, then,” said old Tom. “The Wampus
was one of them bluff-bowed old craft that they used to build by the
mile, and sell by the foot. I was on board her on a voyage from
Brest to Boston. All went well till we got in the English Channel,
when a thick, pea-soup-kind of a fog shut down on us. It was so bad
that you couldn’t see the forecastle from the stern.
“It was my trick at the wheel that afternoon, and for company I had
the skipper, an old Maine Yankee. He was so plum nervous that all
he could do was to pace up and down and cuss the fog. The English
Channel is crowded with shipping, and every now and then——
“M-o-o-o-o-o-m! would go some fog horn off in the smother.
“All to once, we both give a jump. Right dead ahead of us we heard
a fog horn start up.
“M-o-o-o-o-o-o-o-o-m!
“I tell you, it gave me the shivers to hear it. ‘Hard over!’ bawls the
skipper, and I spun that wheel round like a squirrel, I tell you. Well,
her head swung off, but it didn’t seem to be no good.
“M-o-o-o-o-o-o-m! come that sound again, and it seemed ter be jest
ther same place as it was before.
“‘Confound them, are they tagging us?’ shouts Captain Wellfleet.
“‘Looks like it, sir,’ says I, swinging her over and going off on the
other tack. But no sooner was we headed the other way than I’m
blessed if that same old horn didn’t start up again.
“M-o-o-o-o-m!
“‘It’s the Flying Dutchman!’ declares the skipper, who was one of the
old-school, hard-shell sailormen, and believed in Adamaster and all
them things. By that time, although I didn’t take much stock in such
yarns as that, I began to think there was something out of the
ordinary in the wind. Well, sir, for half an hour or more we swung to
and fro, and always we’d have that same old ‘M-o-o-o-o-o-m!’ dead
ahead of us.
“And so it kept up till it came time to change watches. The fog was
just as thick as ever, and we didn’t see my relief coming from for’ard
till he reached the waist. By this time the skipper was jumping about
from one foot to the other, pretty nearly daffy. And still, every now
and then, we’d hear that ‘M-o-o-o-o-m!’ right off our bow. It was
fairly uncanny, I’m telling you, the way it chased us.
“‘Send the cook aft, and tell him to make me a cup of tea,’ roars the
skipper, as my relief comes up. ‘My nerves is knocked plum galley-
west.’
“‘Sorry, sir,’ says the man; ‘the cook is doctoring the cow.’
“‘Doctoring the cow?’ bellows the skipper.
“‘Aye, aye, sir,’ says my mate; ‘she’s ate suthin’ that disagreed with
her an’ she’s got a tummy-ache. Hark!’
“He held up his finger, and we hears that fog horn noise again.
“‘M-o-o-o-o-o-m!’
“‘Is that the horn-swoggled cow?’ roars the skipper, fair beside
himself.
“‘Aye, aye, sir!’ says my mate, touching his cap; ‘she’s bin’ bellering
that way fer an hour or more.’
“‘Great shades of Neptune!’ yells the skipper, ‘and we’ve bin tagging
all over the Channel, trying ter git away from the beller of our own
cow.’
“And that,” concluded old Tom solemnly, “was the worst fog I was
ever in, boys. They do say, too, that bovine made fine corned beef,
and they used the tin cow—condensed milk—for the rest of that ’ere
voyage.”
“Say, Tom, do you expect us to believe that?” asked Herc, with a
wink at Ned, after their laughter had subsided.
“Of course,” said the old man-o’-warsman indignantly. “If there’s any
insulting doubt in your mind I’ll tell you the year and date of the
month.”
“Ahoy, Lockyer!” came a hail through the fog at this moment.
“Ahoy!” hailed Ned, “what boat’s that?”
“Lockyer!” came the answer.
Ned knew at once from this, though the fog hid the boat, that it was
Lieutenant Parry and his party returning.
As commander pro tem of the submarine, Lieutenant Parry had
answered to Ned’s hail by giving the boat’s name. This—under Navy
usage—signified that he was the captain. Other commissioned
officers would have hailed: “Aye, aye.” Enlisted men would have
replied: “Halloo!”
The short flight of steel steps, which did duty as an officer’s
gangway, was hastily lowered from the starboard side of the
submarine, and the party received on board in Navy style.
“Doesn’t look much like a cruise to-night, Lockyer, I’m afraid.” Ned,
standing at attention by the gangway, heard Lieutenant Parry remark
this to the inventor as they went below.
But good fortune was to favor the submarine after all. At sundown a
brisk breeze sprung up, before which the fog rapidly melted away.
By dusk the skies were clear, and outside the harbor a sharp wind
was kicking up white-caps in dancing water-rows. It was ideal
weather for cruising, and when, after supper, the order came to up
anchor, the command was obeyed with alacrity.
But smart as the Lockyer had been in hastening to make ready for
her start after the fog had lifted, another boat in the harbor was
ahead of her in getting to sea. This was a largish catboat, which had
come in that morning. Some time before the order came to “up
anchor” on their own craft, the crew of the Lockyer had watched the
catboat, on which were two men, slip from her moorings and,
heeling gracefully before the breeze, run out of the harbor. Soon she
was skipping across the Sound, bobbing about like a dancer in a
quadrille. The dying light glowed goldenly on her big, single sail.
“Those fellows are off for a night’s cruise, too,” commented Herc, as
he watched the white canvas glimmering more and more dimly in
the gathering dusk.
“Guess they’re reaching off for a run to Bridgeport,” rejoined Ned.
But in this surmise he came far—very far—from guessing the real
object of the catboat’s cruise.
CHAPTER XXI.
THE SHIPWRECKED MEN—AND A BOX.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com