Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Artificial Intelligence for Big Data

You're reading from   Artificial Intelligence for Big Data Complete guide to automating Big Data solutions using Artificial Intelligence techniques

Arrow left icon
Product type Paperback
Published in May 2018
Publisher Packt
ISBN-13 9781788472173
Length 384 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Anand Deshpande Anand Deshpande
Author Profile Icon Anand Deshpande
Anand Deshpande
Manish Kumar Manish Kumar
Author Profile Icon Manish Kumar
Manish Kumar
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Big Data and Artificial Intelligence Systems 2. Ontology for Big Data FREE CHAPTER 3. Learning from Big Data 4. Neural Network for Big Data 5. Deep Big Data Analytics 6. Natural Language Processing 7. Fuzzy Systems 8. Genetic Programming 9. Swarm Intelligence 10. Reinforcement Learning 11. Cyber Security 12. Cognitive Computing 13. Other Books You May Enjoy

Feed-forward neural networks


The ANN we have referred to so far is called a feed-forward neural network since the connections between the units and layers do not form a cycle and move only in one direction (from the input layer to the output layer).

Let's implement the feed-forward neural network example with simple Spark ML code:

           object FeedForwardNetworkWithSpark { 
           def main(args:Array[String]): Unit ={ 
           val recordReader:RecordReader = new CSVRecordReader(0,",") 
           val conf = new SparkConf() 
           .setMaster("spark://master:7077") 
           .setAppName("FeedForwardNetwork-Iris") 
           val sc = new SparkContext(conf) 
           val numInputs:Int = 4 
           val outputNum = 3 
           val iterations =1 
           val multiLayerConfig:MultiLayerConfiguration = new    
             NeuralNetConfiguration.Builder() 
             .seed(12345) 
             .iterations(iterations) 
            .optimizationAlgo(OptimizationAlgorithm...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime