Angel-ML / Angel-ML/angel

How to get L1-norm of the Vector?

Đang mở
#805 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
6.8k
Fork
1.6k
Merge trung bình
44 phút
Pull request đã merge (30 ngày)
1

Mô tả

Hello,
Now I initialize a PSVector with 5 \*10 (rows*dims) by stating
`val den = PSVector.dense(10,5);`
`val local = den.pull(0);`
`local.norm()` -- the output result shows that norm() is to calculate the L2-norm of the first row of the pulled vector local.
Could you please teach me how to implement calculating the L1-norm of a vector. Thanks a lot.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.