GithubHelp home page GithubHelp logo

pbugnion / s4ds Goto Github PK

View Code? Open in Web Editor NEW
99.0 15.0 63.0 95 KB

Code samples for Scala for data science

Home Page: https://www.amazon.co.uk/Scala-Data-Science-Pascal-Bugnion/dp/1785281372

License: Apache License 2.0

Scala 83.58% JavaScript 5.31% HTML 1.10% CSS 0.13% Ruby 0.42% ApacheConf 7.98% Shell 1.48%

s4ds's Introduction

Scala for data science examples

This repository contains the code examples for Scala for data science. The aim of the book is to teach people who know a bit of Scala about useful libraries and tools for writing data science applications.

The examples are divided as follows:

  • Chapter 2 teaches you how to use Breeze for linear algebra and function optimization. The example programs show you how to write a basic logistic regression model.
  • Chapter 3 introduces breeze-viz for drawing basic two-dimensional plots.
  • Chapter 4 teaches you how to parallelize cross-validation pipelines using parallel collections, and builds a small command line utility for querying a web API in parallel using futures.
  • Chapter 5 introduces how to interact with SQL databases from Scala. We write wrappers around JDBC to allow interacting with it more functionally. We introduce several design patterns commonly used in Scala, including implicit conversions to extend existing libraries and typeclasses.
  • Chapter 6 introduces Slick, a wrapper around JDBC that maps SQL tables directly to case classes.
  • Chapter 7 teaches you how to interact with web APIs and how to convert JSON objects to Scala classes.
  • Chapter 8 introduces Casbah, a library for interacting with MongoDB, a leading NoSQL database.
  • Chapter 9 introduces the Akka framework for building concurrent applications. We build a web crawler that crawls the graph of followers on GitHub.
  • Chapters 10 and 11 introduce Apache Spark, a framework for processing batches of data over several different computers.
  • Chapter 12 walks through the construction of a spam filter in MLlib, a machine learning library for training distributed algorithms on large datasets in memory.
  • Chapters 13 and 14 introduce the Play framework for building web applications. In chapter 13, we build a REST API to deliver information about a user's repositories on GitHub, and in chapter 14, we build on this API to build a single-page web application with D3 graphs.

To run the examples, start by installing SBT, the (main) build tool for Scala projects.

Once you have installed SBT, download this repository using:

$ git clone https://github.com/pbugnion/s4ds.git

You can then navigate to each chapter and type sbt run in a terminal to run the source code, or sbt console to open a Scala console with all the dependencies for that particular chapter. Read the README for each chapter for more detail.

s4ds's People

Contributors

pbugnion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.