module timeseries.patterns#

Short summary#

module mlinsights.timeseries.patterns

Find patterns in timeseries.

source on GitHub

Functions#

function

truncated documentation

find_ts_group_pattern

Clusters times series to find similar patterns.

Documentation#

Find patterns in timeseries.

source on GitHub

mlinsights.timeseries.patterns.find_ts_group_pattern(ttime, values, names, name_subset=None, per='week', unit='half-hour', agg='sum', estimator=None, fLOG=None)#

Clusters times series to find similar patterns.

Parameters
  • ttime – time column

  • values – features to use to cluster

  • names – column which holds group name

  • name_subset – subset of groups to study, None for all

  • per – aggragation per week

  • estimator – estimator used to find pattern, sklearn.cluster.KMeans and 10 groups

  • fLOG – logging function

Returns

found clusters, distances

source on GitHub