Class/Object

org.platanios.tensorflow.api.io.events

EventAccumulator

Related Docs: object EventAccumulator | package events

Permalink

case class EventAccumulator(path: Path, sizeGuidance: Map[EventType, Int] = ..., histogramCompressionBps: Seq[Int] = ..., purgeOrphanedData: Boolean = true) extends Product with Serializable

Accumulates event values collected from the provided path.

The EventAccumulator is intended to provide a convenient interface for loading event data written during a TensorFlow run (or otherwise). TensorFlow writes out event ProtoBuf objects, which have a timestamp and step number associated with them, and often also contain a Summary. Summaries can store different kinds of data like a scalar value, an image, audio, or a histogram. Each summary also has a tag associated with it, which we use to organize logically related data. The EventAccumulator supports retrieving the event and summary data by their tags.

Calling tags returns a map from event types to the associated tags for those types, that were found in the loaded event files. Then, various functional endpoints (e.g., scalars(tag)) allow for the retrieval of all data associated with each tag.

The reload() method synchronously loads all of the data written so far.

path

Path to a directory containing TensorFlow events files, or a single TensorFlow events file. The accumulator will load events from this path.

sizeGuidance

Information on how much data the event accumulator should store in memory. The default size guidance tries not to store too much so as to avoid consuming all of the client's memory. The sizeGuidance should be a map from event types to integers representing the number of items to keep in memory, per tag for items of that event type. If the size is 0, then all events are stored. Images, audio, and histograms tend to be very large and thus storing all of them is not recommended.

histogramCompressionBps

Information on how the event accumulator should compress histogram data for the CompressedHistogramEventType event type.

purgeOrphanedData

Boolean value indicating whether to discard any events that were "orphaned" by a TensorFlow restart.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventAccumulator
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EventAccumulator(path: Path, sizeGuidance: Map[EventType, Int] = ..., histogramCompressionBps: Seq[Int] = ..., purgeOrphanedData: Boolean = true)

    Permalink

    path

    Path to a directory containing TensorFlow events files, or a single TensorFlow events file. The accumulator will load events from this path.

    sizeGuidance

    Information on how much data the event accumulator should store in memory. The default size guidance tries not to store too much so as to avoid consuming all of the client's memory. The sizeGuidance should be a map from event types to integers representing the number of items to keep in memory, per tag for items of that event type. If the size is 0, then all events are stored. Images, audio, and histograms tend to be very large and thus storing all of them is not recommended.

    histogramCompressionBps

    Information on how the event accumulator should compress histogram data for the CompressedHistogramEventType event type.

    purgeOrphanedData

    Boolean value indicating whether to discard any events that were "orphaned" by a TensorFlow restart.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def audio(tag: String): List[AudioEventRecord]

    Permalink

    Returns all audio events associated with the provided summary tag.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def compressedHistograms(tag: String): List[CompressedHistogramEventRecord]

    Permalink

    Returns all compressed histogram events associated with the provided summary tag.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def firstEventTimeStamp: Double

    Permalink

    Returns the timestamp (in seconds) of the first event.

    Returns the timestamp (in seconds) of the first event.

    If the first event has been loaded (either by this method or by reload(), then this method returns immediately. Otherwise, it loads the first event and then returns. Note that this means that calling reload() will cause this method to block until reload() has finished.

  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def graph: GraphDef

    Permalink

    Returns the graph definition, if there is one.

    Returns the graph definition, if there is one.

    If the graph is stored directly, the method returns it. If no graph is stored directly, but a meta-graph is stored containing a graph, the method returns that graph.

    Annotations
    @throws( ... )
  13. val histogramCompressionBps: Seq[Int]

    Permalink

    Information on how the event accumulator should compress histogram data for the CompressedHistogramEventType event type.

  14. def histograms(tag: String): List[HistogramEventRecord]

    Permalink

    Returns all histogram events associated with the provided summary tag.

  15. def images(tag: String): List[ImageEventRecord]

    Permalink

    Returns all image events associated with the provided summary tag.

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def metaGraph: MetaGraphDef

    Permalink

    Returns the meta-graph definition, if there is one.

    Returns the meta-graph definition, if there is one.

    Annotations
    @throws( ... )
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. val path: Path

    Permalink

    Path to a directory containing TensorFlow events files, or a single TensorFlow events file.

    Path to a directory containing TensorFlow events files, or a single TensorFlow events file. The accumulator will load events from this path.

  22. def pluginAssets(pluginName: String): Seq[Path]

    Permalink

    Returns a sequence with paths to all the registered assets for the provided plugin name.

    Returns a sequence with paths to all the registered assets for the provided plugin name.

    If a plugins directory does not exist in the managed directory, then this method returns an empty list. This maintains compatibility with old log directories that contain no plugin sub-directories.

  23. def pluginTagToContent(pluginName: String): Option[Map[String, String]]

    Permalink

    Returns a map from tags to content specific to the specified plugin.

  24. val purgeOrphanedData: Boolean

    Permalink

    Boolean value indicating whether to discard any events that were "orphaned" by a TensorFlow restart.

  25. def reload(): EventAccumulator

    Permalink

    Loads all events added since the last call to reload() and returns this event accumulator.

    Loads all events added since the last call to reload() and returns this event accumulator. If reload() was never called before, then it loads all events in the path.

  26. def retrievePluginAsset(pluginName: String, assetName: String): String

    Permalink

    Retrieves a particular plugin asset from the managed directory and returns it as a string.

  27. def runMetadata(tag: String): RunMetadata

    Permalink

    Returns the run metadata associated with the provided summary tag.

    Returns the run metadata associated with the provided summary tag.

    Annotations
    @throws( ... )
  28. def scalars(tag: String): List[ScalarEventRecord]

    Permalink

    Returns all scalar events associated with the provided summary tag.

  29. val sizeGuidance: Map[EventType, Int]

    Permalink

    Information on how much data the event accumulator should store in memory.

    Information on how much data the event accumulator should store in memory. The default size guidance tries not to store too much so as to avoid consuming all of the client's memory. The sizeGuidance should be a map from event types to integers representing the number of items to keep in memory, per tag for items of that event type. If the size is 0, then all events are stored. Images, audio, and histograms tend to be very large and thus storing all of them is not recommended.

  30. def summaryMetadata(tag: String): SummaryMetadata

    Permalink

    Returns the summary metadata associated with the provided summary tag.

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def tags: Map[EventType, Seq[String]]

    Permalink

    Returns a map from event types to all corresponding tags that have been accumulated.

  33. def tensors(tag: String): List[TensorEventRecord]

    Permalink

    Returns all tensor events associated with the provided summary tag.

  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped