Skip to content

Commit

Permalink
merge angel-format
Browse files Browse the repository at this point in the history
  • Loading branch information
paynie committed Aug 6, 2019
1 parent 6698fac commit 2a19107
Show file tree
Hide file tree
Showing 237 changed files with 863 additions and 56,184 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*.class
angel-ps/core/target/
angel-ps/psf/target/
angel-ps/graph/
angel-ps/examples/target/
angel-ps/jarvis/target/
angel-ps/tools/target/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ protected void setOutputDirectory() throws IOException {
boolean deleteOnExist = conf.getBoolean(AngelConf.ANGEL_JOB_OUTPUT_PATH_DELETEONEXIST,
AngelConf.DEFAULT_ANGEL_JOB_OUTPUT_PATH_DELETEONEXIST);

String path = null;
String path;
if (actionType.matches("train") || actionType.matches("inctrain")) {
path = conf.get(AngelConf.ANGEL_SAVE_MODEL_PATH);
} else if (actionType.matches("predict")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* Licensed 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
*
* https://opensource.org/licenses/Apache-2.0
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.tencent.angel.model;

import com.tencent.angel.ps.storage.partition.RowBasedPartition;
import java.util.ArrayList;
import java.util.List;

public class ModelIOUtils {
public static List<Integer> filter(RowBasedPartition part, List<Integer> rowIds) {
List<Integer> ret = new ArrayList<>();
for (int rowId : rowIds) {
if (part.hasRow(rowId)) {
ret.add(rowId);
}
}

return ret;
}

}

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2a19107

Please sign in to comment.