public class SparseData
extends com.aliyun.tea.TeaModel
| Modifier and Type | Field and Description |
|---|---|
List<Integer> |
count
每个稀疏向量中包含的元素个数
|
List<Long> |
indices
元素下标(需要从小到大排序)
|
List<Float> |
values
元素值(与下标一一对应)
|
| Constructor and Description |
|---|
SparseData() |
| Modifier and Type | Method and Description |
|---|---|
static SparseData |
build(Map<String,?> map) |
List<Integer> |
getCount() |
List<Long> |
getIndices() |
List<Float> |
getValues() |
SparseData |
setCount(List<Integer> count) |
SparseData |
setIndices(List<Long> indices) |
SparseData |
setValues(List<Float> values) |
@NameInMap(value="indices") @Validation(required=true) public List<Long> indices
元素下标(需要从小到大排序)
public static SparseData build(Map<String,?> map) throws Exception
Exceptionpublic SparseData setCount(List<Integer> count)
public SparseData setIndices(List<Long> indices)
public SparseData setValues(List<Float> values)
Copyright © 2024. All rights reserved.