Skip to main content

Advertisement

Table 2 Dataset schema

From: Analysis and classification of heart diseases using heartbeat features and machine learning algorithms

val Schema = StructType(Array(StructField("Var1", DoubleType,true)
StructField("Var2", DoubleType, true),StructField("Var3", DoubleType, true)
StructField("Var4", DoubleType, true),StructField("Var5", DoubleType, true)
StructField("Var6", DoubleType, true),StructField("Var7", DoubleType, true)
StructField("Var8", DoubleType, true),StructField("Var9", DoubleType, true)
StructField("Var10", DoubleType, true),StructField("Var11", DoubleType, true)
StructField("Var12", DoubleType, true),StructField("Var13", DoubleType, true)
StructField("Var14", DoubleType, true),StructField("Var15", DoubleType, true)
StructField("Var16", DoubleType, true),StructField("Var17", IntegerType, true)))