79337308

Date: 2025-01-07 20:49:02
Score: 1
Natty:
Report link

I finaly manage to use tensorflow transformation to finish the job.

first turn it to numpy array:

feature = np.array(df.select("vector_features_scaled").rdd.map(lambda row: row[0].toArray()).collect())

and turn it to a tensor and voila!

feature = tf.convert_to_tensor(feature, dtype="float32")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jonathan Roy