2017 Goals

2017 Goals

It’s 2017 time for new yearly goals. Here’s a list of some of the goals I have this year that I’m making public: 2 Blogs a month/24 for the year Average 1 Youtube video a month Read 24 Books in the bible Get down to <=185 lbs Beat  2:50:49 time in Half Marathon Run a Spartan Race Read 4 Technical Books(currently reading D3 in Action) Contribute to an open source project Add Dashboard to Hitter Prediction Tool for Hitters

How To Make a Custom NiFi Processor

How To Make a Custom NiFi Processor

I read a couple of forum posts(link1, link2) about converting CSV data to JSON with Apache NiFi. There are already solutions proposed for going from CSV to JSON in both of those links, one of which is writing your own Custom Processor. Since I already have code to convert data from CSV to JSON (see my post), I decided to write a NiFi Processor to accomplish the same thing. This blog entry will show how that was done. NiFi has a guide for developers reviewing several…

Read More Read More

Updates

Updates

Haven’t wrote a post in awhile was working on moving the site over and building the hitter predictor tool amongst other things. Switched my site from being hosted by WordPress.com to hosting it on my own Server hosted by Digital Ocean and using Google Domains as my registrar. Definitely the more challenging option but it’s been a rewarding experience. Will go into more details on a future post. Planning on continuing to blog but also provide video examples with some…

Read More Read More

Combining R and Java

Combining R and Java

Was curious if there were any libraries out there for combining R and Java so did some research to figure out the best library out there for this. Why? Since I know Java already combining it directly with R is something I was interested in. A use case could be if you have a mathematician who is great at using R to produce models but not so good at writing Java code to tie those models into your application. Combining…

Read More Read More

Modeling Hit Rates Between Minor League Levels

Modeling Hit Rates Between Minor League Levels

Working on figuring out the hit rates for minor leaguer batters between levels. I’d like to take the hit rates(i.e. singles(1B/PA), doubles(2B/PA), triples(3B/PA) and HRs(HR/PA) ) a player had at their previous minor league level and use that data to predict how a player will do at the following level. Similar data has been used as in the previous articles on walk rates and strike out rates. This data set covered 2011-2015 and players with a minimum of 200 PA’s…

Read More Read More

Modeling Strikeout Rate between minor league levels

Modeling Strikeout Rate between minor league levels

In this post I’ll go over my results for predicting strikeout rates between minor league levels. This article will cover the following: Data Data Wrangling Graphs and Correlation Model and Evaluation Data This time around I’ve change my approach up so I can do some cross-validation. The article will cover data from 2004-2015 but I’ll be training my model on data from 2004-2013 and evaluating it using the 2014-2015 data. The data itself consists of 39,349 data points and came…

Read More Read More

Modeling Walk Rate between minor league levels

Modeling Walk Rate between minor league levels

After reading through Projecting X by Mike Podhorzer I decided to try and predict some rate statistics between minor league levels. Mike states in his book “Projecting rates makes it dramatically easier to adjust a forecast if necessary.”; therefore if a player is injured or will only have a certain number of plate appearances that year I can still attempt to project performance. The first rate statistic I’m going to attempt project is Walk Rate between minor league levels. This…

Read More Read More

Correlation between Salary Cap and Winning?

Correlation between Salary Cap and Winning?

After doing my initial blog looking at how much each team is spending per position group. I wanted to take a look to see if there was any correlation between how much teams are spending on a position group and winning. To do this I needed to merge the cap data from spotrac  and season summary data from pro-football-reference . I merged these datasets over the last 5 years but it’d be interesting to try and find data since the salary cap was…

Read More Read More

An Ideal Home Media Setup

An Ideal Home Media Setup

I love movies and have a bunch of them but I didn’t want to always have to go upstairs and grab a DVD/Bluray each time I needed access to my movies or any other media that I have so I began searching for an ideal home media setup. I think I’ve found it and figured I’d write about it. Everything  is moving towards streaming so of course you need a streaming device on all your home tv’s. You can do…

Read More Read More

Jackson based JAX-RS Providers(JSON, XML, CSV) Example

Jackson based JAX-RS Providers(JSON, XML, CSV) Example

This blog post discusses returning multiple data formats from your RESTFul endpoints using Jackson JAX-RS providers. Jackson provides a lot of providers that you can see here . The providers allow you to return a POJO(plain old java object) from your REST annotated methods and give back the appropriate media type. Jackson also gives you the ability make your own Entity Providers. Documentation for how to do that is here below I’ll show a generic way to provide CSV’s along with XML…

Read More Read More