Git Product home page Git Product logo

dry-bean-classification's Introduction

Dry Beans Classification V2 | Kaggle Competition

Unranked Competition on Kaggle held by ITI AI-Pro.

Introduction

You are given a set of features extracted from the shape of the beans in images and it's required to predict the type of each bean. There are 7 bean types in this dataset.

Data Fields

The dataset consists of features describing the shape of the bean and you're required to predict it's type.

  • ID - an ID for this instance
  • Area - (A), The area of a bean zone and the number of pixels within its boundaries.
  • Perimeter - (P), Bean circumference is defined as the length of its border.
  • MajorAxisLength - (L), The distance between the ends of the longest line that can be drawn from a bean.
  • MinorAxisLength - (l), The longest line that can be drawn from the bean while standing perpendicular to the main axis.
  • AspectRatio - (K), Defines the relationship between L and l.
  • Eccentricity - (Ec), Eccentricity of the ellipse having the same moments as the region.
  • ConvexArea - (C), Number of pixels in the smallest convex polygon that can contain the area of a bean seed.
  • EquivDiameter - (Ed), The diameter of a circle having the same area as a bean seed area.
  • Extent - (Ex), The ratio of the pixels in the bounding box to the bean area.
  • Solidity - (S), Also known as convexity. The ratio of the pixels in the convex shell to those found in beans.
  • Roundness - (R), Calculated with the following formula: (4piA)/(P^2)
  • Compactness - (CO), Measures the roundness of an object: Ed/L
  • ShapeFactor1 - (SF1)
  • ShapeFactor2 - (SF2)
  • ShapeFactor3 - (SF3)
  • ShapeFactor4 - (SF4)
  • y - the class of the bean. It can be any of BARBUNYA, SIRA, HOROZ, DERMASON, CALI, BOMBAY, and SEKER.

Libraries Used

  • SciKitLearn:
    • Models: SVC, TSNE
    • Metrics: classification_report, accuracy_score, average_precision_score, f1_score
    • Preprocessing: LabelEncoder, RobustScaler
    • Model Selection: train_test_split
  • NumPy
  • Pandas
  • SciPy
  • Visualization:
    • matplotlib.pyplot
    • seaborn
    • plotly

Dataset

  • Observations:
    • Training: 10834
    • Test: 2709
  • Features: 16

Exploratory Data Analysis (EDA)

  • Numeric Analysis (Duplicates, Null Values, Skewness, etc.)
  • Visual Analysis (Boxplots, Histograms, Heatmaps, TSNE, etc.)

Data Preprocessing

  • Training \ Validation Split
  • Normalization

Model Training

Model Chosen: Support Vector Classifier

Model Evaluation

Metrics Used:

  • F1 Score
  • Recall
  • Precision

Team Members

dry-bean-classification's People

Contributors

abdelrahman-a-eid avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.