ManyUntypedSeries

public struct ManyUntypedSeries : DataSeries

Undocumented

  • Declaration

    Swift

    public typealias Element = [AnyObject]
  • Declaration

    Swift

    public func makeIterator() -> DataSeriesIterator<ManyUntypedSeries>
  • Undocumented

    Declaration

    Swift

    public func prefetch(_ i: Int, streamContext: StreamContext?)
  • Undocumented

    Declaration

    Swift

    public func next(_ streamContext: StreamContext?) -> [AnyObject]?
  • Undocumented

    Declaration

    Swift

    public var underestmiatedCount: Int { get }
  • Undocumented

    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) -> DataFrame

    Parameters

    size

    How many tensors to group together.

    repeating

    How many new columns to be created.

    Return Value

    A new dataframe with combined tensors.

  • Undocumented

    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)
    ) -> DataFrame

    Parameters

    size

    How many rows to be sampled together.

    repeating

    Will we repeat the sampling to create more columns?

    sampler

    The 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)
    ) -> DataFrame

    Parameters

    size

    How many rows to be sampled together.

    repeating

    Will we repeat the sampling to create more columns?

    sampler

    The 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)
    ) -> DataFrame

    Parameters

    size

    How many rows to be sampled together.

    repeating

    Will we repeat the sampling to create more columns?

    sampler

    The 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