Declarative Machine Learning with the Samsara DSL
summary
A Scala DSL called Apache Mahout Samsara DSL expresses linear-algebra programs that the system rewrites and runs on engines like Spark (prototype) and a pending Flink PR. Large matrices become a distributed row matrix (drm.fromHdfs); common patterns (e.g. XᵀX) trigger optimizer rewrites into a one-pass row-outer-product physical operator (transpose-self or the memory-fast A-slim). Example: ordinary least squares computes XᵀX and Xᵀy on the cluster, collects the small XᵀX to the driver, and solves in-memory — it runs and scales given the XᵀX fits.
AI-written summary · about
