• Stars
    star
    110
  • Rank 316,770 (Top 7 %)
  • Language
    Java
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is a Java open source library which provides a time series forecasting functionality.

Timeseries-Forecast

This is a Java open source library which provides a time series forecasting functionality. It is an implementation of the Hannan-Rissanen algorithm for additive ARIMA models. This library is published by the Workday's Syman team, and is used to support basic timeseries forecasting functionalities in some of the Workday products.

Build Status

How to Use

In order to use this library, you need to provide input timeseries data as well as ARIMA parameters. The ARIMA parameters consist of a) non-seasonal parameters p,d,q and b) seasonal parameters P,D,Q,m. If D or m is less than 1, then the model is understood to be non-seasonal and the seasonal parameters P,D,Q,m will have no effect.

import com.workday.insights.timeseries.arima.Arima;
import com.workday.insights.timeseries.arima.struct.ForecastResult;

// Prepare input timeseries data.
double[] dataArray = new double[] {2, 1, 2, 5, 2, 1, 2, 5, 2, 1, 2, 5, 2, 1, 2, 5};

// Set ARIMA model parameters.
int p = 3;
int d = 0;
int q = 3;
int P = 1;
int D = 1;
int Q = 0;
int m = 0;
int forecastSize = 1;

// Obtain forecast result. The structure contains forecasted values and performance metric etc.
ForecastResult forecastResult = Arima.forecast_arima(dataArray, forecastSize, p, d, q, P, D, Q, m);

// Read forecast values
double[] forecastData = forecastResult.getForecast(); // in this example, it will return { 2 }

// You can obtain upper- and lower-bounds of confidence intervals on forecast values.
// By default, it computes at 95%-confidence level. This value can be adjusted in ForecastUtil.java
double[] uppers = forecastResult.getForecastUpperConf();
double[] lowers = forecastResult.getForecastLowerConf();

// You can also obtain the root mean-square error as validation metric.
double rmse = forecastResult.getRMSE();

// It also provides the maximum normalized variance of the forecast values and their confidence interval.
double maxNormalizedVariance = forecastResult.getMaxNormalizedVariance();

// Finally you can read log messages.
String log = forecastResult.getLog();

How to Build

This library uses Maven as its build tool.

// Compile the source code of the project.
mvn compile

// To generate javadocs
mvn javadoc:javadoc

// To generate a site for the current project
mvn site

// Take the compiled code and package it
mvn package

// Install the package into the local repository, which can be used as a dependency in other projects locally.
mvn install

Dependencies

The library has the following dependencies:

JUnit 4.12

Authors

Here is the Contributors List for the timeseries-forecast library. Please note that the project was developed and ported from an internal repository. Therefore, the commit record does not reflect the full history of the project.

License

Copyright 2017 Workday, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

canvas-kit

Development kits to implement UI following the Workday Canvas Design System (https://canvas.workday.com/). See our Component Storybook -
TypeScript
301
star
2

postman

A library that implements Parcelable for you.
Java
63
star
3

upshot-montague

Montague is a little CCG semantic parsing library for Scala.
Scala
59
star
4

vizzy

A powerful Ruby on Rails web server that facilitates Visual Automation.
Ruby
52
star
5

prometheus-akka

Scala
18
star
6

escalar

A Scala client for Elasticsearch’s HTTP API which presents Scala-idiomatic, typed interface. Elasticsearch exposes an HTTP API with several community-provided language bindings. A Java client exists for this HTTP API called Jest, but there is no Scala API. This client is currently implemented as a wrapper around Jest.
Scala
16
star
7

neht-graff

A full-stack web application for visualizing force directed graphs with Neo4j and D3.js.
Python
15
star
8

extend-js-example

An example that demonstrates a custom JavaScript UI interacting with Workday Extend applications.
JavaScript
15
star
9

prism-python

Python client library for interacting with Workday’s Prism API.
Python
15
star
10

raas-python

Workday Report-as-a-Service (RaaS) Python API client
Python
15
star
11

mps-code-reviewer

Code Review for JetBrains MPS providing integration with Bitbucket
15
star
12

metajava

Java annotation processor utilities.
Java
13
star
13

warp-core

Scala framework for collecting performance metrics and conducting sound experimental benchmarking.
Scala
12
star
14

OpenFrame

Workday Open Frame is an open-source add-on to Microsoft Internet Explorer that enables modern web technologies to work within older versions of IE browsers (IE 6, 7, and 8).
12
star
15

autoparse-json

Autoparse JSON is a java library built specifically for Android that uses code generation to parse JSON into custom objects in your project.
Java
11
star
16

torque

Reactive Android instrumentation test orchestrator with multi-library-modules-testing and test pooling/grouping support.
Kotlin
10
star
17

DrawAction

A simple swift library for composing drawing operations in iOS.
Swift
9
star
18

vizzy-android-lib

An Android library to simplify vizzy integration.
Kotlin
9
star
19

autoparse-xml

Autoparse XML is a java library built specifically for Android that uses code generation to parse XML into custom objects in your project.
Java
8
star
20

credstorm-sprayer

An offensive security password spraying tool
Python
8
star
21

kotlin-redux

A simplified implementation of Redux as a Kotlin library.
Kotlin
7
star
22

doc_my_routes

DocMyRoutes provides a way to annotate Sinatra routes and generate documentation
Ruby
6
star
23

emotion-workshop

Emotion (CSS in JS library) workshop for DinosaurJS 2019
JavaScript
6
star
24

vpn-swapper

A fire and forget command-line tool to allow for easy transitions of VPN connections between a pool of AWS machines.
Python
5
star
25

workday.github.com

Workday Developer Blog
CSS
5
star
26

cpc

5
star
27

canvas-tokens

Canvas design token infrastructure
TypeScript
4
star
28

canvas-kit-actions

GH Actions to support Canvas Kit
TypeScript
3
star
29

tclscan-docker

tclscan docker image
Dockerfile
2
star
30

canvas-tokens-studio

a centralized location to sync our design tokens config
1
star
31

validate_my_routes

Parameter Validation for Sinatra
Ruby
1
star
32

content-cloud-reference-app

A reference application for being a Content Cloud provider.
JavaScript
1
star
33

graphiql-plugins

TypeScript
1
star
34

WorkdayBlackberryWrapper

A Native Blackberry wrapper for the Workday Mobile Web App (https://m.myworkday.com)
C++
1
star