F# for Machine Learning Essentials
eBook - ePub

F# for Machine Learning Essentials

  1. 194 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

F# for Machine Learning Essentials

About this book

Get up and running with machine learning with F# in a fun and functional way

About This Book

  • Design algorithms in F# to tackle complex computing problems
  • Be a proficient F# data scientist using this simple-to-follow guide
  • Solve real-world, data-related problems with robust statistical models, built for a range of datasets

Who This Book Is For

If you are a C# or an F# developer who now wants to explore the area of machine learning, then this book is for you. Familiarity with theoretical concepts and notation of mathematics and statistics would be an added advantage.

What You Will Learn

  • Use F# to find patterns through raw data
  • Build a set of classification systems using Accord.NET, Weka, and F#
  • Run machine learning jobs on the Cloud with MBrace
  • Perform mathematical operations on matrices and vectors using Math.NET
  • Use a recommender system for your own problem domain
  • Identify tourist spots across the globe using inputs from the user with decision tree algorithms

In Detail

The F# functional programming language enables developers to write simple code to solve complex problems. With F#, developers create consistent and predictable programs that are easier to test and reuse, simpler to parallelize, and are less prone to bugs.

If you want to learn how to use F# to build machine learning systems, then this is the book you want.

Starting with an introduction to the several categories on machine learning, you will quickly learn to implement time-tested, supervised learning algorithms. You will gradually move on to solving problems on predicting housing pricing using Regression Analysis. You will then learn to use Accord.NET to implement SVM techniques and clustering. You will also learn to build a recommender system for your e-commerce site from scratch. Finally, you will dive into advanced topics such as implementing neural network algorithms while performing sentiment analysis on your data.

Style and approach

This book is a fast-paced tutorial guide that uses hands-on examples to explain real-world applications of machine learning. Using practical examples, the book will explore several machine learning techniques and also describe how you can use F# to build machine learning systems.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

F# for Machine Learning Essentials


Table of Contents

F# for Machine Learning Essentials
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Introduction to Machine Learning
Objective
Getting in touch
Different areas where machine learning is being used
Why use F#?
Supervised machine learning
Training and test dataset/corpus
Some motivating real life examples of supervised learning
Nearest Neighbour algorithm (a.k.a k-NN algorithm)
Distance metrics
Decision tree algorithms
Linear regression
Logistic regression
Recommender systems
Unsupervised learning
Machine learning frameworks
Machine learning for fun and profit
Recognizing handwritten digits – your "Hello World" ML program
How does this work?
Summary
2. Linear Regression
Objective
Different types of linear regression algorithms
APIs used
Math.NET Numerics for F# 3.7.0
Getting Math.NET
Experimenting with Math.NET
The basics of matrices and vectors (a short and sweet refresher)
Creating a vector
Creating a matrix
Finding the transpose of a matrix
Finding the inverse of a matrix
Trace of a matrix
QR decomposition of a matrix
SVD of a matrix
Linear regression method of least square
Finding linear regression coefficients using F#
Finding the linear regression coefficients using Math.NET
Putting it together with Math.NET and FsPlot
Multiple linear regression
Multiple linear regression and variations using Math.NET
Weighted linear regression
Plotting the result of multiple linear regression
Ridge regression
Multivariate multiple linear regression
Feature scaling
Summary
3. Classification Techniques
Objective
Different classification algorithms you will learn
Some interesting things you can do
Binary classification using k-NN
How does it work?
Finding cancerous cells using k-NN: a case study
Understanding logistic regression
The sigmoid function chart
Binary classification using logistic regression (using Accord.NET)
Multiclass classification using logistic regression
How does it work?
Multiclass classification using decision trees
Obtaining and using WekaSharp
How does it work?
Predicting a traffic jam using a decision tree: a case study
Challenge yourself!
Summary
4. Information Retrieval
Objective
Different IR algorithms you will learn
What interesting things can you do?
Information retrieval using tf-idf
Measures of similarity
Generating a PDF from a histogram
Minkowski family
L1 family
Intersection family
Inner Product family
Fidelity family or squared-chord family
Squared L2 family
Shannon's Entropy family
Combinations
Set-based similarity measures
Similarity of asymmetric binary attributes
Some example usages of distance metrics
Finding similar cookies using asymmetric binary similarity measures
Grouping/clustering color images based on Canberra distance
Summary
5. Collaborative Filtering
Objective
Different classification algorithms you will learn
Vocabulary of collaborative filtering
Baseline predictors
Basis of User-User collaborative filtering
Implementing basic user-user collaborative filtering using F#
Code walkthrough
Variations of gap calculations and similarity measures
Item-item collaborative filtering
Top-N recommendations
Evaluating recommendations
Prediction accuracy
Con...

Table of contents

  1. F# for Machine Learning Essentials

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access F# for Machine Learning Essentials by Sudipta Mukherjee in PDF and/or ePUB format, as well as other popular books in Computer Science & Open Source Programming. We have over one million books available in our catalogue for you to explore.