print_data¶
Module: missions.nodes.debug.print_data
¶
Print out formatted data.
Inheritance diagram for pySPACE.missions.nodes.debug.print_data
:
Class Summary¶
PrintDataNode ([print_delimiters, ...]) |
Print out formatted data. |
EstimateBandwidthNode ([print_bw]) |
Estimates the Bandwidth of the data which is forwarded through this node |
Classes¶
PrintDataNode
¶
-
class
pySPACE.missions.nodes.debug.print_data.
PrintDataNode
(print_delimiters=True, print_markers=True, print_hex=False, print_normal=True, numpy_printoptions=None, print_samples=True, print_shape=False, **kwargs)[source]¶ Bases:
pySPACE.missions.nodes.base_node.BaseNode
Print out formatted data.
This prints out the data to support debugging.
Parameters
print_delimiters: Separate prints with delimiters for readibility
(optional, default: True)
print_markers: Print the markers.
(optional, default: True)
print_shape: Print the the datas shape.
(optional, default: False)
print_samples: Print the data.
(optional, default: True)
print_hex: Print the data in flattened hex format.
(optional, default: False)
print_normal: Print the data “normally”.
(optional, default: True)
numpy_printoptions: Specify numpy printoptions. Use none, if it does not apply.
(optional, default: None)
Exemplary Call
- node : PrintData parameters : numpy_printoptions : precision : 12 threshold : 100
Authors: Hendrik Woehrle (hendrik.woehrle@dfki.de)
Created: 2012/04/20
POSSIBLE NODE NAMES: - PrintDataNode
- Print_Data
- PrintData
POSSIBLE INPUT TYPES: - PredictionVector
- FeatureVector
- TimeSeries
Class Components Summary
input_types
print_data
(data, label)Print the data according to the specified constraints. process
()Processes all data that is provided by the input node request_data_for_testing
()Returns data for testing of subsequent nodes of the node chain request_data_for_training
(use_test_data)Returns data for training of subsequent nodes of the node chain -
__init__
(print_delimiters=True, print_markers=True, print_hex=False, print_normal=True, numpy_printoptions=None, print_samples=True, print_shape=False, **kwargs)[source]¶
-
process
()[source]¶ Processes all data that is provided by the input node
Returns a generator that yields the data after being processed by this node.
-
request_data_for_training
(use_test_data)[source]¶ Returns data for training of subsequent nodes of the node chain
A call to this method might involve training of the node chain up this node. If use_test_data is true, all available data is used for training, otherwise only the data that is explicitly for training.
-
request_data_for_testing
()[source]¶ Returns data for testing of subsequent nodes of the node chain
A call to this node might involve evaluating the whole node chain up to this node.
-
input_types
= ['PredictionVector', 'FeatureVector', 'TimeSeries']¶
EstimateBandwidthNode
¶
-
class
pySPACE.missions.nodes.debug.print_data.
EstimateBandwidthNode
(print_bw=True, **kwargs)[source]¶ Bases:
pySPACE.missions.nodes.base_node.BaseNode
Estimates the Bandwidth of the data which is forwarded through this node
Parameters
print_bw: print the results for every data blob
(optional, default: True)
Exemplary Call
- node : EstimateBandwidth parameters : print_bw : False
Authors: Johannes Teiwes (johannes.teiwes@dfki.de)
Created: 2013/06/18
POSSIBLE NODE NAMES: - EstimateBandwidth
- EstimateBandwidthNode
POSSIBLE INPUT TYPES: - PredictionVector
- FeatureVector
- TimeSeries
Class Components Summary
_execute
(data)forward data and just take the current time input_types
-
input_types
= ['PredictionVector', 'FeatureVector', 'TimeSeries']¶