Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-stage programming model with K-means, EM, LinearReg, and LogisticReg #19

Merged
merged 47 commits into from
Apr 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
26af3bf
simple test 1
Nov 19, 2014
5d60d58
simple test 2
Nov 24, 2014
e4d30b2
implementing runtime (take 1)
Nov 25, 2014
140cb78
taking out unused util classes
Nov 25, 2014
4d0d2f6
implementing runtime (take 2)
jsjason Nov 26, 2014
2fd541e
implementing runtime (take 3)
jsjason Dec 22, 2014
ef45829
implementing runtime (take 4)
jsjason Dec 22, 2014
57d3e92
Update README.md
jsjason Dec 23, 2014
a75e1ad
implementing runtime (take 5)
jsjason Dec 24, 2014
74a253c
Merge branch 'js_runtime2' of https://github.com/swsnu/flexion into j…
jsjason Dec 24, 2014
3ea87a7
implementing runtime (take 6)
jsjason Dec 24, 2014
5bf59b4
generalize ComputeTask and ControllerTask
kijungs Feb 16, 2015
7d0a1d0
generalize ComputeTask and ControllerTask
kijungs Feb 17, 2015
a69f2d2
generalize ComputeTask and ControllerTask
kijungs Feb 17, 2015
b411376
generalize ComputeTask and ControllerTask
kijungs Feb 17, 2015
c342417
generalize ComputeTask and ControllerTask
kijungs Feb 25, 2015
4424e28
Add a data parser
kijungs Feb 25, 2015
2697686
Add a data parser
kijungs Feb 25, 2015
1287d90
generalize ComputeTask and ControllerTask
kijungs Feb 27, 2015
1b447c8
generalize ComputeTask and ControllerTask
kijungs Feb 27, 2015
f32c0ef
generalize ComputeTask and ControllerTask
kijungs Feb 27, 2015
2b6df2c
Implement K-means algorithms on top of Flexion
kijungs Feb 27, 2015
5d145b4
Implement SGD on top of Flexion abstraction
Mar 16, 2015
b59f2f6
Modify Flexion core to support multiple BSP tasks in a single job
kijungs Mar 27, 2015
6c1ff63
Modify Flexion core to support multiple BSP tasks in a single job
kijungs Mar 27, 2015
6081131
Modify Flexion core to support multiple BSP tasks in a single job
kijungs Mar 27, 2015
dce4eaf
Modify the K-means implementation so that it uses the new Flexion pro…
kijungs Mar 27, 2015
893f647
Modify the K-means implementation so that it uses the new Flexion pro…
kijungs Mar 31, 2015
415691a
Change terms: use 'Stage' instead of 'Task'
kijungs Mar 31, 2015
f9f7001
Implement the EM algorithm using the new Flexion programming model.
kijungs Apr 1, 2015
52b4863
User can specify the number of clusters in the K-means algorithm and …
kijungs Apr 3, 2015
27b1526
The amount of data broadcast and gathered is reduced
kijungs Apr 5, 2015
cbd9668
I correct trivial problems mentioned during jsjason's code review
kijungs Apr 7, 2015
fb2724c
Merge branch 'js_sgd' into kj_sgd
kijungs Apr 15, 2015
58daed4
Implement the Linear regression and Logistic regression using the mul…
kijungs Apr 15, 2015
2b32f9b
Add convergence threshold parameter to Linear regression and Logistic…
kijungs Apr 15, 2015
686ad85
Modified indentations so that they follow the convention
kijungs Apr 15, 2015
09fc97b
Changed StageInfo using the Builder Pattern
kijungs Apr 15, 2015
b4c7cfd
Merged with master
kijungs Apr 15, 2015
1128bba
Update pom.xml
kijungs Apr 23, 2015
281db63
Fix a bug regarding the number of iterations
kijungs Apr 23, 2015
5abf265
Change the simple example so that
kijungs Apr 23, 2015
9b4fb52
Merge branch 'kj-generalize' of https://github.com/cmssnu/Flexion int…
kijungs Apr 23, 2015
7e475dd
I added copyrights to all the source codes and shell files
kijungs Apr 27, 2015
7db39a1
I removed unnecessary empty lines according to the sun java coding co…
kijungs Apr 28, 2015
1f6749c
I added descriptions to sample data
kijungs Apr 28, 2015
da97206
I changed the codes so that
kijungs Apr 28, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions bin/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# EXAMPLE USAGE
# ./run.sh -local true -split 4 -input sample

# RUNTIME
SELF_JAR=../target/flexion-0.1-SNAPSHOT-shaded.jar

LOGGING_CONFIG='-Djava.util.logging.config.class=org.apache.reef.util.logging.Config'

CLASSPATH=$YARN_HOME/share/hadoop/common/*:$YARN_HOME/share/hadoop/common/lib/*:$YARN_HOME/share/hadoop/yarn/*:$YARN_HOME/share/hadoop/hdfs/*:$YARN_HOME/share/hadoop/mapreduce/lib/*:$YARN_HOME/share/hadoop/mapreduce/*

YARN_CONF_DIR=$YARN_HOME/etc/hadoop

ALG=edu.snu.reef.flexion.examples.simple.SimpleREEF

CMD="java -cp $YARN_CONF_DIR:$SELF_JAR:$CLASSPATH $LOCAL_RUNTIME_TMP $LOGGING_CONFIG $ALG $*"
echo $CMD
$CMD # 2> /dev/null
36 changes: 36 additions & 0 deletions bin/run_em.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# EXAMPLE USAGE
# ./run_em.sh -numCls 4 -convThr 0.01 -maxIter 20 -local true -split 4 -input sample_cluster

# RUNTIME
SELF_JAR=../target/flexion-0.1-SNAPSHOT-shaded.jar

LOGGING_CONFIG='-Djava.util.logging.config.class=org.apache.reef.util.logging.Config'

CLASSPATH=$YARN_HOME/share/hadoop/common/*:$YARN_HOME/share/hadoop/common/lib/*:$YARN_HOME/share/hadoop/yarn/*:$YARN_HOME/share/hadoop/hdfs/*:$YARN_HOME/share/hadoop/mapreduce/lib/*:$YARN_HOME/share/hadoop/mapreduce/*

YARN_CONF_DIR=$YARN_HOME/etc/hadoop

EM=edu.snu.reef.flexion.examples.ml.algorithms.clustering.em.EMREEF

CMD="java -cp $YARN_CONF_DIR:$SELF_JAR:$CLASSPATH $LOCAL_RUNTIME_TMP $LOGGING_CONFIG $EM $*"
echo $CMD
$CMD # 2> /dev/null
37 changes: 37 additions & 0 deletions bin/run_kmeans.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# EXAMPLE USAGE
# ./run_kmeans.sh -numCls 4 -convThr 0.01 -maxIter 20 -local true -split 4 -input sample_cluster

# RUNTIME
SELF_JAR=../target/flexion-0.1-SNAPSHOT-shaded.jar

LOGGING_CONFIG='-Djava.util.logging.config.class=org.apache.reef.util.logging.Config'

CLASSPATH=$YARN_HOME/share/hadoop/common/*:$YARN_HOME/share/hadoop/common/lib/*:$YARN_HOME/share/hadoop/yarn/*:$YARN_HOME/share/hadoop/hdfs/*:$YARN_HOME/share/hadoop/mapreduce/lib/*:$YARN_HOME/share/hadoop/mapreduce/*

YARN_CONF_DIR=$YARN_HOME/etc/hadoop

ALG=edu.snu.reef.flexion.examples.ml.algorithms.clustering.kmeans.KMeansREEF

CMD="java -cp $YARN_CONF_DIR:$SELF_JAR:$CLASSPATH $LOCAL_RUNTIME_TMP $LOGGING_CONFIG $ALG $*"
echo $CMD
$CMD # 2> /dev/null
37 changes: 37 additions & 0 deletions bin/run_logistic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# EXAMPLE USAGE
# ./run_logistic.sh -dim 3 -maxIter 20 -stepSize 0.00001 -lambda 0.1 -local true -split 4 -input sample_classification

# RUNTIME
SELF_JAR=../target/flexion-0.1-SNAPSHOT-shaded.jar

LOGGING_CONFIG='-Djava.util.logging.config.class=org.apache.reef.util.logging.Config'

CLASSPATH=$YARN_HOME/share/hadoop/common/*:$YARN_HOME/share/hadoop/common/lib/*:$YARN_HOME/share/hadoop/yarn/*:$YARN_HOME/share/hadoop/hdfs/*:$YARN_HOME/share/hadoop/mapreduce/lib/*:$YARN_HOME/share/hadoop/mapreduce/*

YARN_CONF_DIR=$YARN_HOME/etc/hadoop

ALG=edu.snu.reef.flexion.examples.ml.algorithms.classification.LogisticRegREEF

CMD="java -cp $YARN_CONF_DIR:$SELF_JAR:$CLASSPATH $LOCAL_RUNTIME_TMP $LOGGING_CONFIG $ALG $*"
echo $CMD
$CMD # 2> /dev/null
37 changes: 37 additions & 0 deletions bin/run_regression.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# EXAMPLE USAGE
# ./run_regression.sh -dim 3 -maxIter 20 -stepSize 0.001 -lambda 0.1 -local true -split 4 -input sample_regression

# RUNTIME
SELF_JAR=../target/flexion-0.1-SNAPSHOT-shaded.jar

LOGGING_CONFIG='-Djava.util.logging.config.class=org.apache.reef.util.logging.Config'

CLASSPATH=$YARN_HOME/share/hadoop/common/*:$YARN_HOME/share/hadoop/common/lib/*:$YARN_HOME/share/hadoop/yarn/*:$YARN_HOME/share/hadoop/hdfs/*:$YARN_HOME/share/hadoop/mapreduce/lib/*:$YARN_HOME/share/hadoop/mapreduce/*

YARN_CONF_DIR=$YARN_HOME/etc/hadoop

ALG=edu.snu.reef.flexion.examples.ml.algorithms.regression.LinearRegREEF

CMD="java -cp $YARN_CONF_DIR:$SELF_JAR:$CLASSPATH $LOCAL_RUNTIME_TMP $LOGGING_CONFIG $ALG $*"
echo $CMD
$CMD # 2> /dev/null
Loading