SlideShare a Scribd company logo
Writing Novels with Deep
Learning
or
LSTMText Generation
Berkay Dinçer
Machıne learnıng 101
•Supervised vs Unsupervised
•Traın and test
•Classification vs Regression
Perceptron
Perceptron
Can a perceptron learn?
Can a perceptron learn?
NEURAL NETWORKS
NEURAL NETWORKS
• MNIST – 60k training, 10k testing.
• 28x28 images of handwritten digits
• http://yann.lecun.com/exdb/mnist/
NEURAL NETWORKS
Recurrent NEURAL NETWORKS
• Ability to use the previous state as input
• Used when the output is somehow related with the previous input
How to wrıte novels wıth thıs?
• Represent characters as vectors
• Given a set of vectors guess the next most probable vector
• Convert vector to corresponding character
• Append the character
• Repeat
Training
• 1.3 MB of Text (very small dataset)
• Sequence sıze: 100
• 56 distınct characters
• 1.358.037 sequences ın the novel
• 2 days of traınıng ~ 43 hours
• 56-256-256-56 RNN
• Randomly selected seed
Fırst hours
city against
those who were cut to pieces. one prisoner there was, he said, who had
been discharged thdaeh en d t etennha u n oak hntna oh nte ontwmin d
adeeohpeyal e lednhg laen ra idn nto te i h u g ae h de an d s ih n he e cv lveen
ttse oe u u ete hge de eke d sea lehts dcu sde t dnune un s eseehe hao7 nnd e
nwwne uo e otr er.ielsa vroih s dne ltn d d heotkte nue tt etep e t iiu hrn lueou
k ehenotnttm u a dcd he t
ie s epshnln ba , ate o e,oe pi saedi g o ne ie eomo qe nteiatpet d dle de f,h
teoddi uenahemern lreo hdl ehl aontehnptye” e mahs e epodtleteten ne e ttelas
n d aatnc est tea oy eoien dn ii ,s weonss n a nhlee oa oh oesme h n h ue c
egainntete d oi er tatne n o ddnleooh e tr enda ettddoiremg d n amwei ont
kewa p ws, te e rhcssr sr e g tdyets m u htnoas o dd tigucse ledopho n et raa
ide u emeoent,kl o tet h o ptd
eod eenh ht t po h e sin mg dyee a s e. dktdnhdett epl , sdhoineho ake
After 2.7M ıteratıons
ep it,” said mr. lorry, shaking his head; for he gained in firmness as he saw the
doctor disquieted. the grass were old, my mother at window was towered by the
consciousness with the sight of the door. time to the destination and hours were
here-twents, that the sight from dead of a matter with england.
“what is lifely of danger
of him, i think he understood it. what is to come from the window?”
“nothing.”
seems lasted about a second in the window, and the sense, he dared you eggraven-
-or sagles.
Training
• 245 KB of Text (even smaller dataset)
• Sequence sıze: 100
• 66 distınct characters
• 219.569 total sequences
• 66-128-128-66 RNN
• Randomly selected seed
vsalam almıyordu bu hazin hali önce
ah, ey zavallı cami, seni böyle görünce
dertli bir çocuk gibi insan
yaşayacaksın gene de aynadan başka kuram,
insanları da memleketim,
muhabber bir hayretle bahsedilir gibi.
halkın oğlum.
beyaz kuşların gözleri üstünde yıldızların sesinin
mutluluk gelip geçti
başlı bir saç başımın elin filâna değecek bu kurşun alava,
OTHER RNNS - Train on Wikipedia
OTHER RNNS –BIBLE RNN
• 5:11 Therefore encourage one another and build each other up, just as in fact you are doing
OTHER RNNS –BIBLE RNN
• 5:11 Therefore encourage one another and build each other up, just as in fact you are doing –
real Bible
OTHER RNNS –BIBLE RNN
• 5:11 Therefore encourage one another and build each other up, just as in fact you are doing –
real Bible
• 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the
children of Israel.
OTHER RNNS –BIBLE RNN
• 5:11 Therefore encourage one another and build each other up, just as in fact you are doing –
real Bible
• 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the
children of Israel – BIBLE-RNN
OTHER RNNS –BIBLE RNN
• 5:11 Therefore encourage one another and build each other up, just as in fact you are doing –
real Bible
• 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the
children of Israel – BIBLE-RNN
• 17:13 And it shall come to pass, that the LORD thy God shall bring thee up out of the land of
Egypt, and thou shalt be clean.
OTHER RNNS –BIBLE RNN
• 5:11 Therefore encourage one another and build each other up, just as in fact you are doing –
real Bible
• 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the
children of Israel – BIBLE-RNN
• 17:13 And it shall come to pass, that the LORD thy God shall bring thee up out of the land of
Egypt, and thou shalt be clean. – BIBLE-RNN
OTHER RNNS –BIBLE RNN
• 5:11 Therefore encourage one another and build each other up, just as in fact you are doing –
real Bible
• 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the
children of Israel – BIBLE-RNN
• 17:13 And it shall come to pass, that the LORD thy God shall bring thee up out of the land of
Egypt, and thou shalt be clean. – BIBLE-RNN
• 18:10 The name of the LORD is a fortified tower; the righteous run to it and are safe.
OTHER RNNS –BIBLE RNN
• 5:11 Therefore encourage one another and build each other up, just as in fact you are doing –
real Bible
• 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the
children of Israel – BIBLE-RNN
• 17:13 And it shall come to pass, that the LORD thy God shall bring thee up out of the land of
Egypt, and thou shalt be clean. – BIBLE-RNN
• 18:10 The name of the LORD is a fortified tower; the righteous run to it and are safe. – REAL
BIBLE
OTHER RNNs
• Obama-RNN: https://medium.com/@samim/obama-rnn-machine-
generated-political-speeches-c8abd18a2ea0
• Bible-RNN: https://twitter.com/RNN_Bible
Code
• https://github.com/berkay-dincer/RNN-TextGeneration

More Related Content

What's hot

Sabbath School LEsson 9, 2nd quarter of 2015
Sabbath School LEsson 9, 2nd quarter of 2015Sabbath School LEsson 9, 2nd quarter of 2015
Sabbath School LEsson 9, 2nd quarter of 2015David Syahputra
 
Sabbath school lesson 11, 4th quarter of 2015
Sabbath school lesson 11, 4th quarter of 2015Sabbath school lesson 11, 4th quarter of 2015
Sabbath school lesson 11, 4th quarter of 2015
David Syahputra
 
Sermon Slide Deck: "The Promise of Christmas Blessing" (Genesis 12:1-4)
Sermon Slide Deck: "The Promise of Christmas Blessing" (Genesis 12:1-4)Sermon Slide Deck: "The Promise of Christmas Blessing" (Genesis 12:1-4)
Sermon Slide Deck: "The Promise of Christmas Blessing" (Genesis 12:1-4)
New City Church
 
A great defense 1 15-12 sermon
A great defense 1 15-12 sermonA great defense 1 15-12 sermon
A great defense 1 15-12 sermon
James Bradshaw
 
We Will This Body Die
We Will This Body DieWe Will This Body Die
We Will This Body Die
Steve Moreland
 
Strengthening The Church Ephesians 6.1 9
Strengthening The Church   Ephesians 6.1 9Strengthening The Church   Ephesians 6.1 9
Strengthening The Church Ephesians 6.1 9
Chris Gallagher
 
No Family Situation is Too Hard for God
No Family Situation is Too Hard for GodNo Family Situation is Too Hard for God
No Family Situation is Too Hard for God
livinghopechurch
 
Sabbath school lesson 10, 2nd quarter 2021
Sabbath school lesson 10, 2nd quarter 2021Sabbath school lesson 10, 2nd quarter 2021
Sabbath school lesson 10, 2nd quarter 2021
David Syahputra
 
The Impact of the Internet on the Church - PowerPoint
The Impact of the Internet on the Church - PowerPointThe Impact of the Internet on the Church - PowerPoint
The Impact of the Internet on the Church - PowerPoint
John Brooks
 
C.S. Lewis
C.S. LewisC.S. Lewis
C.S. Lewis
riverview
 
Jesus 2016: The Gospel Party Platform
Jesus 2016: The Gospel Party PlatformJesus 2016: The Gospel Party Platform
Jesus 2016: The Gospel Party Platform
CompassChurch
 
2015 7-DAY WORSHIP FESTIVAL – DAY 3 – CAREER / STUDIES
2015 7-DAY WORSHIP FESTIVAL – DAY 3 – CAREER / STUDIES 2015 7-DAY WORSHIP FESTIVAL – DAY 3 – CAREER / STUDIES
2015 7-DAY WORSHIP FESTIVAL – DAY 3 – CAREER / STUDIES Faithworks Christian Church
 
Intercession Prayer
Intercession PrayerIntercession Prayer
Intercession Prayer
Mary Sorial
 
Vintage 11.17.19 katherine_dinsdale
Vintage 11.17.19 katherine_dinsdaleVintage 11.17.19 katherine_dinsdale
Vintage 11.17.19 katherine_dinsdale
Vintage Church
 
Mighty Daughters of God
Mighty Daughters of GodMighty Daughters of God
Mighty Daughters of God
rfochler
 
The Wonder of Christmas
The Wonder of ChristmasThe Wonder of Christmas
The Wonder of Christmas
Freekidstories
 
SABBATH School Lesson 2, 3rd quarter of 2015
SABBATH School Lesson 2, 3rd quarter of 2015SABBATH School Lesson 2, 3rd quarter of 2015
SABBATH School Lesson 2, 3rd quarter of 2015David Syahputra
 
Carpenter Mission Statement
Carpenter Mission StatementCarpenter Mission Statement
Carpenter Mission Statementccarpen2
 
Message series i am - part 1 - the great i am - pastor chuck bernal - 02-12-17
Message series   i am - part 1 - the great i am - pastor chuck bernal - 02-12-17Message series   i am - part 1 - the great i am - pastor chuck bernal - 02-12-17
Message series i am - part 1 - the great i am - pastor chuck bernal - 02-12-17
LifePointe Church
 

What's hot (20)

Sabbath School LEsson 9, 2nd quarter of 2015
Sabbath School LEsson 9, 2nd quarter of 2015Sabbath School LEsson 9, 2nd quarter of 2015
Sabbath School LEsson 9, 2nd quarter of 2015
 
Sabbath school lesson 11, 4th quarter of 2015
Sabbath school lesson 11, 4th quarter of 2015Sabbath school lesson 11, 4th quarter of 2015
Sabbath school lesson 11, 4th quarter of 2015
 
Sermon Slide Deck: "The Promise of Christmas Blessing" (Genesis 12:1-4)
Sermon Slide Deck: "The Promise of Christmas Blessing" (Genesis 12:1-4)Sermon Slide Deck: "The Promise of Christmas Blessing" (Genesis 12:1-4)
Sermon Slide Deck: "The Promise of Christmas Blessing" (Genesis 12:1-4)
 
A great defense 1 15-12 sermon
A great defense 1 15-12 sermonA great defense 1 15-12 sermon
A great defense 1 15-12 sermon
 
We Will This Body Die
We Will This Body DieWe Will This Body Die
We Will This Body Die
 
Strengthening The Church Ephesians 6.1 9
Strengthening The Church   Ephesians 6.1 9Strengthening The Church   Ephesians 6.1 9
Strengthening The Church Ephesians 6.1 9
 
No Family Situation is Too Hard for God
No Family Situation is Too Hard for GodNo Family Situation is Too Hard for God
No Family Situation is Too Hard for God
 
Sabbath school lesson 10, 2nd quarter 2021
Sabbath school lesson 10, 2nd quarter 2021Sabbath school lesson 10, 2nd quarter 2021
Sabbath school lesson 10, 2nd quarter 2021
 
The Impact of the Internet on the Church - PowerPoint
The Impact of the Internet on the Church - PowerPointThe Impact of the Internet on the Church - PowerPoint
The Impact of the Internet on the Church - PowerPoint
 
C.S. Lewis
C.S. LewisC.S. Lewis
C.S. Lewis
 
Jesus 2016: The Gospel Party Platform
Jesus 2016: The Gospel Party PlatformJesus 2016: The Gospel Party Platform
Jesus 2016: The Gospel Party Platform
 
2015 7-DAY WORSHIP FESTIVAL – DAY 3 – CAREER / STUDIES
2015 7-DAY WORSHIP FESTIVAL – DAY 3 – CAREER / STUDIES 2015 7-DAY WORSHIP FESTIVAL – DAY 3 – CAREER / STUDIES
2015 7-DAY WORSHIP FESTIVAL – DAY 3 – CAREER / STUDIES
 
The Offerings - Meal Offering
The Offerings - Meal OfferingThe Offerings - Meal Offering
The Offerings - Meal Offering
 
Intercession Prayer
Intercession PrayerIntercession Prayer
Intercession Prayer
 
Vintage 11.17.19 katherine_dinsdale
Vintage 11.17.19 katherine_dinsdaleVintage 11.17.19 katherine_dinsdale
Vintage 11.17.19 katherine_dinsdale
 
Mighty Daughters of God
Mighty Daughters of GodMighty Daughters of God
Mighty Daughters of God
 
The Wonder of Christmas
The Wonder of ChristmasThe Wonder of Christmas
The Wonder of Christmas
 
SABBATH School Lesson 2, 3rd quarter of 2015
SABBATH School Lesson 2, 3rd quarter of 2015SABBATH School Lesson 2, 3rd quarter of 2015
SABBATH School Lesson 2, 3rd quarter of 2015
 
Carpenter Mission Statement
Carpenter Mission StatementCarpenter Mission Statement
Carpenter Mission Statement
 
Message series i am - part 1 - the great i am - pastor chuck bernal - 02-12-17
Message series   i am - part 1 - the great i am - pastor chuck bernal - 02-12-17Message series   i am - part 1 - the great i am - pastor chuck bernal - 02-12-17
Message series i am - part 1 - the great i am - pastor chuck bernal - 02-12-17
 

Viewers also liked

Introduction to blockchain
Introduction to blockchainIntroduction to blockchain
Introduction to blockchain
Emrah Semiz
 
Crucial conversations
Crucial conversationsCrucial conversations
Crucial conversations
Duygu Onaral
 
BBS-248 Artificial Intelligence (AI) for Financial Services
BBS-248 Artificial Intelligence (AI) for Financial ServicesBBS-248 Artificial Intelligence (AI) for Financial Services
BBS-248 Artificial Intelligence (AI) for Financial Services
Ozgur Karakaya
 
Distributed teams
Distributed teamsDistributed teams
Distributed teams
Allen Sooredoo
 
BBS - Cultural Dimensions. A comparison between Turkey, Sweden and Japan
BBS - Cultural Dimensions. A comparison between Turkey, Sweden and JapanBBS - Cultural Dimensions. A comparison between Turkey, Sweden and Japan
BBS - Cultural Dimensions. A comparison between Turkey, Sweden and Japan
Ayla Erhan
 
The Top Skills That Can Get You Hired in 2017
The Top Skills That Can Get You Hired in 2017The Top Skills That Can Get You Hired in 2017
The Top Skills That Can Get You Hired in 2017
LinkedIn
 
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
Carol Smith
 

Viewers also liked (7)

Introduction to blockchain
Introduction to blockchainIntroduction to blockchain
Introduction to blockchain
 
Crucial conversations
Crucial conversationsCrucial conversations
Crucial conversations
 
BBS-248 Artificial Intelligence (AI) for Financial Services
BBS-248 Artificial Intelligence (AI) for Financial ServicesBBS-248 Artificial Intelligence (AI) for Financial Services
BBS-248 Artificial Intelligence (AI) for Financial Services
 
Distributed teams
Distributed teamsDistributed teams
Distributed teams
 
BBS - Cultural Dimensions. A comparison between Turkey, Sweden and Japan
BBS - Cultural Dimensions. A comparison between Turkey, Sweden and JapanBBS - Cultural Dimensions. A comparison between Turkey, Sweden and Japan
BBS - Cultural Dimensions. A comparison between Turkey, Sweden and Japan
 
The Top Skills That Can Get You Hired in 2017
The Top Skills That Can Get You Hired in 2017The Top Skills That Can Get You Hired in 2017
The Top Skills That Can Get You Hired in 2017
 
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
 

Similar to Writing Novels with Deep Learning

SE 2 Praying in Public
SE 2 Praying in PublicSE 2 Praying in Public
SE 2 Praying in Public
Richard Chamberlain
 
gospel-of-mark-jesus-said-its-about-serving-mark-10.ppt
gospel-of-mark-jesus-said-its-about-serving-mark-10.pptgospel-of-mark-jesus-said-its-about-serving-mark-10.ppt
gospel-of-mark-jesus-said-its-about-serving-mark-10.ppt
Caldwell4
 
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
First Baptist Church Jackson
 
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
First Baptist Church Jackson
 
Exodus 4, 5, 6, clear word bible, 7th day adventist, the lord, the god of is...
Exodus 4, 5, 6, clear word bible, 7th  day adventist, the lord, the god of is...Exodus 4, 5, 6, clear word bible, 7th  day adventist, the lord, the god of is...
Exodus 4, 5, 6, clear word bible, 7th day adventist, the lord, the god of is...
Valley Bible Fellowship
 
DCCH lesson 4
DCCH lesson 4DCCH lesson 4
Moses15
Moses15Moses15
Moses15
Josh Hunt
 
Changers
ChangersChangers
Changers
Gary V Carter
 
EN2 Characteristics of prophecy 2 of 6
EN2 Characteristics of prophecy 2 of 6EN2 Characteristics of prophecy 2 of 6
EN2 Characteristics of prophecy 2 of 6
Learning to Prophesy
 
The Blueprint-1-god-s-gps-juiced
The Blueprint-1-god-s-gps-juicedThe Blueprint-1-god-s-gps-juiced
The Blueprint-1-god-s-gps-juiced
Antonio Bernard
 
Acts 5, The Personhood of the Holy Spirit, The scariest NT chapter, Satan can...
Acts 5, The Personhood of the Holy Spirit, The scariest NT chapter, Satan can...Acts 5, The Personhood of the Holy Spirit, The scariest NT chapter, Satan can...
Acts 5, The Personhood of the Holy Spirit, The scariest NT chapter, Satan can...
Valley Bible Fellowship
 
Acts Lesson 13
Acts Lesson 13Acts Lesson 13
Acts Lesson 13
blackforestchapelorg
 
Ot lesson31
Ot lesson31Ot lesson31
2013 Book of Mormon : Chapter 8 (Institute Lesson by hgellor)
2013 Book of Mormon : Chapter 8 (Institute Lesson by hgellor)2013 Book of Mormon : Chapter 8 (Institute Lesson by hgellor)
2013 Book of Mormon : Chapter 8 (Institute Lesson by hgellor)Leah Gellor
 
New Testament Lesson 2
New Testament Lesson 2New Testament Lesson 2
New Testament Lesson 2
Cassandra Dawn Bushman
 
08 August 9, 2015, Revelation 5, The Worthy Lamb
08 August 9, 2015, Revelation 5, The Worthy Lamb08 August 9, 2015, Revelation 5, The Worthy Lamb
08 August 9, 2015, Revelation 5, The Worthy Lamb
First Baptist Church Jackson
 
Leviticus 12-16, Scapegoat, Azazel, Satan the sin bearer, laws about after ch...
Leviticus 12-16, Scapegoat, Azazel, Satan the sin bearer, laws about after ch...Leviticus 12-16, Scapegoat, Azazel, Satan the sin bearer, laws about after ch...
Leviticus 12-16, Scapegoat, Azazel, Satan the sin bearer, laws about after ch...
Valley Bible Fellowship
 
How to study the bible week 2: What is the Bible?
How to study the bible week 2: What is the Bible?How to study the bible week 2: What is the Bible?
How to study the bible week 2: What is the Bible?
Steve Thomason
 
The Book Of Acts: Chapter-1
The Book Of Acts:  Chapter-1The Book Of Acts:  Chapter-1
The Book Of Acts: Chapter-1
COACH International Ministries
 
08 August 9, 2015, Revelation 5, The Worthy Lamb
08 August 9, 2015, Revelation 5, The Worthy Lamb08 August 9, 2015, Revelation 5, The Worthy Lamb
08 August 9, 2015, Revelation 5, The Worthy Lamb
First Baptist Church Jackson
 

Similar to Writing Novels with Deep Learning (20)

SE 2 Praying in Public
SE 2 Praying in PublicSE 2 Praying in Public
SE 2 Praying in Public
 
gospel-of-mark-jesus-said-its-about-serving-mark-10.ppt
gospel-of-mark-jesus-said-its-about-serving-mark-10.pptgospel-of-mark-jesus-said-its-about-serving-mark-10.ppt
gospel-of-mark-jesus-said-its-about-serving-mark-10.ppt
 
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
 
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
02-02-20, Deuteronomy 6;1-25, Loved, The Greatest Commandment
 
Exodus 4, 5, 6, clear word bible, 7th day adventist, the lord, the god of is...
Exodus 4, 5, 6, clear word bible, 7th  day adventist, the lord, the god of is...Exodus 4, 5, 6, clear word bible, 7th  day adventist, the lord, the god of is...
Exodus 4, 5, 6, clear word bible, 7th day adventist, the lord, the god of is...
 
DCCH lesson 4
DCCH lesson 4DCCH lesson 4
DCCH lesson 4
 
Moses15
Moses15Moses15
Moses15
 
Changers
ChangersChangers
Changers
 
EN2 Characteristics of prophecy 2 of 6
EN2 Characteristics of prophecy 2 of 6EN2 Characteristics of prophecy 2 of 6
EN2 Characteristics of prophecy 2 of 6
 
The Blueprint-1-god-s-gps-juiced
The Blueprint-1-god-s-gps-juicedThe Blueprint-1-god-s-gps-juiced
The Blueprint-1-god-s-gps-juiced
 
Acts 5, The Personhood of the Holy Spirit, The scariest NT chapter, Satan can...
Acts 5, The Personhood of the Holy Spirit, The scariest NT chapter, Satan can...Acts 5, The Personhood of the Holy Spirit, The scariest NT chapter, Satan can...
Acts 5, The Personhood of the Holy Spirit, The scariest NT chapter, Satan can...
 
Acts Lesson 13
Acts Lesson 13Acts Lesson 13
Acts Lesson 13
 
Ot lesson31
Ot lesson31Ot lesson31
Ot lesson31
 
2013 Book of Mormon : Chapter 8 (Institute Lesson by hgellor)
2013 Book of Mormon : Chapter 8 (Institute Lesson by hgellor)2013 Book of Mormon : Chapter 8 (Institute Lesson by hgellor)
2013 Book of Mormon : Chapter 8 (Institute Lesson by hgellor)
 
New Testament Lesson 2
New Testament Lesson 2New Testament Lesson 2
New Testament Lesson 2
 
08 August 9, 2015, Revelation 5, The Worthy Lamb
08 August 9, 2015, Revelation 5, The Worthy Lamb08 August 9, 2015, Revelation 5, The Worthy Lamb
08 August 9, 2015, Revelation 5, The Worthy Lamb
 
Leviticus 12-16, Scapegoat, Azazel, Satan the sin bearer, laws about after ch...
Leviticus 12-16, Scapegoat, Azazel, Satan the sin bearer, laws about after ch...Leviticus 12-16, Scapegoat, Azazel, Satan the sin bearer, laws about after ch...
Leviticus 12-16, Scapegoat, Azazel, Satan the sin bearer, laws about after ch...
 
How to study the bible week 2: What is the Bible?
How to study the bible week 2: What is the Bible?How to study the bible week 2: What is the Bible?
How to study the bible week 2: What is the Bible?
 
The Book Of Acts: Chapter-1
The Book Of Acts:  Chapter-1The Book Of Acts:  Chapter-1
The Book Of Acts: Chapter-1
 
08 August 9, 2015, Revelation 5, The Worthy Lamb
08 August 9, 2015, Revelation 5, The Worthy Lamb08 August 9, 2015, Revelation 5, The Worthy Lamb
08 August 9, 2015, Revelation 5, The Worthy Lamb
 

Recently uploaded

My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 

Recently uploaded (20)

My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 

Writing Novels with Deep Learning

  • 1. Writing Novels with Deep Learning or LSTMText Generation Berkay Dinçer
  • 2. Machıne learnıng 101 •Supervised vs Unsupervised •Traın and test •Classification vs Regression
  • 8. NEURAL NETWORKS • MNIST – 60k training, 10k testing. • 28x28 images of handwritten digits • http://yann.lecun.com/exdb/mnist/
  • 10. Recurrent NEURAL NETWORKS • Ability to use the previous state as input • Used when the output is somehow related with the previous input
  • 11. How to wrıte novels wıth thıs? • Represent characters as vectors • Given a set of vectors guess the next most probable vector • Convert vector to corresponding character • Append the character • Repeat
  • 12.
  • 13. Training • 1.3 MB of Text (very small dataset) • Sequence sıze: 100 • 56 distınct characters • 1.358.037 sequences ın the novel • 2 days of traınıng ~ 43 hours • 56-256-256-56 RNN • Randomly selected seed
  • 14. Fırst hours city against those who were cut to pieces. one prisoner there was, he said, who had been discharged thdaeh en d t etennha u n oak hntna oh nte ontwmin d adeeohpeyal e lednhg laen ra idn nto te i h u g ae h de an d s ih n he e cv lveen ttse oe u u ete hge de eke d sea lehts dcu sde t dnune un s eseehe hao7 nnd e nwwne uo e otr er.ielsa vroih s dne ltn d d heotkte nue tt etep e t iiu hrn lueou k ehenotnttm u a dcd he t ie s epshnln ba , ate o e,oe pi saedi g o ne ie eomo qe nteiatpet d dle de f,h teoddi uenahemern lreo hdl ehl aontehnptye” e mahs e epodtleteten ne e ttelas n d aatnc est tea oy eoien dn ii ,s weonss n a nhlee oa oh oesme h n h ue c egainntete d oi er tatne n o ddnleooh e tr enda ettddoiremg d n amwei ont kewa p ws, te e rhcssr sr e g tdyets m u htnoas o dd tigucse ledopho n et raa ide u emeoent,kl o tet h o ptd eod eenh ht t po h e sin mg dyee a s e. dktdnhdett epl , sdhoineho ake
  • 15. After 2.7M ıteratıons ep it,” said mr. lorry, shaking his head; for he gained in firmness as he saw the doctor disquieted. the grass were old, my mother at window was towered by the consciousness with the sight of the door. time to the destination and hours were here-twents, that the sight from dead of a matter with england. “what is lifely of danger of him, i think he understood it. what is to come from the window?” “nothing.” seems lasted about a second in the window, and the sense, he dared you eggraven- -or sagles.
  • 16. Training • 245 KB of Text (even smaller dataset) • Sequence sıze: 100 • 66 distınct characters • 219.569 total sequences • 66-128-128-66 RNN • Randomly selected seed
  • 17. vsalam almıyordu bu hazin hali önce ah, ey zavallı cami, seni böyle görünce dertli bir çocuk gibi insan yaşayacaksın gene de aynadan başka kuram, insanları da memleketim, muhabber bir hayretle bahsedilir gibi. halkın oğlum. beyaz kuşların gözleri üstünde yıldızların sesinin mutluluk gelip geçti başlı bir saç başımın elin filâna değecek bu kurşun alava,
  • 18. OTHER RNNS - Train on Wikipedia
  • 19. OTHER RNNS –BIBLE RNN • 5:11 Therefore encourage one another and build each other up, just as in fact you are doing
  • 20. OTHER RNNS –BIBLE RNN • 5:11 Therefore encourage one another and build each other up, just as in fact you are doing – real Bible
  • 21. OTHER RNNS –BIBLE RNN • 5:11 Therefore encourage one another and build each other up, just as in fact you are doing – real Bible • 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the children of Israel.
  • 22. OTHER RNNS –BIBLE RNN • 5:11 Therefore encourage one another and build each other up, just as in fact you are doing – real Bible • 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the children of Israel – BIBLE-RNN
  • 23. OTHER RNNS –BIBLE RNN • 5:11 Therefore encourage one another and build each other up, just as in fact you are doing – real Bible • 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the children of Israel – BIBLE-RNN • 17:13 And it shall come to pass, that the LORD thy God shall bring thee up out of the land of Egypt, and thou shalt be clean.
  • 24. OTHER RNNS –BIBLE RNN • 5:11 Therefore encourage one another and build each other up, just as in fact you are doing – real Bible • 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the children of Israel – BIBLE-RNN • 17:13 And it shall come to pass, that the LORD thy God shall bring thee up out of the land of Egypt, and thou shalt be clean. – BIBLE-RNN
  • 25. OTHER RNNS –BIBLE RNN • 5:11 Therefore encourage one another and build each other up, just as in fact you are doing – real Bible • 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the children of Israel – BIBLE-RNN • 17:13 And it shall come to pass, that the LORD thy God shall bring thee up out of the land of Egypt, and thou shalt be clean. – BIBLE-RNN • 18:10 The name of the LORD is a fortified tower; the righteous run to it and are safe.
  • 26. OTHER RNNS –BIBLE RNN • 5:11 Therefore encourage one another and build each other up, just as in fact you are doing – real Bible • 24:11 Thus saith the LORD of hosts; Ask now this stones are for the righteous and the children of Israel – BIBLE-RNN • 17:13 And it shall come to pass, that the LORD thy God shall bring thee up out of the land of Egypt, and thou shalt be clean. – BIBLE-RNN • 18:10 The name of the LORD is a fortified tower; the righteous run to it and are safe. – REAL BIBLE
  • 27. OTHER RNNs • Obama-RNN: https://medium.com/@samim/obama-rnn-machine- generated-political-speeches-c8abd18a2ea0 • Bible-RNN: https://twitter.com/RNN_Bible Code • https://github.com/berkay-dincer/RNN-TextGeneration

Editor's Notes

  1. http://playground.tensorflow.org http://playground.tensorflow.org/#activation=tanh&batchSize=10&dataset=spiral&regDataset=reg-plane&learningRate=0.1&regularizationRate=0&noise=0&networkShape=8,8,6&seed=0.26848&showTestData=false&discretize=false&percTrainData=50&x=true&y=true&xTimesY=false&xSquared=false&ySquared=false&cosX=false&sinX=false&cosY=false&sinY=false&collectStats=false&problem=classification&initZero=false&hideText=false