Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

rockreel/mlengine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLEngine - A practical ML framework for production

Build project

git clone https://github.com/zhoulu312/mlengine.git
cd mlengine
mvn install

Train a classification model

# Train
$SPARK_HOME/bin/spark-submit \
  --master local[4] \
  --jars mlengine-core/target/mlengine-core-0.0.1.jar \
  --class com.lz.mlengine.spark.SparkMLPipeline mlengine-spark/target/mlengine-spark-0.0.1.jar \
  train LogisticRegression \
  /tmp/lrmodel mlengine-spark/src/test/resources/sample_features.json mlengine-spark/src/test/resources/sample_classification_labels.txt

# Predict
$SPARK_HOME/bin/spark-submit \
  --master local[4] \
  --jars mlengine-core/target/mlengine-core-0.0.1.jar \
  --class com.lz.mlengine.spark.SparkMLPipeline mlengine-spark/target/mlengine-spark-0.0.1.jar \
  predict LogisticRegression \
  /tmp/lrmodel mlengine-spark/src/test/resources/sample_features.json /tmp/lrmodel_result

Train a regression model

# Train
$SPARK_HOME/bin/spark-submit \
  --master local[4] \
  --jars mlengine-core/target/mlengine-core-0.0.1.jar \
  --class com.lz.mlengine.spark.SparkMLPipeline mlengine-spark/target/mlengine-spark-0.0.1.jar \
  train LinearRegression \
  /tmp/lrmodel mlengine-spark/src/test/resources/sample_features.json mlengine-spark/src/test/resources/sample_regression_labels.txt

# Predict
$SPARK_HOME/bin/spark-submit \
  --master local[4] \
  --jars mlengine-core/target/mlengine-core-0.0.1.jar \
  --class com.lz.mlengine.spark.SparkMLPipeline mlengine-spark/target/mlengine-spark-0.0.1.jar \
  predict LinearRegression \
  /tmp/lrmodel mlengine-spark/src/test/resources/sample_features.json /tmp/lrmodel_result

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages