Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Scala for Machine Learning
  • Table Of Contents Toc
  • Feedback & Rating feedback
Scala for Machine Learning

Scala for Machine Learning

By : R. Nicolas
3.8 (12)
close
close
Scala for Machine Learning

Scala for Machine Learning

3.8 (12)
By: R. Nicolas

Overview of this book

Are you curious about AI? All you need is a good understanding of the Scala programming language, a basic knowledge of statistics, a keen interest in Big Data processing, and this book!
Table of Contents (15 chapters)
close
close
14
Index

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Finally, the environment variables JAVA_HOME, PATH, and CLASSPATH have to be updated accordingly."

A block of code is set as follows:

[default]
val lsp = builder.model(lrJacobian)
                 .weight(wMatrix) 
                 .target(labels)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

[default]
val lsp = builder.model(lrJacobian)
                 .weight(wMatrix)
                  .target(labels)

The source code block is described using a reference number embedded as a code comment:

[default]
val lsp = builder.model(lrJacobian)  //1
                 .weight(wMatrix)
                  .target(labels)

The reference number is used in the chapter as follows: "The model instance is initialized with the Jacobian matrix, lrJacobian (line 1)."

Any command-line input or output is written as follows:

sbt/sbt assembly

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "The loss function is then known as the hinge loss."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Note

Mathematical formulas (optional to read) appear in a box like this

For the sake of readability, the elements of the Scala code that are not essential to the understanding of an algorithm such as class, variable, and method qualifiers and validation of arguments, exceptions, or logging are omitted. The convention for code snippets is detailed in the Format of code snippets section in Appendix A, Basic Concepts.

You will be provided with in-text citation of papers, conference, books, and instructional videos throughout the book. The sources are listed in the the Appendix B, References using in the following format:

[In-text citation]

For example, in the chapter, you will find an instance as follows:

This time around RSS increases with Conventions before reaching a maximum for Conventions > 60. This behavior is consistent with other findings [6:12].

The respective [source entry] is mentioned in Appendix B, References, as follows:

[6:12] Model selection and assessment H. Bravo, R. Irizarry, 2010, available at http://www.cbcb.umd.edu/~hcorrada/PracticalML/pdf/lectures/selection.pdf.

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY