weibozhao commented on a change in pull request #24:
URL: https://github.com/apache/flink-ml/pull/24#discussion_r755673190



##########
File path: 
flink-ml-api/src/main/java/org/apache/flink/ml/linalg/DenseVector.java
##########
@@ -42,14 +45,26 @@ public double get(int i) {
         return values[i];
     }
 
+    @Override
+    public void set(int i, double val) {
+        values[i] = val;
+    }
+
     @Override
     public double[] toArray() {
         return values;
     }
 
     @Override
     public String toString() {
-        return Arrays.toString(values);
+        StringBuilder sbd = new StringBuilder();

Review comment:
       DenseVectorSerializer is the serializer for flink
   Here, we just want to transform a denseVector to string, and transform 
string to denseVector. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to