Repository navigation
Add ALS i2i similarity as the first experimental workload on the Step DSL - #325
Merged
Merged
Conversation
6 tasks
em3s
force-pushed
the
feat/als-i2i-experiment
branch
from
May 13, 2026 15:11
b6784e2 to
0befd43
Compare
em3s
force-pushed
the
feat/als-i2i-experiment
branch
from
May 20, 2026 14:36
0befd43 to
4e1fa6f
Compare
em3s
force-pushed
the
feat/als-i2i-experiment
branch
from
May 20, 2026 14:44
4e1fa6f to
277df41
Compare
Dogfoods the Step DSL on a real workload: V2 edge JSON → SqlTransform (prep) → AlsTransform → TopKSimilarityTransform → FileSink. - AlsTransform (Flow 1→1): wraps spark.ml.recommendation.ALS; emits item factors. Implicit-feedback defaults. - TopKSimilarityTransform (Flow 1→1): cosine-similarity self-join + Window top-K, schema (item_id, similar_item_id, score, rank). - conf/als-i2i-experiment.yaml: production-shape workflow. - Spark MLlib added to the pipeline module (compileOnly + testImplementation). Built-ins follow the <function>Transform convention (issue #313); both extend Flow. Sits on top of the Step DSL (#314). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
em3s
force-pushed
the
feat/als-i2i-experiment
branch
from
May 20, 2026 14:57
277df41 to
4310d76
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ALS i2i similarity experiment dogfooding the Step DSL on V2 edge JSON. First real workload that drove the Source/Flow/Merge/Split/Sink spec revision in #313.
Closes none — sits on top of the Step DSL (#314, merged). Built-ins follow the
<function>Transformconvention from #313; both extendFlow.Changes
AlsTransform(Flow 1→1): wrapsspark.ml.recommendation.ALS; emits item factors. Implicit-feedback defaults.TopKSimilarityTransform(Flow 1→1): cosine similarity self-cross-join + Window top-K. Output schema(item_id long, similar_item_id long, score double, rank int).pipeline/conf/als-i2i-experiment.yaml: production-shape workflow —FileSource(json) → SqlTransform(prep) → AlsTransform → TopKSimilarityTransform → FileSink(parquet).compileOnly+testImplementation).How to Test
./gradlew :pipeline:test—AlsTransformTest(2),TopKSimilarityTransformTest(5),AlsI2iWorkflowTest(end-to-end on synthetic two-cluster edges; verifies each item's top-1 neighbor is its cluster sibling).path:in the YAML and run viaspark-submit --class com.kakao.actionbase.pipeline.jobs.StepsRunnerJob.AI Assistance