Skip to content

Implementing Fuzzy Inference System using PerCapitaViolentCrimesPrediction dataset where Genetic Algorithm used for feature selection, and discretizing the data while encoding values to class variables. Generating Rules with Decision Tree Classifier, And fuzzifying values and rules inference system and defuzzification in MATLAB.

Notifications You must be signed in to change notification settings

aashitadutta/PerCapitaViolentCrimesPrediction

Repository files navigation

Per Capita Violent Crimes Prediction

Per capita violent crimes prediction on the Communities and Crime Dataset from UCI Machine Learning.

  • Genetic Algorithm is used for feature selection.
  • Data is then descritized using pandas cut function into bins.
  • Decision trees are used for the rules generation.
  • Rules generated are used in the Fuzzy Inference System developed in matlab.
  • Accuracy is tested.

Team Members :

Feature Selection Using GA

An example implementation of a simple Genetic Algorithm applied to feature selection. It will be using the Communities and Crime Dataset from UCI Machine Learning, which has 128 attributes, aimining to use these attributes in order to predict the label (Per Capita Violent Crimes). We will use the Genetic Algorithm to select which of those 128 features are most relevant to this prediction.

Discretization

After features selected by genetic algorithm, continuous values are dicretized into range values using pandas cut function into bins and encoded into class variables.

Rules Generation

Generating Rules from Discretized+Encoded data optimized using Genetic Feature Selections. sklearn.tree.DecisionTreeClassifier¶ is used to generate rules in text format with distinct classes based on probability, number of samples and gini index to measure how impure the partitions are. image

Fuzzy Inference System

Rules along with data are fed into Fuzzy Inference System in MATLAB, where trapezoidal function is used as membership function for fuzzification and trules inference system and centrold method is used for defuzzification. Accuracy measures gives best value for medium class.

About

Implementing Fuzzy Inference System using PerCapitaViolentCrimesPrediction dataset where Genetic Algorithm used for feature selection, and discretizing the data while encoding values to class variables. Generating Rules with Decision Tree Classifier, And fuzzifying values and rules inference system and defuzzification in MATLAB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published