Apache Spark 2.x Machine Learning Cookbook
上QQ阅读APP看书,第一时间看更新

Package imports and initial setup for vectors and matrices

Before we can program in Spark or use vector and matrix artifacts, we need to first import the right packages and then set up SparkSession so we can gain access to the cluster handle.

In this short recipe, we highlight a comprehensive number of packages that can cover most of the linear algebra operations in Spark. The individual recipes that follow will include the exact subset required for the specific program.