Skip to content
Snippets Groups Projects
Commit 95b6a810 authored by Vinod K C's avatar Vinod K C Committed by Xiangrui Meng
Browse files

[SPARK-10516] [ MLLIB] Added values property in DenseVector

Author: Vinod K C <vinod.kc@huawei.com>

Closes #8682 from vinodkc/fix_SPARK-10516.
parent b921fe4d
No related branches found
No related tags found
No related merge requests found
......@@ -399,6 +399,10 @@ class DenseVector(Vector):
def toArray(self):
return self.array
@property
def values(self):
return self.array
def __getitem__(self, item):
return self.array[item]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment