Coder Social home page Coder Social logo

hivemall's Introduction

Hivemall: Hive scalable machine learning library

Hivemall is a scalable machine learning library that runs on Apache Hive, licensed under the LGPL 2.1.
Hivemall is designed to be scalable to the number of training instances as well as the number of training features.

logo

Supported Algorithms

Hivemall provides machine learning functionality as well as feature engineering functions through UDFs/UDAFs/UDTFs of Hive.

Classfication

  • Perceptron

  • Passive Aggressive (PA, PA1, PA2)

  • Confidence Weighted (CW)

  • Adaptive Regularization of Weight Vectors (AROW)

  • Soft Confidence Weighted (SCW1, SCW2)

Regression

  • Logistic Regression using Stochastic Gradient Descent (parameter mixing and iterative parameter mixing)

  • Passive Aggressive Regression (PA1, PA2)

  • AROW regression

Ensemble

  • Bagging

Loss functions

  • SquaredLoss, LogisticLoss, HingeLoss, SquaredHingeLoss, QuantileLoss, EpsilonInsensitiveLoss

Feature engineering

  • Feature hashing (MurmurHash, SHA1)

  • Feature scaling (Min-Max Normalization, Z-Score)

  • Feature instances amplifier that reduces iterations on training

  • Bias clause

  • Data generator for one-vs-the-rest classifiers

System requirements

  • Hive 0.9 and later (Tested for v0.9 - v0.12)

  • Hadoop 0.20.x (CDH3 is our target)

Basic Usage

SELECT 
  feature, 
  CAST(avg(weight) as FLOAT) as weight
FROM
 (SELECT logress(features,label) as (feature,weight) FROM training_features) t
GROUP BY feature;

Find more examples on our wiki page.

License

GNU Lesser General Public License 2.1
http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html

According to LGPL 2.1, softwares that modifies/copies Hivemall MUST open their source codes upon requests.
On the other hand, softwares that uses the Hivemall jar package without any modification are no need to show their sources. See GNU's LGPL and Java page for detail.

The LGPL does not require you to distribute source code of programs as far as just using/linking Hivemall in your application, so you can use Hivemall in closed-source apps and for most commercial uses.

If you want other (commercial) licensing options, please contact me. I and my institute are ready to provide a commercial license with an additional support contract.
Makoto YUI <m.yui AT aist.go.jp>

Copyright

Copyright (C) 2013 National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number: [H25PRO-1520]

Put the above copyrights for the services/softwares that use Hivemall.

References

Please refer the following paper for research uses:

  • Makoto Yui and Isao Kojima. ``A Database-Hadoop Hybrid Approach to Scalable Machine Learning'',
    Proc. IEEE 2nd International Congress on Big Data, July 2013 [paper] [slide]

Acknowledgment

This work was supported in part by a JSPS grant-in-aid for young scientists (B) #24700111 and a JSPS grant-in-aid for scientific research (A) #24240015.

hivemall's People

Contributors

myui avatar smly avatar y-tag avatar

Stargazers

Jeff avatar

Watchers

James Cloos avatar Jeff avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.