Skip to Main Content
Modern Scala Projects
book

Modern Scala Projects

by Ilango gurusamy
July 2018
Intermediate to advanced content levelIntermediate to advanced
334 pages
8h 20m
English
Packt Publishing
Content preview from Modern Scala Projects

F1 score

Since our fraudulent class is the important one, we are going to need the following to help us choose a classifier that has the best F1 score as follows

  • Labeled data is the test DataFrametestingDf
  • PDF—a product of probabilities computed in the probabilityDensity function

Keeping in mind that we need labeled data (points) to arrive at the best F1 score, the following background information is helpful as follows:

  • What is the role of cross-validation? To understand cross-validation, we revisit the validation process, where a subset of the samples from the training set is used to train the model. Cross-validation is an improvement over validation, because of the fact that there are more observations available for the model to be ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Scala Programming Projects

Scala Programming Projects

Mikael Valot, Nicolas Jorand

Publisher Resources

ISBN: 9781788624114Supplemental Content