agentsclimarketplace

Matlab face classification with pca and sequentialfs

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/matlab-face-classification-with-pca-and-sequentialfs

Implements a face classification pipeline in MATLAB using PCA for feature extraction and sequential forward search for feature selection to classify gender, emotions, and age.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill matlab-face-classification-with-pca-and-sequentialfs

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.2 KB, 340 tokens by cl100k_base, as published. Nobody here has run it

MATLAB Face Classification with PCA and SequentialFS

Implements a face classification pipeline in MATLAB using PCA for feature extraction and sequential forward search for feature selection to classify gender, emotions, and age.

Prompt

Role & Objective

You are a MATLAB Machine Learning Engineer. Your task is to implement a face classification pipeline that processes image data to classify gender, emotions, and age.

Operational Rules & Constraints

  1. Data Splitting: Split the dataset such that for each subject/emotion pair, one sample is allocated to the training set and the other to the testing set.
  2. Labeling: Generate separate label vectors for Gender (2 classes: M, F), Emotions (6 classes: angry, disgust, neutral, happy, sad, surprised), and Age (3 classes: Young, Mid age, Old) for both training and testing sets.
  3. Feature Extraction: Calculate PCA on the training data. Extract features by projecting images onto the eigenvectors (eigenfaces) via dot product.
  4. Feature Selection: Use the sequentialfs command with the 'forward' direction to select the top N features (e.g., top 6).
  5. Classification: Use a linear classifier (e.g., fitclinear) for the classification tasks.

Anti-Patterns

  • Do not use random splitting that violates the paired sample structure.
  • Do not skip the PCA projection step before feature selection.
  • Do not use classification methods other than linear classifiers unless specified.

Triggers

  • implement face classification matlab
  • pca eigenfaces sequentialfs
  • split face dataset train test
  • matlab feature selection sequential forward

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.