Class: Xberg::SparseEmbedding

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSparseEmbedding

Returns a new instance of SparseEmbedding.

Parameters:

  • indices: (Array[Integer])
  • values: (Array[Float])


1841
# File 'sig/types.rbs', line 1841

def initialize: (indices: Array[Integer], values: Array[Float]) -> void

Instance Attribute Details

#indicesArray[Integer] (readonly)

Returns the value of attribute indices.

Returns:

  • (Array[Integer])


1838
1839
1840
# File 'sig/types.rbs', line 1838

def indices
  @indices
end

#valuesArray[Float] (readonly)

Returns the value of attribute values.

Returns:

  • (Array[Float])


1839
1840
1841
# File 'sig/types.rbs', line 1839

def values
  @values
end