Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

src/n/i/nilmtk-HEAD/nilmtk/preprocessing/electricity/building.py   nilmtk(Download)
from nilmtk.stats.electricity.building import find_appliances_contribution
from nilmtk.stats.electricity.building import top_k_appliances
from nilmtk.stats.electricity.single import get_sample_period, get_gap_starts_and_gap_ends
 
from nilmtk.preprocessing.electricity.single import remove_implausible_entries
    sys.stdout.flush()
    mains = electricity.mains.values()[0]
    max_sample_period = get_sample_period(mains) * sample_period_multiplier
    print("Mains sample period = {:.1f}, max_sample_period = {:.1f}"
          .format(get_sample_period(mains), max_sample_period))

src/n/i/nilmtk-HEAD/nilmtk/preprocessing/electricity/single.py   nilmtk(Download)
from copy import deepcopy
 
from nilmtk.stats.electricity.single import get_sample_period
from nilmtk.sensors.electricity import Measurement
from nilmtk.utils import secs_per_period_alias, timedelta64_to_secs
 
    """
    sample_period = get_sample_period(single_appliance_dataframe)
    if round_sample_period:
        sample_period = int(round(sample_period))
def contiguous_blocks(datetimeindex):
    sample_period = get_sample_period(datetimeindex)
    time_delta = timedelta64_to_secs(np.diff(datetimeindex.values))
    breaks = time_delta > sample_period
    if np.sum(breaks) == 0:

src/n/i/nilmtk-HEAD/nilmtk/disaggregate/fhmm_exact.py   nilmtk(Download)
from nilmtk.sensors.electricity import Measurement
from nilmtk.preprocessing.electricity.single import contiguous_blocks
from nilmtk.stats.electricity.single import get_sample_period
 
 
 
        # Setting frequency
        self.freq = str(int(get_sample_period(train_mains.index))) + 's'
 
        learnt_model = OrderedDict()