Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问许可证需确认审计通过

neural-networks-forecasting神经网络预测

Agent Skill

neural-networks-forecasting 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

343

周安装

14

GitHub Stars

13

下载量

111
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:neural-networks-forecasting(神经网络预测)
来源仓库:https://github.com/kishorkukreja/awesome-supply-chain
仓库路径:skills/neural-networks-forecasting
安装命令:
npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill neural-networks-forecasting
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill neural-networks-forecasting

简介

利用 LSTM 或 Transformer 模型进行时间序列预测建模。

  • 适用于供应链库存、销售趋势等商业场景需求预估。
  • 输出包含置信区间的预测曲线与特征重要性排序。
  • 历史数据质量直接影响预测准确性,需先做平稳性检验。
  • neural-networks-forecasting 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Neural Networks for Forecasting

You are an expert in applying neural networks and deep learning to supply chain forecasting. Your goal is to build sophisticated deep learning models (LSTM, GRU, Transformers) that capture complex temporal patterns, seasonality, and non-linear relationships in demand data.

Initial Assessment

  1. Data Volume: Sufficient data? (NNs need 1000+ samples)
  2. Patterns: Complex non-linear or long-term dependencies?
  3. Features: Multi-variate or univariate?
  4. Horizon: Short-term or long-term forecasting?
  5. Resources: GPU available for training?

LSTM for Demand Forecasting

import numpy as np
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
import matplotlib.pyplot as plt

class LSTMForecaster:
    """
    LSTM-based demand forecasting
    """

    def __init__(self, sequence_length=30, forecast_horizon=7):
        self.seq_len = sequence_length
        self.horizon = forecast_horizon
        self.model = None

    def build_model(self, n_features):
        """Build LSTM architecture"""

        model = keras.Sequential([
            # First LSTM layer
            layers.LSTM(128, return_sequences=True,
                       input_shape=(self.seq_len, n_features)),
            layers.Dropout(0.2),

            # Second LSTM layer
            layers.LSTM(64, return_sequences=True),
            layers.Dropout(0.2),

            # Third LSTM layer
            layers.LSTM(32, return_sequences=False),
            layers.Dropout(0.2),

            # Output layer
            layers.Dense(32, activation='relu'),
            layers.Dense(self.horizon)
        ])

        model.compile(
            optimizer=keras.optimizers.Adam(learning_rate=0.001),
            loss='mse',
            metrics=['mae']
        )

        return model

Transformer for Multi-Horizon Forecasting

class TransformerForecaster:
    """
    Transformer with self-attention for forecasting
    """

    def build_model(self, seq_len, n_features, horizon):
        inputs = layers.Input(shape=(seq_len, n_features))

        # Positional encoding
        x = self.positional_encoding(inputs)

        # Multi-head attention
        attention_output = layers.MultiHeadAttention(
            num_heads=8,
            key_dim=64
        )(x, x)

        x = layers.Add()([x, attention_output])
        x = layers.LayerNormalization()(x)

        # Feed-forward
        ff = layers.Dense(256, activation='relu')(x)
        ff = layers.Dense(n_features)(ff)

        x = layers.Add()([x, ff])
        x = layers.LayerNormalization()(x)

        # Output
        x = layers.GlobalAveragePooling1D()(x)
        x = layers.Dense(128, activation='relu')(x)
        outputs = layers.Dense(horizon)(x)

        model = keras.Model(inputs, outputs)
        model.compile(optimizer='adam', loss='mse')

        return model

Temporal Convolutional Network (TCN)

class TCNForecaster:
    """
    TCN with dilated convolutions
    """

    def build_tcn_block(self, x, filters, kernel_size, dilation_rate):
        # Dilated causal convolution
        conv = layers.Conv1D(
            filters=filters,
            kernel_size=kernel_size,
            padding='causal',
            dilation_rate=dilation_rate,
            activation='relu'
        )(x)

        conv = layers.Dropout(0.2)(conv)

        # Residual connection
        if x.shape[-1] != filters:
            x = layers.Conv1D(filters, 1)(x)

        return layers.Add()([x, conv])

Ensemble Neural Networks

def ensemble_forecast(models, X_test):
    """
    Combine predictions from multiple NN models
    """

    predictions = []
    for model in models:
        pred = model.predict(X_test)
        predictions.append(pred)

    # Average ensemble
    ensemble_pred = np.mean(predictions, axis=0)

    return ensemble_pred

Tools & Libraries

  • TensorFlow/Keras: deep learning
  • PyTorch: flexible NNs
  • N-BEATS: specialized forecasting NN
  • DeepAR: probabilistic forecasting

Related Skills

  • demand-forecasting: traditional methods
  • ml-supply-chain: general ML
  • optimization-ml-hybrid: combine with optimization

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.65%
按下载量换算40

Claude

27.98%
按下载量换算31

Cursor

17.2%
按下载量换算19

Gemini CLI

9.53%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills