Machine Learning for Decision Sciences with Case Studies in Python 1st Edition S. Sumathi pdf download
Machine Learning for Decision Sciences with Case Studies in Python 1st Edition S. Sumathi pdf download
https://ebookmeta.com/product/machine-learning-for-decision-
sciences-with-case-studies-in-python-1st-edition-s-sumathi/
https://ebookmeta.com/product/innovations-in-machine-and-deep-
learning-case-studies-and-applications-gilberto-rivera/
https://ebookmeta.com/product/machine-learning-with-python-
cookbook-2nd-edition-kyle-gallatin/
https://ebookmeta.com/product/machine-learning-with-python-
cookbook-2nd-edition-chris-albon/
https://ebookmeta.com/product/close-reading-the-basics-1st-
edition-david-greenham/
https://ebookmeta.com/product/black-light-rocked-black-light-
series-book-1-1st-edition-livia-grant-2/
https://ebookmeta.com/product/urban-planning-for-transitions-1st-
edition-nicolas-douay/
https://ebookmeta.com/product/economics-anthropology-and-the-
origin-of-money-as-a-bargaining-counter-1st-edition-patrick-
spread/
Custom Search - Discover More: : A Complete Guide to
Google Programmable Search Engines 1st Edition Irina
Shamaeva
https://ebookmeta.com/product/custom-search-discover-more-a-
complete-guide-to-google-programmable-search-engines-1st-edition-
irina-shamaeva/
Machine Learning for Decision
Sciences with Case Studies
in Python
Machine Learning for Decision
Sciences with Case Studies
in Python
S. Sumathi
Suresh V. Rajappa
L. Ashok Kumar
Surekha Paneerselvam
First edition published 2022
by CRC Press
6000 Broken Sound Parkway NW, Suite 300, Boca Raton, FL 33487-2742
Reasonable efforts have been made to publish reliable data and information, but the author and publisher cannot
assume responsibility for the validity of all materials or the consequences of their use. The authors and publishers
have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright
holders if permission to publish in this form has not been obtained. If any copyright material has not been acknowl-
edged please write and let us know so we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or
utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including pho-
tocopying, microfilming, and recording, or in any information storage or retrieval system, without written permission
from the publishers.
For permission to photocopy or use material electronically from this work, access www.copyright.com or contact the
Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. For works that are
not available on CCC please contact mpkbookspermissions@tandf.co.uk
Trademark notice: Product or corporate names may be trademarks or registered trademarks and are used only for
identification and explanation without intent to infringe.
DOI: 10.1201/9781003258803
Typeset in Times
by codeMantra
Contents
Preface.............................................................................................................................................. xv
Acknowledgment............................................................................................................................xvii
About the Authors............................................................................................................................xix
Introduction......................................................................................................................................xxi
Chapter 1 Introduction...................................................................................................................1
1.1 Introduction to Data Science..............................................................................1
1.1.1 Mathematics..........................................................................................1
1.1.2 Statistics................................................................................................1
1.2 Describing Structural Patterns...........................................................................2
1.2.1 Uses of Structural Patterns....................................................................2
1.3 Machine Learning and Statistics........................................................................3
1.4 Relation between Artificial Intelligence, Machine Learning, Neural
Networks, and Deep Learning...........................................................................4
1.5 Data Science Life Cycle.....................................................................................6
1.6 Key Role of Data Scientist..................................................................................8
1.6.1 Difference between Data Scientist and Machine
Learning Engineer................................................................................8
1.7 Real-World Examples.........................................................................................8
1.8 Use Cases............................................................................................................9
1.8.1 Financial and Insurance Industries.......................................................9
1.8.1.1 Fraud Mitigation....................................................................9
1.8.1.2 Personalized Pricing............................................................ 10
1.8.1.3 AML – Anti-Money Laundering......................................... 10
1.8.2 Utility Industries................................................................................. 11
1.8.2.1 Smart Meter and Smart Grid............................................... 11
1.8.2.2 Manage disaster and Outages.............................................. 11
1.8.2.3 Compliance.......................................................................... 11
1.8.3 Oil and Gas Industries......................................................................... 11
1.8.3.1 Manage Exponential Growth............................................... 11
1.8.3.2 3D Seismic Imaging and Kirchhoff.................................... 12
1.8.3.3 Rapidly Process and Display Seismic Data......................... 12
1.8.4 E-Commerce and Hi-Tech Industries.................................................. 12
1.8.4.1 Association and Complementary Products.......................... 12
1.8.4.2 Cross-Channel Analytics..................................................... 12
1.8.4.3 Event analytics..................................................................... 13
Summary..................................................................................................................... 13
Review Questions........................................................................................................ 14
v
vi Contents
9.5 Use Case 5 − E-Commerce Product Ranking and Sentiment Analysis.......... 430
9.5.1 Background....................................................................................... 430
9.5.2 Understanding the Data..................................................................... 431
Summary................................................................................................................... 441
Review Questions...................................................................................................... 442
PERSONS.
Medea. Jason.
}
Ægeus. Nikias. Citizens of Corinth.
Medea.
T O-DAY, to-day, I know not why it is,
I do bethink me of my Colchian home.
To-day, that I am lone and weary and sad,
I fain would call back days of pride and hope;
Of pride in strength, when strength was all unprov’d,
Of hope too high, too sweet, to be confined
In limits of conception.
I am sad
Here in this gracious city, whose white walls
Gleam snow-like in the sunlight; whose fair shrines
Are filled with wondrous images of gods;
Upon whose harbour’s bosom ride tall ships,
Black-masted, fraught with fragrant merchandise;
Whose straight-limbed people, in fair stuffs arrayed,
Do throng from morn till eve the sunny streets.
For what avail fair shrines and images?
What, cunning workmanship and purple robes?
Light of sweet sunlight, play and spray of waves?
When all around the air is charged and chill,
And all the place is drear and dark with hate?
Alas, alas, this people loves me not!
This strong, fair people, marble-cold and smooth
As modelled marble. I, an alien here,
That well can speak the language of their lips,
The language of their souls may never learn.
And in their hands, I, that did know myself
Ere now, a creature in whose veins ran blood
Redder, more rapid, than flows round most hearts,
Do seem a creature reft of life and soul.
If they would only teach the subtle trick
By which their hearts are melted into love,
I’d strive to learn it. I am very meek.
They think me proud, but I am very meek,
Ready to do their bidding. Hear me, friends!
Friends, I am very hungry, give me love!
’Tis all I ask! is it so hard to give?
You stand and front me with your hostile eyes;
You stand and front me with your hostile eyes;
You only give me hatred?
Yet I know
Ye are not all unloving. Oft I see
The men and women walking in the ways,
Hand within hand, and tender-bated breath,
On summer evenings when the sky is fair.
O men and women, are ye then so hard?
Will ye not give a little of your love
To me that am so hungry?
[Enter Ægeus and Nikias, on the opposite side. Medea steps back on the
threshold and pauses.]
Nikias.
I, in this thing, do hold our Jason wise;
Kreon is mighty; Glaukê very fair.
Ægeus.
Nikias.
Ægeus.
Nikias.
Ægeus.
I do marvel much
How she will bear the tidings.
Nikias.
Lo, behold!
Here comes our Jason striding ’thwart the streets.
Gods! what a gracious presence!
Ægeus.
I perceive
The Colchian on the threshold. By her looks,
Our idle talk has reached her listening ears.
Nikias.
Medea.
Jason.
Your looks are wild, Medea; you bring shame
Upon this house, that stand with hair unbound
Beyond the threshold. Get you in the house.
Medea.
Jason.
Medea.
Jason.
Medea.
Almost, for fear, I dare not give it tongue.
But tell me this? Love, you have not forgot
The long years passed in this Corinthian home?
The great love I have borne you through the years?
Nor that far time when, in your mighty craft,
You came, a stranger, to the Colchian shore?
O strong you were; but not of such a strength
To have escaped the doom of horrid death,
Had not I, counting neither loss nor gain,
Shown you the way to triumph and renown.
Jason.
Nikias.
Ægeus.
Nikias.
ÆGEUS.
Ay, ’tis strange—
Not as our women do, yet scarce unmeet.
Nikias.
Jason.
Hear me, Medea, if you still can hear
That seem so strangely lifted from yourself:
But I, that know you long, do know you well,
A thing of moods and passions; so I bear
Once more with your wild words and savage gests,
Ay, and for all your fury speak you fair.
You say you love me. Can I deem it so,
When what does most advantage me and mine
You shrink to hear of? For I make no doubt,
Fleet-footed rumour did anticipate
The tidings I was hastening to bear,
When you, wide-eyed, unveiled, unfilleted,
Rushed out upon me.
Know then this once more:
That I have sworn to take as wedded wife
Glaukê, the daughter of our mighty king,
In this, in nowise hurting you and yours.
For you all fair provision I have made,
So but you get beyond the city walls
Before the night comes on. Our little ones—
They too shall journey with you. I have said.
And had I found you in a mood more mild,
Less swayed by savage passion, I had told
How this thing, which mayhap seems a thing hard,
Is but a blessing, wrapped and cloaked about
In harsh disguisements. For tho’ Kreon rule
To-day within the city; Kreon dead,
Who else shall rule there saving I alone,
The king’s son loved of him and other men?
And in those days Medea’s sons and mine
Shall stand at my right hand, grown great in power.
Medea, too, if she do but control
Her fiery spirit, may yet reign a queen
Above this land of Corinth. I have said.
Nikias.
Well said.
Ægeus.
Nikias.
Ægeus.
Nikias.
O ye gods,
She is a pregnant horror as she stands.
Ægeus.
Medea.
As you have said, O Jason, let it be.
I for my part am nothing loth to break
A compact never in fair justice framed,
Seeing how much one gave and one how much.
For you, you thought: This maid has served me well,
And yet may serve me. When I touch her palm
The blood is set a-tingle in my veins;
For these things I will make her body mine.
And I, I stood before you, clean and straight,
A woman some deemed fair and all deemed wise;
A woman, yet no simple thing nor slight,
By nature fashioned in no niggard mould;
And looked into your eyes with eyes that spake:
Lo, utterly, for ever, I am yours.
And since that you, this gift I lavish laid
Low at your feet, have lightly held and spurned—
I in my two arms, thus, shall gather it up
So that your feet may not encounter it
Which is not worthy for your feet to tread!
Yet pause a moment, Jason. Haply now
In some such wise as this your thoughts run on:
I loved this woman for a little space;
Alas, poor soul, she loved me but too well—
It is the way with women! Some, I think,
Did deem her fierce; gods! she was meek enough,
Content with what I gave; when I gave not
Nothing importunate.
Ah, Jason, pause.
You never knew Medea. You forget,
Because so long she bends the knee to you,
She was not born to serfdom.
I have knelt
Too long before you. I have stood too long
Suppliant before this people. You forget
A redder stream flows in my Colchian veins
Than the slow flood which courses round your hearts,
O cold Corinthians with whom I long have dwelt
O cold Corinthians, with whom I long have dwelt
And never ere this day have known myself.
Nor have ye known me. Now behold me free,
Ungyved by any chains of this man wrought;
Nothing desiring at your hands nor his.
Free, freer than the air or winged birds;
Strong, stronger than the blast of wintry storms;
And lifted up into an awful realm
Where is nor love, nor pity, nor remorse,
Nor dread, but only purpose.
There shall be
A horror and a horror in this land;
Woe upon woe, red blood and biting flame;
Most horrid death and anguish worse than death;
Deeds that shall make the shores of Hades sound
With murmured terror; with an awful dread
Shall move the generations yet unborn;
A horror and a horror in the land.
Jason.
[Medea goes within. Jason moves off slowly. Ægeus and Nikias go off
conferring in whispers.]
SCENE II.
[Time—After an interval; the evening of the same day. Scene—A street. A
crowd of people running to and fro.]
Nikias.
Ægeus.
Alas, a bloody rumour reached mine ears
Of awful purport: that the king lies dead—
Nikias.
Ægeus.
Woe! Alas!
Woe for the state, woe for our Kreon slain,
For hapless Glaukê, for our Jason, woe!
But three times woe for her that did the deed—
Her womanhood sham’d; her children basely wrong’d.
Nikias.
Ægeus.
Alas, consider; so the tigress springs
When that her cubs are menaced. ’Twas her love
That wrought the deed—evil, yet wrought for love.
Nikias.
Ægeus.
Nikias.
Stranger is yet to come.
How that the Colchian did send forth her sons,
Innocent doers of most deadly deed,
Has reached your knowledge. When the deed was done,
And the dead king lay stretched upon the floor
Clutching his daughter in a last embrace,
Arose great clamour in the palace halls;
Wailing and cries of terror; women’s screams;
A rush of flying feet from hall to hall;
The clanging fall of brazen instruments
Upon the marble.
The two tender boys,
Half apprehending what thing had befallen,
Fled forth unmarked, and all affrighted reached
The house of Jason, where Medea stood
Erect upon the threshold. From afar
Sounded and surged the fiercely frighted roar
Of the roused city, and, like waves of the sea,
Grew nearer ev’ry beating of the pulse.
Forth from the inmost chambers fled the slaves,
Made fleet with sudden fear; the little ones
With arms outspread rushed to the Colchian,
And clung about her limbs and caught her robe,
Hiding their faces.
And Medea stood
Calm as a carven image. As the sound
Of wrath and lamentation drew more near,
The pale lips seemed to smile. But when she saw
Her children clinging round her, she stretched forth
One strong, swart hand and put the twain away,
And gathered up the trailing of her robe.
I saw the deed, I, Nikias, with these eyes!
Then spake she (Zeus! grant that I may not hear
Such tones once more from human lips!). She spake:
“I will not have ye, for I love ye not!”
Then all her face grew alien. Those around
Stood still not knowing what she planned
Stood still, not knowing what she planned.
Then she
Forth from her gathered garment swiftly drew
A thing that gleamed and glinted; in the air
She held it poised an instant; then—O gods!
How shall I speak it?—on the marble floor
Was blood that streamed and spurted; blood that flow’d
From two slain, innocent babes!
Ægeus.
O woful day!
Nikias.
Ægeus.
Nikias.
After that
All is confusion; from all sides surged up
The people, cursing, weeping. ’Thwart the din
Each other moment the strained ear might catch
Medea’s name, or Jason’s, or the King’s;
And women wailed out “Glaukê” through their tears.
Then sudden came a pause; the angry roar
Died down into a murmur; and the throng
Grew still, and rolled aside like a clov’n sea.
And Jason strode between them till he reached
His own home’s threshold where the twain lay dead,
Long gazed he on their faces; then he turned
To the hush’d people; turned to them and spake:
(His face was whiter than the dead’s, his eyes
Like to a creature’s that has looked on Hell)
“Where is the woman?” Lo, and when they sought
Medea, no eye beheld her. And no man
Had looked upon her since that moment’s space
When steel had flashed and blood foamed in the air.
Then Jason stood erect and spake again:
“Let no man seek this woman; blood enough
Has stained our city. Let the furies rend
Her guilty soul; nor we pollute our hands
With her accursèd body....”
Ægeus.
Cease, my friend;
It is enough. You judged this thing aright;
This woman was dark and evil in her soul;
Black to her fiend-heart’s root; a festering plague
In our fair city’s midst.
Nikias.