javacodegeeks.com

Benchmark for new string methods of Java 11

While I was checking what’s new in Java 11, I saw that there are several new methods for String class. So I wanted to do a microbenchmark with old way of doing things and by using new methods. These new methods are; boolean isBlank() String strip() Stream lines()isBlank() is tested agains trim().isEmpty(), strip() is tested agains trim() and lines() is tested agains split().Here are the...

javacodegeeks.com

Machine Learning in Java, part 2

Welcome to the second part of the tutorial for scoring your PMML files using  LightningScorer, which is a side project of mine.Let’s find out how additional parameters work.The initial steps are similar to the first part of the tutorial.Get your local copy firstgit clone https://github.com/sezinkarli/lightningscorer.gitand build it with mavenmvn clean installand start it by going to your...

javacodegeeks.com

Machine Learning in Java, part 1

You searched for some way to export your machine learning models so you can use them for evaluating your data and you see that you can export them in PMML format. You actually work in Java ecosystem but not motivated to write neither your PMML library nor an rest api for it. Then I will recommend you LightningScorer, which is a side project of mine.Let’s take you a tour for deploying, and...