import numpy as np

class ExtractedFeature:

    def __init__(self, raw_data, raw_feature_data, persistence_diagram_1d, binned_diagram_1d):
        self.features = {}
        self.features['raw_data'] = raw_data
        self.features['raw_feature_data'] = raw_feature_data
        self.features['pd_1d'] = persistence_diagram_1d
        self.features['binned_pd_1d'] = np.array(binned_diagram_1d)
        #print persistence_diagram_1d == []
        self.features['pd_top_bars'] = np.array(sorted(persistence_diagram_1d[:,1] - persistence_diagram_1d[:,0], reverse=True)[0:10])

89628940a15eb55cd56e6cad3046bec967b00ba3
<mask token>

<mask token>


class ExtractedFeature:
    <mask token>

<mask token>


class ExtractedFeature:

    def __init__(self, raw_data, raw_feature_data, persistence_diagram_1d,
        binned_diagram_1d):
        self.features = {}
        self.features['raw_data'] = raw_data
        self.features['raw_feature_data'] = raw_feature_data
        self.features['pd_1d'] = persistence_diagram_1d
        self.features['binned_pd_1d'] = np.array(binned_diagram_1d)
        self.features['pd_top_bars'] = np.array(sorted(
            persistence_diagram_1d[:, 1] - persistence_diagram_1d[:, 0],
            reverse=True)[0:10])

import numpy as np


class ExtractedFeature:

    def __init__(self, raw_data, raw_feature_data, persistence_diagram_1d,
        binned_diagram_1d):
        self.features = {}
        self.features['raw_data'] = raw_data
        self.features['raw_feature_data'] = raw_feature_data
        self.features['pd_1d'] = persistence_diagram_1d
        self.features['binned_pd_1d'] = np.array(binned_diagram_1d)
        self.features['pd_top_bars'] = np.array(sorted(
            persistence_diagram_1d[:, 1] - persistence_diagram_1d[:, 0],
            reverse=True)[0:10])

import numpy as np

class ExtractedFeature:

    def __init__(self, raw_data, raw_feature_data, persistence_diagram_1d, binned_diagram_1d):
        self.features = {}
        self.features['raw_data'] = raw_data
        self.features['raw_feature_data'] = raw_feature_data
        self.features['pd_1d'] = persistence_diagram_1d
        self.features['binned_pd_1d'] = np.array(binned_diagram_1d)
        #print persistence_diagram_1d == []
        self.features['pd_top_bars'] = np.array(sorted(persistence_diagram_1d[:,1] - persistence_diagram_1d[:,0], reverse=True)[0:10])
