Skip to content

Commit 7b19538

Browse files
parkerericksonparkererickson-tgTannerWYimingPan1997xchang1986
authored
[ALGOS-152] fix(add): fast rp overhaul; (#44)
* fix(fastRP): change syntax to v1, fix print_accum * feat(fastrp): update fastrp to batching, feature passing, other features. * fix(fastrp): update default parameters * fix(fastrp): added tg prefix to udfs * fix(fastrp): remove feature embedding due to lack of schema free * doc(fastrp): fix parameter descriptions * docs(fastrp): update to latest style guidelines * feat(fastRP): add setAttr() capability for 3.8, fix udfs * Update algorithms/GraphML/Embeddings/FastRP/tg_fastRP.gsql Co-authored-by: Owen Tanner Wilkerson <[email protected]> * Update algorithms/GraphML/Embeddings/FastRP/tg_fastRP.gsql Co-authored-by: Owen Tanner Wilkerson <[email protected]> * [ALGOS-139] fix(add): add algorithms to graph studio; (#32) (#41) * Update README.md * Update tg_cycle_detection_batch.gsql * Update tg_fastRP.gsql * Update tg_closeness_cent.gsql * Update tg_betweenness_cent.gsql * Rename tg_wcc_small_world.yml to tg_algo_wcc_small_world.yml * Rename tg_algo_wcc_small_world.gsql to tg_wcc_small_world.gsql * Update tg_algo_influence_maximization_CELF.yml * Update tg_algo_influence_maximization_greedy.yml * Update tg_algo_greedy_graph_coloring.yml * Update tg_algo_knn_cosine_cv.yml * Update tg_algo_knn_cosine_ss.yml * Update tg_algo_knn_cosine_all.yml * Update tg_algo_wcc.yml * Update tg_algo_wcc_small_world.yml * Update tg_algo_scc_small_world.yml * Update tg_algo_louvain.yml * Update tg_algo_map_equation.yml * Update tg_algo_maxflow.yml * Update tg_algo_jaccard_nbor_ss.yml * Update tg_algo_jaccard_nbor_ap_batch.yml * Update tg_algo_cosine_nbor_ss.yml * Update tg_algo_cosine_nbor_ap_batch.yml * Update tg_algo_adamic_adar.yml * Update tg_algo_resource_allocation.yml * Update tg_louvain.gsql * Update tg_betweenness_cent.gsql * Update tg_closeness_cent.gsql * Update tg_louvain.gsql * Update tg_fastRP.gsql * Update tg_fastRP.gsql * Update tg_algo_wcc_small_world.yml * Update tg_wcc_small_world.gsql * Rename tg_wcc_small_world.gsql to tg_algo_wcc_small_world.gsql * Rename tg_algo_wcc_small_world.gsql to tg_wcc_small_world.gsql * fix(fastrp): off by one error in FOREACH loops * fix(fastrp): add "tg_" before "str_to_float" udf call * feat(fastrp udf): add str_to_float * Update auto_request_review.yml Co-authored-by: Parker Erickson <[email protected]> Co-authored-by: Owen Tanner Wilkerson <[email protected]> Co-authored-by: Yiming Pan <[email protected]> Co-authored-by: Xinyu <[email protected]>
1 parent 4015287 commit 7b19538

File tree

4 files changed

+244
-129
lines changed

4 files changed

+244
-129
lines changed

.github/auto_request_review.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ reviewers:
99
# Reviewer groups each of which has a list of GitHub usernames
1010
groups:
1111
group1:
12-
- YimingPan-Code
13-
- harshadindigal
12+
- yimingpantg
1413
- TannerW
15-
group2:
1614
- wyatt-joyner-tg
17-
- tommytgraph
15+
- parkererickson
16+
- lennessyy
17+
- a-m-thomas
1818
secondary:
19-
- YimingPan-Code
19+
- yimingpantg
2020
- wyatt-joyner-tg
2121
tertiary:
22-
- xchang2014
22+
- xinyuchtg
2323
- victor-gsl
2424

2525
files:

UDF/tg_ExprFunctions.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ namespace UDIMPL {
288288
return v3;
289289
}
290290

291+
inline float tg_str_to_float(std::string input) {
292+
return std::stof(input);
293+
}
294+
291295
/* ============== END FAST RP ================= */
292296

293297
/* ============== START NODE2VEC ================= */

algorithms/GraphML/Embeddings/FastRP/tg_fastRP.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@
99
#include <math.h>
1010
#include <functional>
1111

12-
inline ListAccum<float> tg_extract_list(string weights){
13-
ListAccum<float> wghts;
14-
string current_weight;
15-
std::stringstream s_stream(weights);
16-
while (s_stream.good()) {
17-
std::getline(s_stream, current_weight, ',');
18-
wghts.data_.push_back(std::stof(current_weight));
19-
}
20-
return wghts;
12+
13+
inline float tg_str_to_float(std::string input) {
14+
return std::stof(input);
2115
}

0 commit comments

Comments
 (0)