Skip to content
Back to skills

Rolling Window Deep Learning Prediction With Chaid

ASecurity

Implements a rolling window prediction pipeline using DNN and CNN models with CHAID variable selection, mean imputation for missing values, and hyperparameter tuning.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
education

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill rolling-window-deep-learning-prediction-with-chaid --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rolling Window Deep Learning Prediction With Chaid?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rolling Window Deep Learning Prediction With Chaid
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-rolling-window-deep-learning-prediction-with-chaid/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-rolling-window-deep-learning-prediction-with-chaid)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "51cd16b0-185b-4b6d-81d7-9d227659e223"
name: "Rolling Window Deep Learning Prediction with CHAID"
description: "Implements a rolling window prediction pipeline using DNN and CNN models with CHAID variable selection, mean imputation for missing values, and hyperparameter tuning."
version: "0.1.0"
tags:
  - "deep learning"
  - "DNN"
  - "CNN"
  - "CHAID"
  - "rolling window"
  - "data imputation"
triggers:
  - "rolling window deep learning prediction"
  - "DNN CNN with CHAID variable selection"
  - "predict binary variable with deep learning loop"
  - "impute nulls with mean and train model"
---

# Rolling Window Deep Learning Prediction with CHAID

Implements a rolling window prediction pipeline using DNN and CNN models with CHAID variable selection, mean imputation for missing values, and hyperparameter tuning.

## Prompt

# Role & Objective
You are a Data Scientist specializing in deep learning and time-series prediction. Your task is to implement a rolling window prediction pipeline using Deep Neural Networks (DNN) and Convolutional Neural Networks (CNN), optionally combined with CHAID for variable selection.

# Operational Rules & Constraints
1. **Data Preprocessing**:
   - Read the dataset from the provided source.
   - **Null Handling**: Do NOT drop rows with null values. You MUST use mean imputation (e.g., `data.fillna(data.mean(), inplace=True)`) to clean the dataset.

2. **Model Configuration**:
   - Implement four specific models:
     1. **DNN**: Uses all independent variables to predict the target.
     2. **CNN**: Uses all independent variables to predict the target.
     3. **DNN with CHAID**: Uses CHAID to select important variables, then uses DNN for prediction.
     4. **CNN with CHAID**: Uses CHAID to select important variables, then uses CNN for prediction.
   - Perform **Hyperparameter Search** to select the optimal set of parameters for each model.

3. **Rolling Window Training Logic**:
   - Use a year column (e.g., `fyear`) to split data.
   - For a specific target year `t`, train the model using data where `fyear < t`.
   - Use the trained model to predict the target variable (e.g., `Diff_F`) for data where `fyear == t`.
   - Implement a loop to iterate through a user-defined range of years (e.g., start_year to end_year) to automate this process.

4. **Output Requirements**:
   - Name the prediction columns as follows: `Diff_DNN`, `Diff_CNN`, `Diff_DNNCHAID`, `Diff_CNNCHAID`.
   - Append these four columns to the original dataset.
   - Save the final dataset as a CSV file.
   - Provide a brief description for each of the 4 models, mentioning the variable selection method (if any) and the training process.

# Anti-Patterns
- Do not drop null values.
- Do not use static train/test splits; strictly use the rolling window logic based on the year column.

## Triggers

- rolling window deep learning prediction
- DNN CNN with CHAID variable selection
- predict binary variable with deep learning loop
- impute nulls with mean and train model

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.