ManyUntypedSeries
public struct ManyUntypedSeries : DataSeries
-
Declaration
Swift
public typealias Element = [AnyObject] -
Declaration
Swift
public func makeIterator() -> DataSeriesIterator<ManyUntypedSeries> -
Declaration
Swift
public func prefetch(_ i: Int, streamContext: StreamContext?) -
Declaration
Swift
public func next(_ streamContext: StreamContext?) -> [AnyObject]? -
Declaration
Swift
public var underestmiatedCount: Int { get } -
Declaration
Swift
public let count: Int -
Combine tensors into one tensor. This is useful for GPU batching.
Declaration
Swift
public func combine(size: Int, repeating: Int? = nil) -> DataFrameParameters
sizeHow many tensors to group together.
repeatingHow many new columns to be created.
Return Value
A new dataframe with combined tensors.
-
Declaration
Swift
public func toGPU(_ ordinal: Int = 0) -> DataFrame.ManyUntypedSeriesTensorResult -
Sample existing columns to create a new dataframe.
Declaration
Swift
public func sample<C0, C1, U0, U1>( size: Int, repeating: Int? = nil, sampler: @escaping ([(C0, C1)]) -> (U0, U1) ) -> DataFrameParameters
sizeHow many rows to be sampled together.
repeatingWill we repeat the sampling to create more columns?
samplerThe sampling function, for example, averaging, max, first, last etc.
Return Value
A new dataframe.
-
Sample existing columns to create a new dataframe.
Declaration
Swift
public func sample<C0, C1, C2, U0, U1, U2>( size: Int, repeating: Int? = nil, sampler: @escaping ([(C0, C1, C2)]) -> (U0, U1, U2) ) -> DataFrameParameters
sizeHow many rows to be sampled together.
repeatingWill we repeat the sampling to create more columns?
samplerThe sampling function, for example, averaging, max, first, last etc.
Return Value
A new dataframe.
-
Sample existing columns to create a new dataframe.
Declaration
Swift
public func sample<C0, C1, C2, C3, U0, U1, U2, U3>( size: Int, repeating: Int? = nil, sampler: @escaping ([(C0, C1, C2, C3)]) -> (U0, U1, U2, U3) ) -> DataFrameParameters
sizeHow many rows to be sampled together.
repeatingWill we repeat the sampling to create more columns?
samplerThe sampling function, for example, averaging, max, first, last etc.
Return Value
A new dataframe.
-
Create a new column by applying some transformations on some existing columns.
Declaration
Swift
public func map<C0, C1, U>(_ mapper: @escaping (C0, C1) -> U) -> DataFrame.UntypedSeries -
Create a new column by applying some transformations on some existing columns.
Declaration
Swift
public func map<C0, C1, C2, U>(_ mapper: @escaping (C0, C1, C2) -> U) -> DataFrame.UntypedSeries -
Create a new column by applying some transformations on some existing columns.
Declaration
Swift
public func map<C0, C1, C2, C3, U>(_ mapper: @escaping (C0, C1, C2, C3) -> U) -> DataFrame.UntypedSeries -
Create a new column by applying some transformations on some existing columns.
Declaration
Swift
public func map<C0, C1, C2, C3, C4, U>(_ mapper: @escaping (C0, C1, C2, C3, C4) -> U) -> DataFrame.UntypedSeries -
Create a new column by applying some transformations on some existing columns.
Declaration
Swift
public func map<C0, C1, C2, C3, C4, C5, U>(_ mapper: @escaping (C0, C1, C2, C3, C4, C5) -> U) -> DataFrame.UntypedSeries -
Create a new column by applying some transformations on some existing columns.
Declaration
Swift
public func map<C0, C1, C2, C3, C4, C5, C6, U>( _ mapper: @escaping (C0, C1, C2, C3, C4, C5, C6) -> U ) -> DataFrame.UntypedSeries -
Create a new column by applying some transformations on some existing columns.
Declaration
Swift
public func map<C0, C1, C2, C3, C4, C5, C6, C7, U>( _ mapper: @escaping (C0, C1, C2, C3, C4, C5, C6, C7) -> U ) -> DataFrame.UntypedSeries -
Create a new column by applying some transformations on some existing columns.
Declaration
Swift
public func map<C0, C1, C2, C3, C4, C5, C6, C7, C8, U>( _ mapper: @escaping (C0, C1, C2, C3, C4, C5, C6, C7, C8) -> U ) -> DataFrame.UntypedSeries -
Create a new column by applying some transformations on some existing columns.
Declaration
Swift
public func map<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, U>( _ mapper: @escaping (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) -> U ) -> DataFrame.UntypedSeries
ManyUntypedSeries Structure Reference