forked from oap-project/oap-mllib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Fix OSPDT review issues (oap-project#339)
* Fix OSPDT issues (oap-project#334) * upgrade to 1.6.0 Signed-off-by: minmingzhu <[email protected]> * fixed OSPDT issues Signed-off-by: minmingzhu <[email protected]> * update Signed-off-by: minmingzhu <[email protected]> * update service.cpp Signed-off-by: minmingzhu <[email protected]> * Empty-Commit * test pyspark CI Signed-off-by: minmingzhu <[email protected]> * rollback ci-standalone-test-cpu.sh Signed-off-by: minmingzhu <[email protected]> * split CI script to python and scala Signed-off-by: minmingzhu <[email protected]> * Update ci-tests.yml --------- Signed-off-by: minmingzhu <[email protected]> * [ML-335] Fix issues (oap-project#337) * split CI script to python and scala Signed-off-by: minmingzhu <[email protected]> * fixed issues Signed-off-by: minmingzhu <[email protected]> * update ci-tests.yml Signed-off-by: minmingzhu <[email protected]> * update service.cpp Signed-off-by: minmingzhu <[email protected]> * update service.cpp code style Signed-off-by: minmingzhu <[email protected]> --------- Signed-off-by: minmingzhu <[email protected]> * split CI script to python and scala Signed-off-by: minmingzhu <[email protected]> * update ci-tests.yml Signed-off-by: minmingzhu <[email protected]> * update service.cpp Signed-off-by: minmingzhu <[email protected]> * update service.cpp code style Signed-off-by: minmingzhu <[email protected]> * fix issues Signed-off-by: minmingzhu <[email protected]> * fixed OSPDT review issues Signed-off-by: minmingzhu <[email protected]> * update RowAccessorImpl.cpp Signed-off-by: minmingzhu <[email protected]> * update suite test Signed-off-by: minmingzhu <[email protected]> * update Signed-off-by: minmingzhu <[email protected]> --------- Signed-off-by: minmingzhu <[email protected]>
- Loading branch information
1 parent
ef71e29
commit 20f2fd6
Showing
32 changed files
with
345 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env bash | ||
|
||
# exit when any command fails | ||
set -e | ||
|
||
# keep track of the last executed command | ||
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG | ||
# echo an error message before exiting | ||
trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT | ||
|
||
# Install dependencies for building | ||
$GITHUB_WORKSPACE/dev/install-build-deps-ubuntu.sh | ||
|
||
# Setup building envs | ||
source /opt/intel/oneapi/setvars.sh --ccl-configuration=cpu | ||
|
||
# Prepare lib resources | ||
cd $GITHUB_WORKSPACE/mllib-dal | ||
../dev/prepare-build-deps.sh | ||
./build.sh -p CPU_GPU_PROFILE -q | ||
|
||
# Setup cluster | ||
source $GITHUB_WORKSPACE/dev/test-cluster/standalone/setup-cluster.sh | ||
|
||
# Setup OAP MLlib envs | ||
cp $GITHUB_WORKSPACE/dev/test-cluster/standalone/env.sh $GITHUB_WORKSPACE/conf | ||
cd $GITHUB_WORKSPACE/examples | ||
|
||
|
||
echo "=========================================" | ||
echo "Cluster Testing with Spark Version: $SPARK_VERSION" | ||
echo "=========================================" | ||
|
||
# run all examples | ||
./run-all-pyspark-cpu.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 18 additions & 2 deletions
20
mllib-dal/src/main/java/com/intel/oap/mllib/classification/NaiveBayesResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
package com.intel.oap.mllib.classification; | ||
|
||
public class NaiveBayesResult { | ||
public long piNumericTable; | ||
public long thetaNumericTable; | ||
private long piNumericTable; | ||
private long thetaNumericTable; | ||
|
||
public long getPiNumericTable() { | ||
return piNumericTable; | ||
} | ||
|
||
public void setPiNumericTable(long piNumericTable) { | ||
this.piNumericTable = piNumericTable; | ||
} | ||
|
||
public long getThetaNumericTable() { | ||
return thetaNumericTable; | ||
} | ||
|
||
public void setThetaNumericTable(long thetaNumericTable) { | ||
this.thetaNumericTable = thetaNumericTable; | ||
} | ||
} |
30 changes: 27 additions & 3 deletions
30
mllib-dal/src/main/java/com/intel/oap/mllib/classification/RandomForestResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
package com.intel.oap.mllib.classification; | ||
|
||
public class RandomForestResult { | ||
public long predictionNumericTable; | ||
public long probabilitiesNumericTable; | ||
public long importancesNumericTable; | ||
private long predictionNumericTable; | ||
private long probabilitiesNumericTable; | ||
private long importancesNumericTable; | ||
|
||
public long getProbabilitiesNumericTable() { | ||
return probabilitiesNumericTable; | ||
} | ||
|
||
public void setProbabilitiesNumericTable(long probabilitiesNumericTable) { | ||
this.probabilitiesNumericTable = probabilitiesNumericTable; | ||
} | ||
|
||
public long getPredictionNumericTable() { | ||
return predictionNumericTable; | ||
} | ||
|
||
public void setPredictionNumericTable(long predictionNumericTable) { | ||
this.predictionNumericTable = predictionNumericTable; | ||
} | ||
|
||
public long getImportancesNumericTable() { | ||
return importancesNumericTable; | ||
} | ||
|
||
public void setImportancesNumericTable(long importancesNumericTable) { | ||
this.importancesNumericTable = importancesNumericTable; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.