A Practical Approach For Machine Learning And Deep Learning Algorithms Abhishek Kumar Pandey pdf download
A Practical Approach For Machine Learning And Deep Learning Algorithms Abhishek Kumar Pandey pdf download
https://ebookbell.com/product/a-practical-approach-for-machine-
learning-and-deep-learning-algorithms-abhishek-kumar-
pandey-50471710
https://ebookbell.com/product/machine-learning-for-civil-and-
environmental-engineers-a-practical-approach-to-datadriven-analysis-
explainability-and-causality-m-z-naser-50825920
https://ebookbell.com/product/machine-learning-for-adaptive-manycore-
machines-a-practical-approach-1st-edition-noel-lopes-4931048
https://ebookbell.com/product/practical-guide-for-biomedical-signals-
analysis-using-machine-learning-techniques-a-matlab-based-
approach-1st-edition-abdulhamit-subasi-10666766
https://ebookbell.com/product/statistics-a-practical-approach-for-
process-control-engineers-1st-edition-myke-king-6984552
Health Care Information Systems A Practical Approach For Health Care
Management Second Edition 2nd Karen A Wager
https://ebookbell.com/product/health-care-information-systems-a-
practical-approach-for-health-care-management-second-edition-2nd-
karen-a-wager-2386578
https://ebookbell.com/product/fluid-and-thermal-sciences-a-practical-
approach-for-students-and-professionals-nuggenhalli-s-
nandagopal-47165988
https://ebookbell.com/product/m5stack-electronic-blueprints-a-
practical-approach-for-building-interactive-electronic-controllers-
and-iot-devices-dr-don-wilcher-47655928
https://ebookbell.com/product/deep-learning-models-a-practical-
approach-for-handson-professionals-jonah-gamba-56649432
https://ebookbell.com/product/cloud-computing-a-practical-approach-
for-learning-and-implementation-1e-srinivasan-22041786
A Practical Approach for
Machine Learning and Deep
Learning Algorithms
Tools and Technique using MATLAB and Python
By
Abhishek Kumar Pandey
Pramod Singh Rathore
Dr. S. Balamurugan
FIRST EDITION 2019
ISBN: 978-93-88511-13-1
All Rights Reserved. No part of this publication can be stored in a retrieval system
or reproduced in any form or by any means without the prior written permission of
the publishers
Distributors:
Published by Manish Jain for BPB Publications, 20, Ansari Road, Darya Ganj, New
Delhi-110002 and Printed by Repro India Pvt Ltd, Mumbai
Preface
Writing a book is harder than I thought and more rewarding than I could
have ever imagined. First and foremost, I would like to thank my father
Mr. Krishan Dev Pandey for being coolest father ever and my mother Mrs.
Veena Pandey for allowing me to follow my ambitions throughout my
childhood. They taught me discipline, tough love, manners, respect, and
so much more that has helped me succeed in life. Also, my gratitude to
my elder sister Mrs. Arpna Tripathi, who always stood by me during every
struggle and all my successes. She has been my inspiration and motivation
for continuing to improve my knowledge and move my career forward.
Also, I’m eternally grateful to my wife Mrs. Kajal Pandey for standing
beside me throughout my career and writing this book. I also thank my
wonderful son Aarudra Pandey, for always making me smile and for
understanding on those weekend mornings when I was writing this book
instead of playing games with him. I hope that one day he can read this
book and understand why I spent so much time in front of my computer.
Last but not the least, I want to thank my friends who always backed me in
my good or bad days and everyone who ever said anything positive to me
or taught me something. I heard it all, and it meant something.
Abhishek K. Pandey
Assistant Professor (Computer science engineering)
ACERC, Visiting faculty, Mdsu, Ajmer Rajasthan, India
First of all, I would like to thank the authors for contributing their excellent
chapters to this book. Without their contributions, this book would not
have been possible.
I would like to dedicate this book to my father Late Mr. Raghunath Singh
Rathore and my mother Late Mrs. Prem Kanwar who always believed in
my ability to be successful. I am missing you and at the same time feeling
you both around me always. You are gone but your belief and blessing in
me has made this journey possible. Also, my gratitude to my elder brother
Mr Praveen Singh Rathore, who always stood by me during every struggle
and all my successes. Also, I would like to express appreciation to my
viii A Practical Approach for Machine Learning and Deep Learning Algorithms
beloved wife Mrs. Anita Kanwar who always support in the moments
when there was no one to answer my queries. I also thank my wonderful
son Raghavendra Singh Rathore, for made me stronger, better and more
fulfilled than I could have ever imagined. This book has been a long-
cherished dream of mine which would not have been turned into reality
without the support and love of these amazing people, who encouraged me
despite my not giving them the proper time and attention. Thanks to all my
friends specially Abhishek K Pandey for sharing my happiness at the start
of this project and following up with their encouragement when it seemed
too difficult to completed.
Pramod Singh Rathore
Assistant Professor (Computer science engineering)
ACERC, Visiting faculty, Mdsu, Ajmer Rajasthan, India
Abhishek Kumar
Abhishek KumarPandey Pandey is pursuing
is pursuing his
his Doctorate in co
Abhishek Kumar Pandey is pursuing his Doctorate in c
Doctorate
science frominUniversity
computer science
of Madras. andHedone M.Tech
is currently
science from University of Madras. He is currently researching
researching
in Computer
recognition
recognition Sci.IoT
using
using & Engineering.
IoT
concept and He
concept and hashas
has done
donebeen M.Tech in Co
M.Tech in C
Science
workingandand
as Engineering
an Assistantfrom Government
professor Engineering College
of Computer
Science Engineering from Government Engineering College
Rajasthan
Science at Technical
Aryabhatt University, Kota, India.
Engineering College He andhas been workin
Rajasthan Technical University, Kota, India. He has been workin
Assistant
Research professor
center, of Computer
Ajmer and also Science faculty
visiting at Aryabhatt Eng
Assistant professor of Computer Science at Aryabhatt Eng
College and Research
in Government center, MDS
University Ajmer and also Heaa visiting fa
College and Research center, AjmerAjmer. and also visiting fa
Government University
has total Academic MDS,
teaching Ajmer. He
experience has a
of amoretotal academic t
Government University MDS, Ajmer. He has total academic t
experience
than of
eight years more than
withthanmore 8 years
than 50 with many
publications publications
in reputedin reputed national
Nationalnational
and and inter
experience of more 8 years with many publications in reputed and inter
SCOPUS Journals
International Journals.likeHisWiley, Taylorarea
research and includes-
Francis Springer,
Artificial Elsevier Science Direct, A
intelligence,
SCOPUS Journals like Wiley, Taylor and Francis Springer, Elsevier Science Direct, A
Computer
Image Science, Poland, and
processing, IEEE. HisMining,
research area includes artificial
He intelligence
Computer Science,Computer
Poland, and Vision,
IEEE. DataHis researchMachine Learning.
area includes artificial intelligence
processing,
has computer
been in computer
International vision, data mining,
Conference machineoflearning.
Committee He has been in the Inter
many International
processing, vision, data mining, machine learning. He has been in the Inter
Conference Committee of many international conferences. He has been the reviewer f
conferences. He has beenofthe
Conference Committee reviewer
many for IEEE
international and Inder science
conferences. He hasJournal.
been the reviewer
and Inder Science Journal. He has co-authored three books published internationally a
He has authored 4 books published internationally
and Inder Science Journal. He has co-authored three books published and 7 edited book.. internationally
edited books. Currently, he is working on a Machine Learning book with BPB Publica
He
editedis also
books.member
Currently,of various National
he is working on aand International
Machine Learning professional
book with BPB Publica
is also a member of various national and international professional societies in the
societies
is also a in the fieldof of
member engineering
various national & and
research like Member
international of IAENG
professional societies in the
engineering and research like Member of IAENG (International Association of Eng
(International
engineering and Association
research of likeEngineers),
Member of Associate Member
IAENG (International
Associate Member of IRED (Institute of Research Engineers and Doctors), Associate M
of IRED
Association of Eng
(Institute
Associate of Research
Member of IRED Engineers
(Instituteand Doctors),
of Research Associate
Engineers
of IAIP (International Association of Innovation Professionals), Member of ICSES (Inter Member
and Doctors), of Associate
IAIP
of IAIP(International
Computer Science Association
(International AssociationofofInnovation
and Engineering Society), Professionals),
Innovation Professionals), Member of
Life Member of ISRD (International of ICSES (InterSo
Computer
ICSES
research &Science
(International and
Development), Engineering
Computer
Member ofSociety),
Science ISOC Life Member
and(Internet
Engineering of ISRD
Society),
Society). He has (International
Life been awarded So
research
Member &
of Development),
ISRD Member
(International of
SocietyISOC for (Internet
research
CV Raman life time achievement national award for 2018 in young researcher andSociety).
& He has
Development), been awarded
CV
MemberRaman
category. ofHelife
ISOC time achievement
(Internet
is serving Society).He
as an national
Associate has
Editor award
gotofSir for
CV2018
Global Ramanin young
Journal life timeresearcher
on Innovation, Oppoand
category.
achievement He
and Challenges is serving
national
in Applied as
award an Associate
for 2018
Artificial Editor
in young
Intelligence of Global
andresearcherJournal on Innovation,
and faculty
Machine Learning. Oppo
and Challenges
Category. He isinserving
AppliedasArtificial Intelligence
an Associate Editor andofMachine
Global Learning.
Journal on
Innovation, Opportunities and Challenges in Applied Artificial Intelligence
and Machine Learning.
Pramod Singh
SinghRathore
PramodSingh Rathoreis M.pursuing
Tech inhis Computer
doctorateSci. and Engi
Pramod
from Government Rathore isisM.
Engineering Tech in Computer
College Ajmer, Sci. and Eng
Rajasthan Te
in Computer Science & engineering and done
from Government
University, Kota, Engineering
India. I have been College
working Ajmer,
as an Rajasthan
Assistant ProfeT
M. Tech. He has been working as the Assistant
University,
Computer Kota, India.
at IAryabhatt
have been working as anCollege
Assistant Profe
professor Science
of Computer ScienceEngineering
at Aryabhatt and R
Computer
center, AjmerScience
and at
also a Aryabhatt
visiting Engineering
faculty in GovernmentCollege and
UniversiR
Engineering College and Research centre, Ajmer
center,
Ajmer. Ajmer and also
He hasfaculty a
authored visiting faculty in
a book in Network Government Univers
and visiting in Government Universitysimulation w
Ajmer.
publishedHe has authored
worldwide. a book in Network simulation
experiw
MDS Ajmer. He hasHe has edited
been a total and
academic
authored teaching
published
more
many than worldwide.
books7 with He
yearsWiley, has
with Taylor a total academic
many publications
& Francis Eureka in reputed exper
teaching natio
more than 7 years with many publications
international E-SCI SCOPUS Journals like Wiley, IGI GLOBAL, Taylor in and
reputed natio
Francis S
international E-SCI SCOPUS Journals like Wiley, IGI GLOBAL, Taylor
Elsevier Science Direct, Annals of Computer Science, Poland, and IEEE. He has co-au and Francis S
Elsevier Science Direct, Annals of Computer Science, Poland, and
three edited book and is currently working on Network Simulation Book with IEEE. He has co-a
three editedand
Publication, book and Learning
Machine is currently
bookworking
with BPBon Network His
Publication. Simulation
research areaBookinclud
wit
Publication, and Machine Learning book with BPB Publication. His research area includ
x A Practical Approach for Machine Learning and Deep Learning Algorithms
Preface iii
Foreword v
Acknowledgment vii
Assume you need to continue missing qualities as a major aspect of your informational
isolate them from whatever remains in the information. A few MATLAB capacities empower you t
situation of missing qualities for handling additionally. For instance, utilize the 'Missing Placemen
the sort function to move NaN to a complete number.
Pre-requisite to Machine Learning 3
TPUT
e chance you process normal information but still outcome is obtained as NaN. For this sit
ul to know ahead of time information containing NaN function and afterward overlook or exp
as normal information data.
4 A Practical Approach for Machine Learning and Deep Learning Algorithms
PROG
Program
>>meanData = mean(nanData)
>>meanData = mean(nanData)
meanData =
meanData =
NaN NaN
One approach
One approachto to
find
findNaN in information
NaN in information is utilizing
is utilizing the
the NaN NaN function,
function, which restores a coherent
showing the area of any NaN value.
which restores a coherent exhibit showing the area of any NaN value.
Program
PROGRAM = ismissing(xDatetime)
TFdatetime
TFdatetime = 1x5 logical array
1 TFdatetime
0 0 0 0= ismissing(xDatetime)
Assume you are working with a table or timetable made up of factors
TFdatetime = 1x5 logical array
with numerous information writes. You can discover the greater part of the
1 0qualities
missing 000 with one call with minimal utilization of time.
Assume you are working with a table or timetable made up of factors with numerous information wri
can discover the greater part of the missing qualities with one call with minimal utilization of time.
Pre-requisite to Machine Learning 5
Mean weight of the patients are classified based on the smoker status and
sexual orientation of patients.
>> G = findgroups (Gender, Smoker);
meanWeight = splitapply(@mean,Weight,G)
meanWeight =
130.3250
130.9231
180.0385
181.1429
Gender group contains clear cut qualities and smoker contains consistent
qualities. The information kinds of these table factors coordinate the
information about gender of smoker.
>>meanBMIfcn = @ (h,w)mean( (w ./ (h.^2) ) * 703);
BMI = splitapply (meanBMIfcn,Height,Weight,G)
BMI =
21.6721
21.6686
26.5775
26.4584
Patients BMI (Body Mass Index) are presented based on social occasion of
patients. Data conflicts of patients are classified based on height, weight,
register BMI and two data conflicts.
Gathering Self-Reports of Patients
Based on the poor or fair classification of patients data are categorized.
Regardless, split apply classifies patients in different measures as follows:
female nonsmokers & smokers and male nonsmokers & smokers. At this
point just check those patients categorized as Poor or fair can be utilizing
honest goodness asking for S and G. Through this two approaches of
checks, enlist the portion for each social affair.
Program
>> [G, gender, smoker] = findgroups (Gender, Smoker);
S = SelfAssessedHealthStatus ;
I = ismember (S, {‘Poor’ , ‘Fair’ });
numPatients = splitapply(@numel, S, G);
numPF = spiltapply(@numel, S(I), G(I);
numPF . /numPatients
ans =
0.2500
0.3846
0.3077
0.1429
Pre-requisite to Machine Learning 9
In below table consolidated value of patients are stated for patients and
recordings of variety of patient health in Fair or Poor health conditions of
patients are demonstrated as follow table.
Program
>> T = table(gender,smoker,numPatients, numPF,
stdDiastolicPF, stdDiastolicGE, BMI)
T =
gender smoker numPatients numPFstdDiastolicPF stdDiastolicGE BMI
Female false 40 10 6.8872 3.9012 21.672
Female true 13 5 5.4129 5.0409 21.669
Male false 26 8 4.2678 4.8159 26.578
Male true 21 3 5.6862 5.258 26.458
Double-precision arrays
>> x = 10;
whos x
Name Size Bytes Class Attributes
X 1x1 8 double Creation
You can make a twofold exactness exhibit utilizing the [] operator, such
as A = [1 2 3; 4 5 6]. What’s more, numerous capacities return twofold
accuracy clusters, such as sin.
Syntax
Y = double(X)
Description
Y = double(X) converts the values in X to double precision
Precision using the double function
Integer
Integer Classes
MATLAB® has 4 checked and 4 unsigned entire number classes. Stamped
makes enable you to work with negative entire numbers and furthermore
positive, yet can’t addresses the unsigned number in sorts either positive
or negative. In broad numbers unsigned structure are stated in degree of
expansion in huge numbers either positive or zero.
In number data MATLAB able to support number bytes of 1, 2, 4 and
8-bytes. You can use For every individual task memory and execution time
depends on accumulated data for entire number. Consider the example
entire number of 32-bit need not to store as value of 100.
Consider number class count of 8 where every characteristics are stored
are different kind and MATLAB try make required changes:
Creation of Data Integer
In MATLAB numeric data are stored as twofold precision drifting
point (twofold) as per usual. In order to store number data in MATLAB
previously convert the double integer in to desire entire number. Consider
the limits change as described in following table.
Consider a example in this we need to store data number of 325 in 16-bit
entire number allotted to variable x, typex = int16(325); On off chance
that the number being changed over to a whole number has a partial
part, MATLAB rounds to the closest number. On the off chance that the
desire entire number. Consider the limits change as described in following table.
Consider a example in this we need to store data number of 325 in 16-bit entire nu
allotted to variable x, typex = int16(325); On off chance that the number being changed o
whole number has a partial part, MATLAB roundsPre-requisite to the closest number.
to Machine 11the off chan
Learning On
the fragmentary part is exactly 0.5, at that point from the two similarly adjacent whole nu
MATLABfragmentary partsupreme
picks the one is exactlyesteem
0.5, at that point amount:
in large from the two similarly adjacent
whole numbers, MATLAB picks the one supreme esteem in large amount:
In case
In case ififyou
youwant
wantto change the data
to change the format of number
data format in defaultinformat
of number default format w
we have different characteristics to change the function. Fewer functions
different characteristics to change the function. Fewer functions consider for data conver
consider for data conversion are listed as follows: round, fix, floor and ceil.
listed as follows: round, fix, floor and ceil. In this fix function engages as default variable
In this fix function engages as default variables then it will be rounded off
will be rounded off to zero where their is no nonzero parts are listed.
to zero where their is no nonzero parts are listed.
x = 325.9;
int16(fix(x))
ans =
int16
325
Math activities that include the two whole numbers and skimming point
dependably result in a number information write. MATLAB rounds the
outcome, when vital, as per the default adjusting calculation. The case
beneath yields a output of 1426.75 in MATLAB at that point round off in
following most noteworthy whole number:
int16(325) * 4.39
ans =
int16
1427
12 A Practical Approach for Machine Learning and Deep Learning Algorithms
In thethe
event if youyou
change valuevalue
of NaN
ofinto number class than its resultant
In the In
event ifevent
you ifchangechange
value of NaN NaN
into into number
number class
class than itsthan its resultant
resultant outcom o
outcome
as 0 as is
inestimated
whole as 0
number as in whole
format. number
Example format.
of this Example
is stated of
as this is
follows:
as 0 stated
as in whole number format. Example of this is stated as follows:
as follows:
InInpoint
point numbers
numbers itit can
canbebeeither
eitherwhole
wholenumber or integers
number basedbased
or integers on two
on two folde
folded manner scalar qualities are stated. This resultant point produces
qualities are stated. This resultant point produces same information write as the
same information write as the whole number operands:
operands:
In point numbers it can be either whole number or integers based on two folded m
qualities are stated. This resultant point produces same information write as the w
operands:
In point numbers it can be either wholePre-requisite
number to orMachine
integers based13
Learning on two folde
qualities are stated. This resultant point produces same information write as the
operands:
EveryEvery
single paired
single task task
paired in which one one
in which operand
operandis aisvariety
a varietyof number
of number information c
the exception
information ofcompose
64-bit whole
(with thenumbers)
exceptionand the other
of 64-bit wholeisnumbers)
a scalar and
twofold,
the MATLA
activity
Every utilizing
other is a scalar
single component
twofold,
paired in insightful
task MATLAB
which one twofold
figures accuracy
the activity
operand math
utilizing
is a variety and afterward
component
of number chan
information
outcome back
insightful to the
twofold first number
accuracy math information
and afterward write.
changes For parallel
over
the exception of 64-bit whole numbers) and the other is a scalar twofold, MATL the tasks
outcome including a
number back to the
exhibit
activity first number
also,component
utilizing information
a scalar twofold,
insightful write.
MATLAB For parallel
twofoldformsaccuracy tasks including
the movement just as math
math and afterward c
a 64-bit
bit outcome
are wholefor
considered number exhibitaccuracy
increasing also, a scalar
rather twofold,
than MATLABloss.
minimizing forms
back to the first number information write. For parallel tasks including
the movement just as math type of 80-bit are considered for increasing
number
Integer exhibit
Class inrather also,
Larger a Smaller
scalar twofold,
andminimizing Value MATLAB forms the movement just as m
accuracy than loss.
bit are considered for increasing accuracy rather than minimizing loss.
Integer
ForClasseachin entire
Largernumber
and Smaller dataValue
compose, greater and most reliable nu
Integer Class in Larger and Smaller Value
addressed
For eachforentire
numbernumber data.
dataFor this similar
compose, greater andto table formatnumber
most reliable integers are dem
can be addressed
diminutive For eachforentire
characteristics number data. For
for creation
number ofthis similar
"Extent
data oftoValues"
compose, table format
greaterarea. integers
and most reliable
are demonstrated
addressed for in
number diminutive
data. characteristics
For this similarfor creation
to table of “Extent
format of
integers are d
The functions
Values” area.intmax('int8') is utilized to identify intmax and intmin qualities.
diminutive characteristics for creation of "Extent of Values" area.
The functions intmax(‘int8’) is utilized to identify intmax and intmin
The functions intmax('int8') is utilized to identify intmax and intmin qualities.
qualities.
In the event that you change over a number that is bigger than the m
estimation of a whole number information write to that compose, MATLAB sets it t
esteem. So event
In the also,
In thein the
that you
eventeventthatthat
change youchange
over
you achange
number over
thataaisnumber
over number that
bigger than isislittler
thatthe most
bigger than the th
than ba
of estimation
theextreme
whole estimation
number information
of a whole writing
number MATLAB
information sets
write it
to to the
that
of a whole number information write to that compose, MATLAB sets base
compose, esteem.
MATLAB
esteem. sets in
So also, it to
thethe greatest
event that esteem. So also,
you change overina number
the eventthat thatisyoulittler than the
Consider following example,
of the whole number information writing MATLAB sets it to thewhole
change over a number that is littler than the base estimation of the base esteem.
number information writing MATLAB sets it to the base esteem.
Consider following example,
14 A Practical Approach for Machine Learning and Deep Learning Algorithms
Moreover,
Moreover, when when the delayed
the delayed consequence
consequence of aofnumber
a number juggling assignm
juggling
Moreover,
entire numbers when the delayed
outperforms the consequence
best (or of aestimation
slightest) number juggling
created assignment
data sets, in in
t
assignment including entire numbers outperforms the best (or slightest)
entire sets
numbers outperforms
most minimal valuethe best (or slightest) estimation created data sets, in this M
estimation created datafor
sets,consideration:
in this MATLAB sets most minimal value for
sets most minimal value
consideration: for consideration:
those two limits are either uses single-precision with utilization of minimal
memory. Performance Metrices Analysis for evaluating logistics growth
and infrastructure development in India
Double-Precision Data Creation
In MATLAB default double numeric is defined based on the task
explanation in two folded manner as below:
The whos function demonstrates that in MATLAB type double value are estimate
x = 25.783
one in
The whos the
The whos name
functionofdemonstrates
x: demonstrates
function that in
thatMATLAB type type
in MATLAB double valuevalue
double are estimated
are estim
The whos function demonstrates that in MATLAB type double value are
one inone
theinname of x: of x:
the name
estimated by, one by one in the name of x:
Use of float if you essentially need to affirm x as drifting number value. In this lim
as of Usedesire
1Use
for of floatdrifting
if you essentially
point with need to affirm x as drifting number value. In function:
Use float
thisof
if you
float
limit if essentially need sensible
you essentially
is consider need
as 1 for desire
information
to drifting
affirm x as drifting
to affirm
point xwith
0 as
as sensibledifferent
number
drifting number point
value. In this
value.
information In limit
this
as 1 for desire
as01asfor drifting
desire point
different point
drifting with sensible information 0 as different point function:
point with sensible information 0 as different point functio
function:
This can be converted into other data formats like numeric, strings, cha
two This
folded
can manner
This can
This
be be inbeMATLAB
canconverted
converted converted
into other datafunction.
into other
into data
other
formats With
data
like the
formats precision
like
formats
numeric, point
numeric,
strings, delineation
strings,
likecharacter
numeric, charac
strings,
evaluated
two folded
two for
datafolded checking
inmanner manner
two folded whole
in manner
MATLAB number.
in MATLAB function.
in MATLAB WithWith
function.
function. the precision
With point
the precision
precision delineation
point
point delineatc
evaluated for checking
evaluated
delineationforchangeswhole
checking number.
are whole number.
evaluated for checking whole number.
Single-Precision
Single-Precision Operations
Operations
• You
You can can perform
perform essential
essential number number juggling
juggling taskstasks in single
in single or any
or any other differen
other different task classes however outcome is obtained as single
however outcome is obtained as single for any of following characteristics: for
any of following characteristics:
Single class
• Single class
Double class
• Double class
Char class
• Char class
Logical class
• Logical class
Consider as following example in this double class is set as 7.5 default value wher
Consider as following example in this double class is set as 7.5 default
single class:
value where the result is single class:
In MATLAB
In MATLAB positive and negative
positive infinity infinity
and negative ranges are assigned
ranges are based on based on
assigned
the function realmax and -realmax function respectively. In this number
and -realmax function respectively. In this number higher than realmax are
higher than realmax are positive and number lower than -real max are
lower than -real max are negative values as stated below:
negative values as stated below:
Single-Precision Largest
Single-Precision andand
Largest Smallest Values
Smallest Values
MATLAB
MATLABfunction
functionwith
withrealmax
realmaxandandrealmintheir
realmintheirwill
willbebea ‘single’ argument to
a ‘single’
of argument
least and to
extreme datatype
single data typeofqualities:
least and extreme data type qualities:
Single-Precision Largest and Smallest Values
Single-Precision Largest and Smallest Values
MATLAB function with realmax and realmintheir will be a ‘single’ argument to s
MATLAB
of least and function withtype
extreme data realmax and realmintheir will be a ‘single’ argument to
qualities:
of least and extreme data type qualities: Pre-requisite to Machine Learning 19
Accuracy Calculation
Accuracy in Floating-Point
Calculation Data Data
in Floating-Point
Accuracy Calculation in Floating-Point Data
InIncase
caseif the drifting
if the pointpoint
drifting and estimation are obtained
and estimation correctlycorrectly
are obtained than the than the lim
the limitation
In case
PC’s lies
hardware.in the
if the InPC’s
drifting hardware.
point
results theandIn estimation
results the likelihood
likelihood are are
values valuescorrectly
obtained
had are had than the l
lacking bits of addre
lacking
the PC’srangebits of
hardware.address for minimal accuracy range hence it is considered
accuracy henceInit results the likelihood
is considered values
as truncated are had lacking
consequence value. bits of addr
as truncated
accuracy rangeconsequence
hence it is value.
considered as truncated consequence value.
Double-Precision Accuracy
Double-PrecisionAccuracy
Accuracy
Double-Precision
In two In foldtwo fold precision
precision number itnumber
containsit set
contains set of
of number number
values with values
exact with exac
lies aIn
theirvalues. two foldrange
Inprecision
PC their precision
lies number
a between
precision two
rangeithigher
contains set of
numbers.
between two number
this values
For numbers.
higher with exa
gap between de
their
Forlies
thisagapprecision
betweenrange between
degrees confinestwo higher
results numbers.value
of precision For with
this eps
gap between d
function. In following example division of 5 for precision value is stated
as below:
results of precision value with eps function. In following example division of 5 for
results of precision value with eps function. In following example division of 5 f
value is stated as below:
value is stated as below:
results of precision value with eps function. In following example division of 5
value
20is stated as below:
A Practical Approach for Machine Learning and Deep Learning Algorithms
The above example stated that in two folded manner for division 5 precision r
The above example stated that in two folded manner for division 5 precisio
between 5 and 5 + eps(5). For proper estimation of precision values of 5 the exact
between 5 and 5 example
+ eps(5).stated
For that
proper estimation of precision values5of 5 the ex
calculatedThe
withabove
eps(5)
The function.
above example stated inthat
twoinfolded manner
two folded for division
manner for division 5 precis
calculated withrange
precision eps(5)lies
function.
between 5 and 5 + eps(5). For proper estimation of
between 5 and 5 + eps(5). For proper estimation of precision values of 5 the
In this eps(x) function relies on exact
variable
valuex.isFurther in below example variable x is gre
thisprecision
Incalculated
eps(x)withvalues
function of relies
eps(5) 5function.
the on variable calculated
x. Furtherwith eps(5)
in below function.
example variable x is
MATLABInfunction eps(x):
MATLAB thisfunction eps(x): relies on variable x. Further in below example
eps(x) function
In this eps(x)
variable x isfunction relies
greater than on variable
MATLAB x. Further
function eps(x): in below example variable x i
MATLAB function eps(x):
On the
On the off chance
thatthat eps function have contention
desire contention information to
On off
thechance
off chance epsthat
function
eps have desire
function have desireinformation
contentiontoinformation
eps(1) function in MATLAB for in
exact numberforcalculation from separation value 1.
eps(1)estimate
functioneps(1) function
in MATLAB forMATLAB
exact numberexact number
calculation calculation from
from separation value 1.
On the off chance that eps function have desire contention informatio
separation value 1.
Accuracy of Single-Precision
Accuracy
eps(1) of Single-Precision
function
Accuracy ofin MATLAB for exact number calculation from separation value 1.
Single-Precision
It have certain distance between two single number for precision calculation. Cons
ItIthave
havecertain
certaindistance between two single number for precision calculation. C
Accuracy
an integer of of typedistance
for thatbetween
Single-Precision
single precisiontwo single
count is number
returnedforwith
precision
eps(x) function.
an integer of single
calculation. type
Consider for that
x is anbetweenprecision
integer of singlecount is
typenumber returned with
for that precision eps(x) functi
count
consider below
It haveexample,
certain distance two single for precision calculation.
consider below example,
is returned with eps(x) function. For this consider below example,
an integer of single type for that precision count is returned with eps(x) func
consider below example,
The
The outcome
outcomeisismore
morenoteworthy
noteworthythanthan
eps(5). Since
eps(5). less single-accuracy
Since less single-accuracy numb
The outcome
numbers than is more
twofold noteworthy
accuracy numbers, than eps(5).
openings Since numbers
between less single-accuracy n
twofold accuracy numbers, openings between numbers of single valueofare higher t
twofold accuracy
single numbers,
value are openings
higher than between
gap between numbers
number of values.
precision single This
value are high
between number precision
The outcomevalues.
is moreThis enables single-accuracy
noteworthy number
than eps(5). Since minimal precis
less single-accuracy
between number precision values. This enables single-accuracy number minimal pr
that oftwofold
double accuracy
- precisionnumbers,
value. openings between numbers of single value are hig
that of double - precision value.
between number precision values. This enables single-accuracy number minimal
that of double - precision value.
Pre-requisite to Machine Learning 21
Floating-Point
Floating-Point Arithmetic Common
Arithmetic Common Point Avoidance
Point Avoidance
Floating-Point Arithmetic Common Point Avoidance
All errands
All function of MATLAB
errands function are performed
of MATLAB in two folded
are performed in twomath
folded math pr
precision
IEEE 754 based
All errandson
standard.IEEE 754
function
Since ofstandard.
MATLAB
PCs Since PCs simply
are performed
simply address address
numbersin twonumbers
foldedtomath
restricted prec
precisio
IEEErestricted to precision value (twofoldaddress
exactness relatedrestricted
to 52 bits),
exactness related to 52 bits), nonintuitive results are obtained via numericalv
754 standard. Since PCs simply numbers to precision
nonintuitive
exactness results
related to 52are obtained via numerical computation. In MATLAB
MATLAB this are notbits), nonintuitive
considered as bug. results are obtained via numerical co
this are not considered as bug.
MATLAB this are not considered as bug.
Utilize
Utilizeaccompanying caseswhich
accompanying cases whichenable
enable to to distinguish
distinguish cases
cases mentioned below:
mentioned
Utilize accompanying
below: cases which enable to distinguish cases mentioned below:
Illustration 1 — Round-Off or What You Get Is Not What You Expect
Illustration 1 —1Round-Off
Illustration — Round-Off or What You
or What YouGet
GetIsIsNot
Not What YouExpect
What You Expect
In beloe example 4/3 decimal number is nor precision value its in two-folded
In beloe
In Further
beloe example 4/3
example decimalnumber
number isis nor
nor precision
precision value itsitsinintwo-
resultant4/3 decimal
value is not obtained as 0 instead it isvalue
denoted two-folded pr
as eps.
Further resultant value is not obtained as 0 instead it is denoted 0asinstead
folded precision value. Further resultant value is not obtained as eps.
it is denoted as eps.
Between skimming point numbers their lies holes. With increase in num
higher: Between skimming point numbers their lies holes. With increase in numb
Between
Between
higher: skimming skimming pointtheir
point numbers numbers theirWith
lies holes. liesincrease
holes. With increase in num
in number
higher:
holes get higher:
In MATLAB
In MATLAB function for sudden
function for cancellation fewer examples
sudden cancellation fewerare utilized
examples are ut
which are expm1
expm1 and log1p. and log1p.
Example 3 — Operation of Floating-Point and Linear Algebra
Example 3 — Operation of Floating-Point and Linear Algebra
Round-off value, cancellation and diverse qualities skimming guide math
unite toward Round-off value,figuring
make startling cancellation and diverse
when dealing with thequalities
issues ofskimming
direct guide
make startling
factor based figuring
math. MATLAB when dealing
alerts with
that the thewith
going issues of direct
matrix A is notfactor based
alerts
very much shaped and along these lines the system Ax = b may beand
that the going with matrix A is not very much shaped along these li
fragile
=
to blittle
mayirritations:
be fragile to little irritations:
These
These are are
just just a couple
a couple of theof the indicating
cases cases indicating
how IEEE how IEEEpoint
coasting coasting point
math influences
calculations calculations inThe
in MATLAB. MATLAB. The calculations
calculations performedperformed
in IEEEin 754 numb
IEEE 754 number
influenced; which juggling are influenced;
incorporates which
applications incorporates
written in C orapplications
FORTRAN and MAT
written in C or FORTRAN and MATLAB
COMPLEX NUMBER
Complex Number
ComplexComplex
numbers numbers contain
contain two two
distinct distinct
parts parts
as real and as real and Inimaginary. I
imaginary.
parts
this imaginary parts are square root of -1 unit. In MATLAB this real andparts are de
are square root of -1 unit. In MATLAB this real and imaginary
orimaginary
j. parts are denoted by letters i or j.
With announcement exhibits one
With announcement technique
exhibits one for making for
technique an making
astounding
an astounding
MATLAB. In this variable x is defined by many - sided precision value of two p
not available value.
Complex numbers contain two distinct parts as real and imaginary.
parts are square root of -1 unit. In MATLAB this real and imaginary parts are de
or j.
24
With announcement exhibits one technique for making an astoundin
A Practical Approach for Machine Learning and Deep Learning Algorithms
MATLAB. In this variable x is defined by many - sided precision value of two
not available value.
an function in MATLAB. In this variable x is defined by many - sided
precision value of two part and part 3 as not available value.
x = 2 + 3i
Infinity
Infinity
MATLAB® represents unprecedented value inf. Boundlessness comes to
MATLAB® represents unprecedented value inf. Boundlessness comes
fruition in view of errands like division by zero and surge, which provoke
view of errands like division by zero and surge, which provoke results excessiv
results excessively sweeping, making it impossible to address as general
making it impossible to address as general skimming point regards. MATLAB mo
skimming point regards. MATLAB moreover gives a limit based on IEEE
limitarithmetic
based ondepiction
IEEE arithmetic depiction asininf
as inf for permeability for permeability
positive in positive
manner regarded as mann
double-precision.
double-precision.
CoupleCouple instance
instance of declarations
of declarations which which
leads toleads to positive
positive or negative bou
or negative
boundlessness in MATLAB
MATLAB is showed up here. is showed up here.
Use Use
the the is inf
is inf functiontotoaffirm
function affirmthat
that xx isispositive
positiveoror
negative perpetuation:x
negative perpetuation:x = log(0
= log(0);
NaN
NaNMATLAB addresses esteems that are not a complex numbers with a one of
a kind regard called NaN, which stays for “Not a Number”. Explanations
MATLAB
like 0/0 and inf/inf addresses esteems
result in NaN, thatcalculating
as do any are not aexercises
complex numbers with a
including
regard called NaN, which stays for "Not a Number". Explanations like 0/0 an
a NaN:
in NaN, as do any calculating exercises including a NaN:
MATLABfunction
MATLAB function NaN
NaN returns
returns depiction
depiction of IEEE
of IEEE doubledouble scalar value. Fo
scalar value.
value for hexadecimal is stated as follows,
26 A Practical Approach for Machine Learning and Deep Learning Algorithms
MATLAB function NaN returns depiction of IEEE double scalar value. For s
MATLAB function NaN returns depiction of IEEE double scalar value. For s
value
Forfor hexadecimal
significant is stated
NaN value as follows, is stated as follows,
for hexadecimal
value for hexadecimal is stated as follows,
ToTo
evaluate thethe
evaluate array elements
array of NaN
elements MATLAB
of NaN always
MATLAB uses
always isnan
uses function:
isnan
To evaluate the array elements of NaN MATLAB always uses isnan function:
function:
MATLAB
MATLAB software
software represent
represent a"Not provides
a”Not a Number” a Number" provides curre
current value
MATLAB software represent a"Not a Number" provides curre
NaNof representations
NaN in alternate
representations in manner
alternate mannerfurther it itdeals
further with
deals withassorted
assorted depictions e
NaN representations in alternate manner further it deals with assorted depictions
NaN. Regardless,
depictions in certain
equivalently uncommon
for NaN. stages
Regardless, (due
in certain to gear hindrances),
stages MATLAB
NaN. Regardless, in certain uncommon stages (due touncommon
gear hindrances), MATLAB
right piece
(due casehindrances),
to gear for NaN representation
MATLAB doesinnotalternate
have right manner
piece all
casethrough
for estimat
right piece case for NaN representation in alternate manner all through estimat
configuration portrayed
NaN representation beforehand
in alternate bit of
manner all NaN.
through estimation rather uses
configuration portrayed beforehand bit of NaN.
NaNconfiguration portrayed beforehand bit of NaN.
Logical Operations
NaN Logical Operations
NaN Logical Operations
Generally, two NaN functions are proportional to each other it de
Generally, two NaN functions are proportional to each other it de
exercises for two
Generally, returning false value
NaN functions with involvement
are proportional to eachof NaN
other beside
it deals a test lopsided
with
exercises
lucid for returning
exercises for false false
returning valuevalue
withwith
involvement of of
involvement NaNNaN beside
besideaatest lopside
NaN):
NaN):
test lopsidedness, (NaN ~= NaN):
Previously
Previouslyset
setvalue
Previously set
totoxxand
valueto
value xand
anddisplay
display
display
inin5-digit
5-digit
in 5-digit
scaled
scaled
scaled
fixed
fixedfixed
point:
point:point:
Set
Setthe
theformat
the formattoto5-digit
format 5-digit floating
5-digitfloating
floatingpoint:
point:
point:
28 A Practical Approach for Machine Learning and Deep Learning Algorithms
Set
Setthe
Set theformat
the format
formattoto
to15-digit scaled
15-digit
15-digit fixed
scaled
scaled fixedpoint:
fixed point:
point:
Set
Set the
the format
format toto
15-digit scaled
15-digit fixed
scaled point:
fixed point:
InIn
Insmall
In integer
small
small ratio
integer
integer format
ratio
ratio formatneed
format needtoto
need set'rational'
toset
set 'rational'
‘rational’
'rational'output: output:
output:
small
In integer
small ratio
integer format
ratio need
format needto set
to set 'rational'output: output:
InIn
Inhexadecimal
hexadecimal
In format
hexadecimal
hexadecimal integer
format
format
format integervalue
integer
integer valueisis
value isset
is settoto
set
set toxxxxand
to andused
and usedfor
used fordisplay
for with
display
display withbase
with base16:
16:
In hexadecimal
base 16: format integer value is set to and
x andused
usedfor display
for with
display base
with 16:
base 1
Program
Program
Program
Program for
forNumeric
for Numeric
for Numeric
Numeric Setting
Setting Format
Setting
Setting Format
Format
Format
Program for Numeric Setting Format
To by Tochance
by need to modify
chance need tocertain
modifyvalues in program
certain values instead
inin of numeric
To
To by
by chance
chance need
need to
to modify
modify certain
certain values
values inprogram
program
program instead
insteadofof
instead ofnume
num
num
the values,
principle get
Tothe byprinciple
chance
affiliation affiliation
need
utilizing to utilizing
modify
similar similar
certain
function function
values
addition in
to addition
program
variable. toinstead
The pathof nu
the principle
the principle affiliation
affiliation utilizing
utilizing similar
similar function
function addition
addition to to variable.
variable. The pathtow
The path tt
variable.
the The path
principle towards
affiliation strategysimilar
utilizing will reestablish
function the settingto
addition utilizing
variable. The path
will
will
willreestablish
reestablish
reestablish the
thesetting
setting
thethe
settingutilizing
utilizing
utilizing appeared
appeared
appeared function
function
functionhere:
here:
here:
appeared
will function
reestablish here:
setting utilizing appeared function here:
Program for Numeric Setting Format
To by chance need to modify certain values in program instead of n
the principle affiliation utilizing similarPre-requisite
functionto Machine
addition to variable.
Learning 29 The pat
will reestablish the setting utilizing appeared function here:
Integer Type
Combining Integer Type
Overview
Overview
Overview
If you join particular number created system (e.g., set apart in unsigned
Ifyou
value or If8-bityou joinparticular
join
entire particular
numbers number
innumber createdsystem
16-bit).created system
Typically, (e.g.,set
(e.g.,
in MATLAB set apartininunsign
apart
with unsig
entirenumbers
entire
compose numbers inin16-bit).
of typical 16-bit). Typically,
Typically,
function ininMATLAB
all structure MATLAB
are withIn
with
segmented. compose
compose
MATLAB ofoftypical
typicalfunc
fu
are
are segmented.
segmented. InIn MATLAB
MATLAB resulting
resulting system
system are
are set
set to to desire
desire
resulting system are set to desire data kind uttermost left segment data data
data kind
kind utte
utterm
datacross
data
cross cross section.
section.
section. Forexample,
For
For example,example, thedelayed
the
the delayed delayed consequence
consequence
consequence going with going
going withinterface
with
interface interfaceth
checked
checked entire
entire numbers:
numbers:
three 16-bit vector checked entire numbers:
Exampleofof
Example
Example ofCombining
CombiningInteger
Combining IntegerSizes
Integer Sizes
Sizes
In the wake
InInof
theimpairing
the
wake the
wakeofof whole number
impairing
impairing link notices
thewhole
the whole number
number as link
appeared above,
linknotices
noticesasasappeared
appearedab
connect the
accompanying accompanying
accompanyingtwo twonumberstwo numbers
numbersonce
onceand once and
andafterward afterward
afterwardswitch switch
switchtheir their
theirrequest.
request.The
Thearri
ar
request. The arrival esteem relies upon the request in which the whole
uponthe
upon therequest
requestininwhich
whichthe
thewhole
wholenumbers
numbersare areconnected.
connected.The Thefurthest
furthestleft
lef
numbers are connected. The furthest left write decides the information
informationcompose
information composeofofvector
vectorcomponents:
components:
compose of vector components:
Theprinciple
The
The principle principle
action actionreestablishes
action
reestablishes reestablishes
16-bit number 16-bit
16-bit number
number
vector. vector.Entire
Entire vector.
numbers Entirenumb
num
vector
vector count.
count. InIn this
this element
element are
are set
set toto 127
127 with
with function
function int16(5000),
int16(5000),
returns 8-bit vector count. In this element are set to 127 with function the
the
motivating force for a 8-bit checked
motivating force for a 8-bit checked number. number.
Similartenets
Similar tenetsapply
applytotovertical
verticallink:
link:
30 A Practical Approach for Machine Learning and Deep Learning Algorithms
The principle action reestablishes 16-bit number vector. Entire num
vector count. In this element are set to 127 with function int16(5000), the
int16(5000), the most outrageous motivating force for a 8-bit checked
motivating force for a 8-bit checked number.
number.
Similar
Similar tenets applytotovertical
tenets apply verticallink:
link:
Note
Note
You can
You canlocate thethe
locate mostmost
extreme or leastorqualities
extreme for any MATLAB
least qualities for anywhole
MATLAB who
number write
utilizing utilizing
the intmax andtheintmin
intmax and intmin
functions. functions.like
Functions Functions
realmaxlike
and realmin a
realmax
coasting. and realmin are used for point coasting.
Signed withPresently
Unsignedsimilar
Combination
exercise is marked and unsigned with whole numbe
Signed with Unsigned Combination
furthest similar
Presently left component
exercise is decides the unsigned
marked and informationwith write
whole for all components
numbers.
network:
Once more, the furthest left component decides the information write for
all components in the subsequent network:
MATLABevery
MATLAB assesses assesses
elementevery element concatenating
concatenating prior into aprior into a consolidated
consolidated
accompanying proclamation assesses to a 8-bit marked number (equivalent to value 50) an
cluster. As such, the accompanying proclamation assesses to a 8-bit marked
number with unsigned number in 8-bit (i.e in this value is set to zero as unsigned value instea
number (equivalent
consolidated as twoto components.
value 50) andInprovided
second with whole number
component with however g
holds esteem
unsigned number
unsigned int8 type:
in 8-bit (i.e in this value is set to zero as unsigned value
instead of 50) preceding are consolidated as two components. In second
component holds esteem however goes up against the unsigned int8 type:
MATLAB
MATLAB assesses
assesses every
every element
element concatenating
concatenating prior prior into
into aa consolidated
consolidated cc
accompanying MATLAB assesses
accompanying proclamation
proclamation assesses to
assesses toevery
aa 8-bit
8-bitelement
marked
marked concatenating
number
number (equivalentprior into
(equivalent to a consolida
to value
value 50)
50) and
and
numberaccompanying
number with
with unsigned proclamation
unsigned number
number in assesses
in 8-bit
8-bit (i.e
(i.e into a
in this8-bit
this valuemarked
value isis set
set tonumber
to zero
zero as (equivalent
as unsigned to value
unsigned value
value instea5
instea
number
consolidated with
as unsigned
two number
components. in In8-bit (i.e
second in this value
component
consolidated as two components. In second component holds esteem however g is set to
holds zero as
esteem unsigned
however value
g
consolidated as two components. InPre-requisite second tocomponent
Machine Learningholds 31esteem howe
unsigned
unsignedint8 type::
int8type
unsigned int8 type:
Combining
Combining
Combining Integer
andand
Integer
Integer NonNon
and Non Integer
Data Data
Integer
Integer Data
Combining Integer and Non Integer Data
In the event Inthat
In theyouevent
the join numbers
event that with double,
that you
you join single, or with
join numbers
numbers logical classes,single,
with double,
double, single, oror lo
l
all components
components In
havethe event
subsequent that
lattice you join
provided numbers
with with
information double,
kind single,
components have have subsequent
subsequent lattice
lattice provided
provided with
with information
information kind
kind furthest
furthest ll
components
furthest leftinstance, have subsequent
whole number. In certain lattice provided
instance, components with information kind furt
In
In certain
certain instance, components
components accompanying
accompanying are setaccompanying
are set to
to int32
int32 vector:
vector:
are setIntocertain instance, components accompanying are set to int32 vector:
int32 vector:
Empty
Empty Matrices
Matrices
Empty
Empty Matrices
Matrices
In theIn the
Inevent event
event that
the that
In theyou buildyou
that
event
you build
build aa framework
a framework
that
framework
you buildof amatrix
of
of matrix
framework
matrix
element element
element
matrix,
of where
matrix
matrix,
matrix, w
element matr
w
overlooked
overlooked
void lattices as
as subsequent
subsequent
overlooked grid:
grid:
as subsequent
overlooked as subsequent grid:grid:
Concatenation
Concatenation Examples
Examples
Concatenation
Concatenation Examples
Examples
Single and double type combination
Combination of single and double value matrix provide double value. In
this 5.73*10^300 is excessively tremendous, making it impossible secured
as single function, (In this the function class is used as a piece of this case
reestablishes the data compose for the data regard).
Singleand
Single anddouble
doubletypetypecombination
combination
Combination of
Combination of single
single and
and double
double value
value matrix
matrix provide
provide double
doubl
5.73*10^300isisexcessively
5.73*10^300 excessivelytremendous,
tremendous, making
making itit impossible
impossiblesecured
securedas
assingle
single
the function class is used as a piece of this case reestablishes
the function class is used as a piece of this case reestablishes the data comp the data com
32 A Practical Approach for Machine Learning and Deep Learning Algorithms
regard).
regard).
Double and
Double and Integer
Integer type
typeCombination
Combination
Double and Integer type Combination
Joining entire number characteristics with double values yields a number
Joining
cross section.
Joining Note entire
that
entire number characteristics
the halfway
number with
part of with
characteristics double
pi isdouble values
changed yields aa number
in accordance
values yields number cross
cross se
s
halfwaypart
halfway partof
ofpipiisischanged
changedininaccordance
accordancewithwiththe
thenearest
nearestentire
entirenumber.
number.(The
(Theint8
int8function
functionuu
with the nearest entire number. (The int8 function used as a piece of this
casechanges
case changesover
overits its numericconflict
conflicttotoaa8-bit
8-bitnumber).
number).
case changes over numeric
its numeric conflict to a 8-bit number).
Double
Double
Double and
and
and Character
Character
Character type
type combination
type combination
combination
Toretain
To retain character
character matrix
matrix valuesvalues of double
ofdouble
double and character
andcharacter
character needto beneed
tobe to be
combined.
To retain character matrix values of and need combined.
combined.
InInInthisscenario
this scenarioMATLAB
MATLABvalues
this scenario
valuesare
arechanged
MATLAB values
changedto
todouble
doubleelement
are changed
elementvalue
valueto
to double element
toequivalent
equivalent character v
value to character va
equivalent character values:
Doubleand
Double andLogical
Logicaltype
typeCombination
Combination
Double and Character type combination
To retain character matrix values of double and character need to be combined.
Pre-requisite to Machine Learning 33
In this scenario MATLAB values are changed to double element value to equivalent character va
Double
Double andand Logical
Logical typetype Combination
Combination
Double matrix is obtained through combination of double and logical
Double matrix is obtained through combination of double and logical value matrices. MA
value matrices. MATLAB to delineation logical value need to change in
logical value need to change in true and false element:
true and false element:
PROGRAM
>>figure
Program
histogram(Location(SelfAssessedHealthStatus<=’Fair’) )
>>figure
title(‘Location of Patients in Fair or Poor Health’)
histogram(Location(SelfAssessedHealthStatus<=’Fair’) )
title(‘Location of Patients in Fair or Poor Health’)
Output OUTPUT
PROGRAM
>>figure
36 A Practical Approach for Machine Learning and Deep Learning Algorithms
Program
>>figure
pie (SelfAssessedHealthStatus) ;
title (‘Self Assessed Health Status From 100
Patients’)
Output
ProgramPROGRAM
>>figure>>figure
A = countcats (SelfAssessedHealthStatus);
A = countcats
C = categories (SelfAssessedHealthStatus);
(SelfAssessedHealthStatus);
pareto (A,C) ;
C = categories (SelfAssessedHealthStatus);
title (‘Self Assessed Health Status From 100
pareto (A,C) ;
Patients’)
OUTPUT
Random documents with unrelated
content Scribd suggests to you:
aconite in proper proportion is administered to reduce fevers and
inflamed conditions. Astrologically, aconite is a herb of Saturn.
Saturn is, like the herb, cold and contracting whilst Mars is warm and
expanding. The blood and mental faculties are liable to disorder in
certain people born with Aquarius rising at birth or with the Sun
therein: and the sapphire was the panacea which also, it was said,
stopped bleeding of the nose if held against the temples. In old
pharmacies the sapphire held a place of importance and its reputed
curative virtue led to its employment as a charm against swellings,
boils, ruptures, profuse perspirations, poisons, melancholy, flatulence
and other bodily inharmonies. It was also employed as a charm
against enchantment, danger, treachery, quarrels between friends,
evil suggestions and undue influence. Porta in his work on “Natural
Magic,” 1561, writes of the value of the sapphire in all magical and
religious ceremonies, protecting the wearer from the Larvae of the
lower spiritual world and from the snakes and poisonous reptiles of
the world of matter. It was considered intensely powerful as a
destroyer of poisonous insects which it was said to kill if placed at
the mouth of a vessel in which they were imprisoned. Boetius (“De
Natura Gemmarum”) writes that the sapphire was worn by priests as
an emblem of chastity, for none of evil thoughts, bad minds or
vicious habits dare wear this gem of pure heavenly love which was
used of old by those consulting the sacred oracles. In his messages
to the Bishops of the 12th century Pope Innocent III asked that they
should have their pure gold rings set with “that stone which is the
true seal of secrecy.” When the Roman Catholic church received her
novices into the Sisterhood a sapphire ring blessed by a Bishop was
given as a holy symbol of the mystical marriage. In the famous
Pulsky Collection—mentioned by Mr. C. W. King—there is a wonderful
intaglio on a fine sapphire of Pope Paul III by the great Alessandro
Cesati, three-quarters of an inch square. St. Jerome (4th and 5th
centuries) wrote that the sapphire saved its wearer from captivity
and pacified his enemies, also that it gained the favour of princes.
Some old authors recommend the sapphire as a stone for the hands
of Kings. It is a stone rather of Democracy. Perhaps, however, the
symbolic idea was that the King as the servant of the people could
adorn his hand with no more fitting emblem. It is traditionally
reported that the ring of King Solomon was a sapphire, which stone
was believed by some of the masters to be the special talisman of
the Jews. One kept in the Holy of Holies as a holy emblem is said to
have been saved and concealed for the people of Israel when Titus
sacked Jerusalem. Moses was born with the Sun rising in the
ascending Aquarius, hence the adoption of either the sapphire as we
know it today or the lapis lazuli as national gems is perfectly natural.
The sapphire in the signet of Constantine, weighing 53 carats, which
now lies amongst the treasures in the Rinuccini Cabinet at Florence,
is cut in intaglio with a portrait of the Emperor in the guise of
Nimrod attacking a great boar with his spear in the Cæsarean plains.
As a gem of heavenly and beautiful thoughts the sapphire was
regarded as a scare against devils, evil forces, witchcraft, sorcery
and all forms of villainy. The Buddhists symbolically say that a
sapphire opens a closed door, brings prayerful feelings and sounds
the sweet bells of peace. It is a stone of truth, constancy, friendship,
goodness and angelic help; it warns against hidden dangers and
heightens the imagination and psychic forces. It rebels against
intoxication and refuses to adorn the hand of a drunkard; it helps
hopes and wishes that are truly just and right. It was the third stone
of the Nao-rattan and the fourth of the seven rings which Iarchus
brought down from the angelic spheres as a gift to Apollonius of
Tyana. It was the fourth stone of the magical necklace of Vishnu,
and according to the Ramayana sapphires fell from the eyes of the
slain god Maha Bali.
An Irish Countess lent for exhibition to the South Kensington Loan
Collection in 1872 the sapphire ring which Lady Scroope threw from
the window of the death chamber of Queen Elizabeth to Sir Robert
Carey who was waiting below for this signal of the Queen’s passing
in order to convey the news post haste to James. In the Sepher of
Solomon “which was set together in the desert by the Children of
Israel in the Holy Name of God, following the influences of the
stars,” a charm for favouring desires, for procuring invisibility, and
certain benefits was a light coloured sapphire on which was
engraved a mermaid holding a twig in one hand and a mirror in the
other. The times for the construction of this talisman (which was to
be set in a ring and worn inwards for escaping the eyes of others)
was when the moon well aspected, was passing through the 5th, 6th
and 7th degrees of the sign Aquarius. Another charm from the same
source is the figure of a young man crowned, a circle round his
neck, his hands raised in prayer, seated on a four-legged throne
supported on the back of their necks by four men standing. The
charm is to be cut on a “cornflower” sapphire for purifying the mind
and obtaining favours from rulers, scholars, priests and people of
wisdom, when the well-aspected moon was passing through the 1st,
2nd, 28th and 29th degrees of Aquarius. In the “Book of Wings,” a
charm advised for gaining wealth and prophetic foresight is an
astrolabe cut on a sapphire, especially when the moon, well
aspected, passes through the 1st, 2nd, 28th and 29th degrees of
Aquarius. Another for health, protection from poison, poisonous airs,
and tyranny was the Bearded Head of a man or a ram engraved on a
sapphire, constructed when the well-aspected moon was passing
through 8th, 9th, 25th and 26th degrees of Aquarius. Dreaming of
sapphires is said to denote protection, social success, and favour
generally.
Beautiful Colour Gems
Kelsey I. Newman Collection
.dv class='tbl'
.ta r:3 r:2
1. | |Beryl | | 17¼ carats
2. | |Aquamarine | | 59⅛ "
3. | |Pink Sapphire | | 3½ "
4. | |Amethyst | | 28 "
5. |{| |}| 14 "
6. |{| Orange Sapphires |}| 4 "
7. |}| |{| 20 "
8. |}| Golden Sapphires |{| ¾ "
9. |}| |{| 2½ "
10. | | Sunlight Sapphire| | 441⁄16 "
.ta-
.dv-
SELENITE
“This stone, a remedy for human ills,
Springs, as they tell, from famous Persia’s hills.”
Marbodus.
The word SELENITE is derived from the Greek SELENE, the moon,
and is found also written as silenite, silonite, silenitis. The stone
which is a crystallized variety of gypsum is in pearly white, green,
yellow and gray colours. Marbodus compares it with soft grass or
verdant jasper, and Malpleat, in 1567, says it is like a fresh and
flourishing green herb. The moon-like lustres whether in pearl-white
or light green are the most esteemed, and Pliny writes that it is
frequently employed in the construction of beehives to enable the
curious to watch the little insects at their wonderful work. The
ancients employed it in much the same way as we do glass, and it
formed an item of considerable trade importance between Rome,
Spain, Cyprus, Africa, Cappadocia and other parts of the ancient
world. Slightly coarser varieties were used by Tiberius to cover his
hot-houses, for it is susceptible of being split into comparatively thin
sheets. A finer variety of very great value was at one time to be seen
in the palace at Pekin. Dr. John Goad, who wrote the Astro-
Meteorologia, a book on the natures and influences of the celestial
bodies, mentions the Selenite which Pope Clement VIII had amongst
his treasures. It was a natural moon dial, of which Cocheram said in
1623, “it decreaseth and encreaseth as the moon groweth.” This Dr.
Goad was a famous scholar who, wrote Cooper, “gained a reputation
for his astrological knowledge founded on reason and experiment.”
The Greeks called the stone Selenitis Lithos, because they said it
waxed and waned with the moon, a belief quaintly expressed by
Trevisa in 1398 as follows: “Selenites is a stone of Perse, grene as
grasse. It shineth with a white specke and foloweth the moon and
waxyth and waneth as the moon doeth.” Some old stories tell of a
belief that little Moon men which Howell, a 17th century writer, calls
“Selenites or Lunary Men,” flung these stones deep in the earth. The
Selenite was regarded as a love attractor and a stone to restore
harmony between quarrelsome lovers. If engraved with a figure of
Diana with bow and arrow when the moon was passing through the
3rd, 16th and 17th degrees of Cancer it increased, say old writers,
the power of imagination and helped the wearer to realize future
movements. If the Selenite be burned and carefully powdered it is
said to be of great use in cleaning pearls (which also are moon-ruled
according to astrology). The Selenite is under the sign Cancer like
the moonstone, with which it is frequently confounded.
SERPENTINE OR HYDRINUS
The name Serpentine appears at different periods as serpentyn,
serpentyne, sarpentene, sarpentin, scharpentyn. It is derived from
the Latin SERPENS, and its more ancient term HYDRINUS indicates
exactly the Sea Serpent family (Hydridæ), so well known to ancient
and modern writers. Precious serpentine is translucent—or about so
—and of a rich oily green colour. Common serpentine is opaque. The
precious serpentine is called “noble,” the impure “common.” The
colours are dark oily green, light green, olive green, black green,
brown yellow, green yellow, sometimes almost white. The
Serpentine is identified with the Tarshish stone, the 10th stone of
the High Priest’s Breastplate. It was known as “Ophite Stone” by
Dioscorides and Pliny, and Agricola writing in the 16 th century calls
it “Lapis Serpentinus.” Other writers called it “Serpentinum,” hence
the modern name “Serpentine.” In Italy, especially amongst artists,
some specimens of the stone are known as “Ranochia,” because of
its similarity to a frog’s skin.
It was recommended of old as a cure for rheumatism and
rheumatic pains in the limbs, and for that purpose specimens were
carried on the body next the skin, attached to the arms or legs. It
was believed to cure dropsy and all moist complaints, especially if
the sufferer held a specimen in each hand whilst resting in the
sunlight. The wearer was also warned not to overdo this sun-bathing
with Serpentine in his hands because of its affinity with all natural
bodily fluids. It was said to be a charm against serpent bites or
stings and to scare away poisonous insects and reptiles of the sea
and land. Serpentine was much esteemed by the ancients for its
healing virtues and peculiar beauty. They effectively employed it in
the manufacture of vases, pillars, boxes, etc., and for the making of
special charms and talismans. The figure of a goat with a fish’s tail
cut on a serpentine when the moon, well aspected, was passing
through the 3rd and 4th degrees of the sign Capricorn, was a charm
against rheumatism, skin troubles, gout, stiff limbs, accidents to the
limbs, falls or hurts.
The Serpentine was largely used by the ancient Egyptians in the
making of sacred scarabs, and the Persians favoured it especially for
shaping into cylinders of authority, one of which is described by Mr.
C. W. King, as follows:
“A King contending with two andro-sphinxes, Ormuzd hovering
above on the Tree of Life”—a very symbolic cylinder.
The Serpentine or Hydrinus is under the celestial Capricorn.
SOAPSTONE OR STEATITE
Steatite derives its name from the Greek word STEAR, fat, which
well describes the greasy feel of this soft magnesian rock—a massive
variety of talc. It was extensively used by the ancient Egyptians who
cut it into scarabs which in many cases they first burnt and then
coated with a vitreous blue or green glaze. The substance is
extremely soft and can easily be cut with a knife. Soapstone figures
are cut from a variety known as PINITE—the Agalmatolite or
Pagodite of China, called by them Hoa-chi. Many of these are very
beautifully cut, a number being lucky figures presented in the guise
of gods and goddesses, flowers, fruits, etc. This custom reminds of
the “Household gods” of the ancients. A kind of soft steatite earth is
still eaten by the savages of New Caledonia and other places.
All varieties of Steatite are under the zodiacal Taurus.
SPHENE OR TITANITE
Sphene derives its name from the Greek SPHEN, a wedge. As the
name indicates the form of the crystals is wedge-shaped. The lustre
is very brilliant but the stone is scarcely as hard as the opal and
therefore is little used in jewellery.
Sphene is under the zodiacal Sagittarius.
Spinel and Balas are often intermixed and both terms are accepted
as denoting this Aluminate of Magnesium, whose hardness is just a
little inferior to the Corundum and whose crystalline form is
isometric, like the diamond. The spinel, however, is non-electric, no
matter if submitted to heat or friction, whilst the ruby (Corundum),
and garnet are highly so. Hence it is not a difficult matter to
distinguish these stones from each other even if their outward
similarities tend to confuse the eye. The spinel, submitted to trial by
heat, first changes from red to brown; if left to cool it becomes dark;
then it changes to green; then, as if exhausted, it seems to lose its
colour which, however, slowly reappears in its red expression.
The word BALAS has been written as balace, baless, balays,
balais, balass. It is derived from the Arabic BALAKHSH which, says
Albertus Magnus, is the female of the real ruby “and some say it is
his house.” That prolific writer on precious stones, Andrea Bacci
(16th and 17th centuries), echoes older thought also when he writes
that “Balas is derived from PALATIUS, a palace, which is the palace
where the ruby lives.” He echoes the symbolic ideas of the old Greek
writers who said that the true ruby resided in a palace—clearly
showing that they knew the difference between rubies and spinels.
Marco Polo’s remarks are as follows: “In this Provence
(Badachschan), those fine and valuable gems the Balas rubies are
found. They are got in certain rocks among the mountains and in the
search for them the people dig great caves beneath the earth just as
is done by miners for silver. There is but one special mountain that
produces them and it is called Syghinan. The stones are dug on the
King’s account and no one else dares dig on pain of death as well as
of seizure of worldly possessions, nor may any take the gems out of
the Kingdom. The King collects them all and sends them to other
kings as tribute or as presents. He so acts in order to keep the Balas
at a great value for if he allowed all persons to mine for them the
world would be filled with them and they would be valueless.” In
Persia there is a story which tells that they were found in a
destroyed mountain after an earthquake. The Indians know the
stone as the “Pomegranate Ruby” (Lal Rumani), and the King of
Oude is said to have had a remarkable and beautiful specimen as big
as the egg of a pigeon, which was known as “Lal-i-jaladi.” The
beautiful heart-shaped Balass which is set in the British Crown under
the Black Cross known as the “Black Prince’s Ruby,” is said to have
been obtained in Spain by Prince Edward when he was aiding Don
Pedro of Castillo to hold his throne. It is reported that this was the
gem worn by King Henry V at the Battle of Agincourt. This may have
been the “fair great ruby” which Sir James Melville says Queen
Elizabeth valued so highly. Elizabeth was very fond of spinels of
which she possessed some splendid specimens, as shown in the still
extant inventories of the personal effects of the Queen. An
inspection of her nativity will show that they were gems of good
omen for her. Madame de Barrera gives an extract from Robert de
Berquen’s “Merveilles des Indes Orientales et Occidentales” wherein
it is stated that “Josephus Barbaro, a Venetian gentleman, says in a
report made to the Signori of Venice that when he was ambassador
for the Republic at the court of Yussum Cassan, King of Persia, on a
certain day of the year 1472 when he was received in solemn
audience, that prince showed him a handkerchief filled with the
rarest and most inestimable precious stones. Among others there
was a table-cut Balass ruby, of a beautiful shape, of at least a
finger’s breadth, weighing two ounces and a half, and of a most
peerless colour: in fact, it was a most perfect paragon, so exquisite
that when the King asked what he valued it at, he replied that he
thought a city or even a kingdom would scarcely pay for it.”
Spinels and corundum are always found together, and Dr. G. F. H.
Smith comments on the fact that although harder stones, rubies in
the river gravels are usually waterworn whilst spinels are found in
perfect crystals. The ancient Zoologist Elianus repeats an old story
that a stork brought a spinel as a present to the woman-nurse
Heraclis for healing his wounded leg. Here again it is necessary to
look beneath the fable for true understanding of it. The stork is one
of the birds of Jupiter and its legs are astrologically under the
zodiacal Sagittarius (the house or mansion of Jupiter). The woman
symbolizes the moon and in her name the afternoon sun is
concealed. The nurse is under Virgo, the sign to which the Spinel is
attached. The 4 toes of the stork symbolize the negative or
afternoon sun, the 3 front toes webbed to the first joint, Jupiter.
Again, the stork has no voice and tells no secrets. Hence we have a
cryptic prescription illustrating the method employed by the ancient
medical brethren to convey their meaning to each other. The spinel
is here an active mineral employed in the treatment, together with
the moon and negative or afternoon sun, of certain afflictions of the
legs. Even today it is a custom amongst medical men to preface
their prescriptions with the symbol of Jupiter. The stork is also
greatly esteemed as a bird of good fortune and happy omen, and in
many countries it is protected against destruction.
The spinel was esteemed as a perfect health stone and was
especially valued as a charm to be worn over the solar plexus. It was
a fortunate gem for doctors of medicine, scholars, writers, clerks,
secretaries, manufacturers, business people, hospital attendants,
nurses, etc. It raised the thoughts and purified the imagination. A
specimen placed at each corner of a house was considered a
protection against calamity, and rough pieces placed at the 4 angles
of a garden, orchard or corn field were said not only to protect the
products from storms and lightning, but also to carry the symbolic
influence of rich returns for the farmer.
The spinel or balas, rubicelle, almandine ruby and the Sapphirine
are under the Zodiacal Virgo. The Chloro-spinel and the pleonaste
are under the zodiacal Capricorn.
SPODUMENE
Spodumene derives its name from the Greek word SPODIOS, ash-
coloured. It is a stone resembling Feldspar, but has a lustre more
pearl-like. In general appearance spodumene is of a pale yellow tint,
sometimes gray or as its name suggests, ash-coloured. It is about
the hardness of quartz. The emerald green variety which is
exceedingly rare, is called Hiddenite, after its discoverer, Mr. M. G.
Hidden, and it is said by Professor Dana to rival the emerald as a
gem. It was discovered in 1881 in North Carolina, which seems to be
the only place of its occurrence. Comparatively few specimens have
been distributed and amongst them no stones of any considerable
size. A pretty example of 2½ carats is in the Natural History section
of the British Museum. Perhaps the most beautiful examples of this
mineral were discovered in the San Diego district of California in
1903 and named Kunzite, after Dr. G. F. Kunz. These stones range in
colour from pale violet to deep lilac and large specimens have
already been unearthed, that in the British Museum weighing 60
carats. Dr. G. F. H. Smith remarks that under the influence of Radium
Kunzite is phosphorescent, thus presenting some difference from
spodumene in general. In analysis it is shown that spodumene
contains 7.5 per cent of lithia. It would be, in harmony with ancient
philosophy, under the zodiacal Libra, although the variety Hiddenite
may be connected with the zodiacal Taurus. All varieties of
spodumene would be regarded as powerful eye charms and as
beneficial to the kidneys and lumbar regions.
TITANITE: TOPAZ: THE MYSTERY OF THE “ISLAND OF THE MISTS”: THE RING
OF THOMAS A’ BECKET CALLED A PERITOT BY THE ABBOT OF
GLASTONBURY: THE MEANING OF THE WORD TOPAZ: TOPAZ REMARKABLE
FOR ITS CLEAVAGE: ITS USE IN ANCIENT AND MODERN MEDICINE: TOPAZ
RHOMBICUS OF THE MINERALOGISTS: M. DUMELLE DISCOVERS HOW TO
CHANGE THE COLOUR OF A TOPAZ: “PINGOS D’AGOA,” “GOUTTES D’EAU,”
“MINAS NOVAS”: “DIAMOND OF SLAVES”: 12 LBS. OF TOPAZ FOR THREE
SHILLINGS: HOW QUEEN MARY’S GREAT BLUE TOPAZ WAS FOUND: THE
TOPAZION STATUE OF PTOLEMY PHILADELPHUS: THE PTOLEMAIC BADGE:
HADRIAN’S TOPAZ: TOPAZ OF THE GRAND MOGUL AND RUNYEET SINGH: A
GIANT EMPEROR’S PLEASURE: SOME OLD INTAGLI: PLINY’S STONE OF
STRENGTH: A STONE AGAINST DEATH AND TERROR: SYMBOL OF BOILING
WATER: A CHARM AGAINST DROWNING: A MODERN ILLUSTRATION: RABBI
BENONI: “BOOK OF WINDS”: TOPAZ CHARMS.
TOPAZ
The Island was known as Topazios, which owes its origin to the
Greek word meaning “to divine, guess, conjecture.” The misty island
is the celestial Scorpio which is accounted in astro-philosophy the
death sign and the sign of the serpent, the wounder of the heel of
man. It also concerns the goods of the departed, their abode in the
world to come, etc., hence the Island of the Mists, the place of
guess, conjecture or philosophical speculation which the traveller in
the flesh can dimly see through the strange cloudy lights of the
spirit. The name was originally given to the stone known to us as the
Chrysolite which gem is now identified with the occult sign of the
Fishes employed in the mysteries in ancient and modern times. The
classification as we at present know it, is of very ancient date, and
specimens of the modern topaz have been found adorned with
various intagli of proven antiquity. Although it has been stated that
Thomas A’ Becket wore a topaz ring, there is no doubt that Adam
Sodbury, Abbot of Glastonbury, was correct when he says it was a
peridot, for the peridot or chrysolite was the stone of the Churchmen
and intimately associated with the mystic sign of Christianity—Pisces,
the Fishes. The old Abbot wrote that “a gold ring in which was set
the stone peritot (an old form of peridot) encircled the finger of our
Martyr St. Thomas when he was killed by the swords of evil men.” At
that time it is certain that the topaz and the peridot were the stones
known as such today and as such they had been known for many
centuries before.
The Sanscrit word TOPAS, meaning heat, may well describe the
topaz, the colour of which can be changed readily by heat, and
which, under heat pressure and friction, exhibits strong electric
phenomena.
Scorpio, as before remarked, is the sign of the snake or serpent so
intimately connected with the mysteries of life and death, and the
topaz is remarkable for its cleavage, for when struck with a hammer
it breaks into flakes like the backbone of a serpent. The topaz was
considered as of wonderful potency in the treatment of sexual
disorders, which astrologically are considered as disorders of the
sign Scorpio. It contains from 55 to 58 per cent of Alumina, which
substance has been used in modern times by Dr. Richard Hughes,
Dr. Teste, Dr. Peters, Dr. Marcy and others in troubles of the sexual
system and the mucous membranes. The drug has been used
homœopathically in such morbid conditions and in chronic
pharyngitis and diseases of the nose and throat. The nose is ruled
by Scorpio in astrological deductions, and the throat by Taurus, its
opposite sign. Alumina is most strongly expressed in Corundums,
which include the Oriental Topaz, next the chrysoberyl, next the
spinel, and next the topaz, but there are certain characteristics of
the Topaz which in some way render it distinct from other gems, and
these would have been considered by the hermetic schools whence
such philosophy originated. Amongst mineralogists the topaz is
known as Topaz Rhombicus. It is found in colours golden, yellow,
reddish, white, greenish, wine colour and blue. A charming pink is
produced artificially by subjecting the real stone to heat, the best
results being procured from a golden-brown variety. This process
was first discovered by M. Dumelle, a Paris jeweller, in the year
1750. The colour thus obtained is doubtless permanent, the shade
being manifest when the stone cools. Great care must be observed
in this simple experiment because the stone is so sensitive that
unless properly handled it is likely to split under the various degrees
of heat and cold.
Translucent achromatic topaz is called Pingos d’Agoa (drops of
water) by the Brazilians, and Gouttes d’Eau by the French. In
England the variety is called Minas Novas, after the Minas Novas in
the State of Minas Geraes in Brazil where it is extensively found. In
Portugal this type of topaz is called the “Diamond of Slaves.” The
large British Museum specimen of this White Topaz which, according
to Mr. Emanuel, weighs over 12 lbs. (avoirdupois), was sold for three
shillings by a marine store dealer who used it to hold open his door.
The great blue Queensland topaz in the possession of Queen Mary
of Great Britain is said to have been discovered by a shepherd who,
thinking it was a common stone, threw it at a howling dog during
the night and wakened in the morning to discover the precious
nature of his missile. The Topazion Statue of 4 cubits high which
Pliny mentions as having been made by the order of Ptolemy
Philadelphus to the memory of his sister-wife Arsinoe, has puzzled
investigators. It has been set down as indicating a statue of jasper,
agate, prase, chrysoprase or rock crystal of the Citrine or the Smoky
Quartz varieties. Probably this latter suggestion is right but the real
meaning will no doubt lie in the sign Scorpio, which was known in
old Egypt as the Eagle—(the symbolic badge of the Ptolemaic
dynasty)—and was the sign of material death and spiritual life. The
Emperor Hadrian is said to have had a large topaz ring on which was
engraved:
“Natura deficit,
Fortuna mutatur,
Deus omnia cernit.”
TOURMALINE
“This black thing, one of the prettiest of the very few pretty black
things in the world, is called Tourmaline.”
Ruskin.
TURQUOISE
Those who labour for the world belong to the world, no matter
which little part of it may be claimed as their birthplace. This applies to
the humblest as well as to the greatest, as in a play the excellence of
individual players contributes to the artistic harmony and influence of
the entire production. So it is that William Shakespeare, the inspired
master of the “spacious times of great Elizabeth,” breaks through the
narrow limits of sea-girt England and encompasses the whole world of
women and men, detaches his unmaterial self from the period of his
earth life and endures—a perpetual source of pleasure, philosophy,
wisdom and music. Throughout his works William Shakespeare
mentions seventeen distinct stones of adornment, viz.: agate, amber,
carbuncle, chrysolite, coral, crystal, diamond, emerald, flint, jet, lapis
lazuli, marble, opal, pearl, ruby, sapphire, turquoise.
AGATE
In Act I, Scene 4 of “Romeo and Juliet,” Mercutio tells of Queen Mab
—
“A lance illheaded;
“If low, an agate very vilely cut.”
In King Henry IV, Part I, Act 2, Scene 4, Prince Hal says to Francis:
AMBER
Hamlet, in answer to a question, tells Polonius that the “satirical
rogue” whose book he is reading says that old men’s eyes are “purging
thick amber and plum-tree gum” (Act 2, Scene 2), a thought no doubt
suggested by the ancient myth of the “weeping sisters.”
Petruchio asks his “Mistress Kate”:
ebookbell.com