Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Clojure Data Analysis

You're reading from  Mastering Clojure Data Analysis

Product type Book
Published in May 2014
Publisher
ISBN-13 9781783284139
Pages 340 pages
Edition 1st Edition
Languages
Author (1):
Eric Richard Rochester Eric Richard Rochester
Profile icon Eric Richard Rochester

Table of Contents (17) Chapters

Mastering Clojure Data Analysis
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Network Analysis – The Six Degrees of Kevin Bacon GIS Analysis – Mapping Climate Change Topic Modeling – Changing Concerns in the State of the Union Addresses Classifying UFO Sightings Benford's Law – Detecting Natural Progressions of Numbers Sentiment Analysis – Categorizing Hotel Reviews Null Hypothesis Tests – Analyzing Crime Data A/B Testing – Statistical Experiments for the Web Analyzing Social Data Participation Modeling Stock Data Index

Predicting the future


Now is the time to bring together everything that we've assembled over the course of this chapter, so it seems appropriate to start over from scratch, just using the Clojure source code that we've written over the course of the chapter.

We'll take this one block at a time, loading and processing the data, creating training and test sets, training and validating the neural network, and finally viewing and analyzing its results.

Before we do any of this, we'll need to load the proper namespaces into the REPL. We can do that with the following require statement:

user=> (require
         [me.raynes.fs :as fs]
         [financial]
         [financial.types :as t]
         [financial.nlp :as nlp]
         [financial.nn :as nn]
         [financial.oanc :as oanc]
         [financial.csv-data :as csvd]
         [financial.utils :as u])

This will give us access to everything that we've implemented so far.

Loading stock prices

First, we'll load the stock prices with the following...

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 $15.99/month. Cancel anytime}