A non-transitory computer-readable medium comprising executable instructions, the executable instructions being executable by one or more processors to perform a method, the method comprising:
- receiving sales data and purchase data for at least one item, initial time, and a time unit, the sales data and purchase data being temporal data, the temporal data being over a duration;
- for each the sales data and the purchase data, generating historical time windows including a first set of historical time subsets each of a first length, and a second set of historical time subsets each of a second length, the second length being longer than the first length, the information contained in both the first set of historical time subsets being duplicated in the second set of historical time subsets, the first set of historical time subsets including a consecutive number of non-overlapping historical time subsets ending in the initial time, each of the first set of historical time subsets being of the first length equal to the time unit, the second set of historical time subsets including overlapping historical time subsets ending in the initial time, the first subset of the second set of historical time subsets ending at the initial time and the second subset of the second set of historical time subsets ending at the duration of a time unit before the initial time, the information contained in the first subset and the second subset of the second set of historical time subsets including at least one unit of duplicate information, the historical time windows including information being chronologically before the initial time;
- for each the sales data and the purchase data, generating future time windows including a first set of future time subsets each of the first length, the first set of future time subsets including a consecutive number of non-overlapping future time subsets beginning at the initial time, each of the first set of future time subsets being of the first length equal to the time unit, the first set of future time subsets including information being chronologically after the initial time;
- for each the sales data and the purchase data, creating past topological hierarchical decompositions for the first set of historical time subsets and the second set of historical time subsets;
- for each the sales data and the purchase data, creating future topological hierarchical decompositions for the first set of future time subsets;
- for each the sales data and the purchase data, creating a past directed graph adjacency array using weights derived from a distance as applied to embeddings from the past topological hierarchical decompositions, and creating a future directed graph adjacency array using weights derived from the distance as applied to embeddings from the future topological hierarchical decompositions;
- for each the sales data and the purchase data, generating a past window customer attention matrix identifying entity membership of groups across historical time subsets using the embeddings from the past topological hierarchical decompositions, and generating a future window customer attention matrix identifying the entity membership of groups across future time subsets using the embeddings from the future topological hierarchical decompositions;
- for each the sales data and the purchase data, performing matrix multiplication to multiply the past window customer attention matrix to the past directed graph adjacency array and a transpose of the past window customer attention matrix to create a past customer self-attention array;
- for each the sales data and the purchase data, performing the matrix multiplication to multiply the future window customer attention matrix to the future directed graph adjacency array and a transpose of the future window customer attention matrix to create a future customer self-attention array;
- for each the sales data and the purchase data, performing matrix multiplication of the past customer self-attention array to the future customer self-attention array to generate forecasts;
- and
- providing a dashboard to depict at least one forecast after the initial time.