Docsity

religion based on flags, Study Guides, Projects, Research of Data Mining

Toggle sidebar
bg1
1
Table of Contents
1. Title
2. Abstract
3. Objective
4. Data Set Description
4.1 Input Value
4.2 Target Value
5. Literature Survey
6. Sample Database
7. Testing & training
7.1 Training Data set
7.2 Test Data set
8. Innovation
9. Tool used for execution of algorithms
10. Algorithms description and methodology
10.1 Naive bayes algorithm
10.2 Support vector machine algorithm
10.3 Linear regression algorithm
10.4 random forest algorithm
11. Code & output
11.1 Naive bayes algorithm
11.2 Support vector machine algorithm
11.3 Weka Output
12. Conclusion
13. References
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download religion based on flags and more Study Guides, Projects, Research Data Mining in PDF only on Docsity!

1 Table of Contents

  1. Title
  2. Abstract
  3. Objective
  4. Data Set Description 4.1 Input Value 4.2 Target Value
  5. Literature Survey
  6. Sample Database
  7. Testing & training 7.1 Training Data set 7.2 Test Data set
  8. Innovation
  9. Tool used for execution of algorithms
  10. Algorithms description and methodology 10.1 Naive bayes algorithm 10.2 Support vector machine algorithm 10.3 Linear regression algorithm 10.4 random forest algorithm
  11. Code & output 11.1 Naive bayes algorithm 11.2 Support vector machine algorithm 11.3 Weka Output
  12. Conclusion
  13. References

1. TITLE

Predicting Religion Based On Flags- Predictive Analysis On Various Classification Techniques

  1. ABSTRACT In this project we are going to use the data mining techniques to evaluate the flag data set.which collected the flag dataset from UCI repository this database contains 194 instances, 30 attributes. The main aim is to determine different religions based on flags that belong to various countries.Through techniques like KNN,SVM,NAVIE BAYES etc.,we use multi variate dataset and it involves in numeric data,boolean values,nominal values.The tool we use for data extraction/pre-processing is “WEKA” tool. It consider only suitable attributes as a main train data set for evaluation. By using these techniques and characteristics we determine the results. 3. OBJECTIVE The objective is to predict the religion of a country from the characteristics of the flag with different techniques,comparing and select the one which is better in accuracy. 4. DATASET DESCRIPTION: Data file contains details of various nations and their flags. In this file the fields are separated by spaces (not commas). With this data we can try things like predicting the religion of a country from its size and the colors in its flag. 10 attributes are numeric-valued. The remainder are either boolean- or nominalvalued. Data Set Characteristics: Multivariate Number of Instances: 194 Area: N/A Attribute Characteristics: categorical, integer Number of Attributes: 30 Date Donated: 1990-05- Associated Tasks: Classification Missing Values? : No Number of Web Hits: 2 7 1 5 4 1

 Name :chr “Afghanistan” “ Albania” “Algeria” “amer”………  Landmass :int 5 3 4 6 3 4………  Zone :int 1 1 13 1 2……….  Area :int 648 29 2388 0 0 1247………  Population :int 16 3 20 0 0 7…………  Language :int 10 6 8 1 6 10……….  Bars :int 0 0 2 0 3 0……… :  Stripes :int 3 0 0 0 0 2………  Colours :int 5 3 3 5 3 3………  Red :int 1 1 1 1 1 1 0 1……..  Green :int 1 0 1 0 0 0………  Blue :int 0 0 0 1 1 0……..  Gold :int 1 1 0 1 1 1…….  White :int 1 0 1 1 0 0……..  Black :int 1 1 0 0 0 1………  Orange  Dominant color :chr “green” “red” “green” “blue”………  Circles :int 0 0 0 0 0 0 ………  Crosses  Saltires :int 0 0 0 0 0 0 ………  Quarters :int 0 0 0 0 0 0………  Sunstars :int 1 1 1 0 0 1………  Crescent :int 0 0 1 0 0 0………  Triangle :int 0 0 0 1 0 0……..  Icon :int 1 0 0 1 0 1……….  Animate :int 0 1 0 1 0 1………  Text :int 0 0 0 0 0 0………  Topleft :chr “black” “red” “green” “ blue”……..  Botright :chr “green” “red” “white” “red”……… name: Name of the country concerned landmass: 1=N.America, 2=S.America, 3=Europe, 4=Africa, 4=Asia, 6=Oceania zone: Geographic quadrant, based on Greenwich and the Equator; 1=NE, 2=SE, 3=SW, 4=NW area : in thousands of square km population : in round millions language: 1=English,2=Spanish,3=French,4=German,5=Slavic,6=OtherIndo-European,7=Chinese 8=Arabic 9=Japanese/Turkish/Finnish/Magyar, 10=Others bars: Number of vertical bars in the flag stripes: Number of horizontal stripes in the flag colours: Number of different colours in the flag 9=Japanese/Turkish/Finnish/Magyar, 10=Others 0 if red absent, 1 if red present in the flag green: same for green blue: same for blue gold: same for gold (also yellow) white: same for white black: same for black orange: same for orange (also brown)

dominant colour : predominant colour in the flag (tie-breaks decided by taking the topmost hue, if that fails then the most central hue, and if that fails the leftmost hue) circles: Number of circles in the flag crosses : Number of (upright) crosses saltires: Number of diagonal crosses quarters: Number of quartered sections sunstars : Number of sun or star symbols crescent: 1 if a crescent moon symbol present, else 0 triangle: 1 if any triangles present, 0 otherwise icon: 1 if an inanimate image present (e.g., a boat), otherwise 0 animate : 1 if an animate image (e.g., an eagle, a tree, a human hand) present, 0 otherwise text: 1 if any letters or writing on the flag (e.g., a motto or slogan), 0 otherwise topleft: colour in the top-left corner (moving right to decide tie-breaks) botright: Colour in the bottom-left corner (moving left to decide tie-breaks) 4.2 TARGET VALUE Region :int 2 6 2 1 0 5…….. Region: 0=Catholic 1=Other christian 2=Muslim 3=Buddhist 4=Hindu 5=Ethnic 6=Marxist 7=Others

5. LITERATURE SURVEY:

This paper presents various output with various distance used in algorithm and may help to know the response of classifier for the desired application it also represents computational issues in identifying nearest neighbors and mechanisms for reducing the dimension of the data. 9) Comparison of classification techniques on data mining In this paper, we compared the accuracy percentage with different data mining methods such as decision tree, neural network, naïve bayes, K-NN and SVM. They conclude like which techniques has best accuracy rate. 10) Survey on classification algorithms for data mining:(comparison and evaluation) Delveen Luqman abd al-nabi shereen shukri ahmed In this paper a comparison among three classification’s algorithms will be studied, these are (K- nearest neighbor classifier, decision tree and bayesian network) algorithms. The paper will demonstrate the strength and accuracy of each algorithm for classification in term of performance efficiency and time complexity required.

6. SAMPLE DATASET

**7. TESTING and TRAINING

  1. INNOVATION** In this project we are trying to extend the classification and clustering algorithm with help of python language. Basically we will be creating the Naive bayes algorithm, Random Forest algorithm,linear regression algorithm,SVM algorithm and comparing the accuracy of these algorithms. This algorithm can also be extended for prediction of various religions. 9. TOOL USED FOR EXECUTION OF ALGORITHM Weka tool and Anaconda tool is used for preprocessing of the dataset 10. ALGORITHMS DESCRIPTION AND METHODOLOGY 10.1 Naive Bayes Algorithm: ❖ It is a classification technique based on Bayes’ Theorem with an assumption of independence among predictors. ❖ In simple terms, a Naive Bayes classifier assumes that the presence of a particular feature in a class is unrelated to the presence of any other feature.

10 *The Regularization parameter (often termed as C parameter in python’s sklearn library) tells the SVM optimization how much you want to avoid misclassifying each training example. *The gamma parameter defines how far the influence of a single training example reaches, with low values meaning ‘far’ and high values meaning ‘close’. In other words, with low gamma, points far away from plausible seperation line are considered in calculation for the seperation line. *Where as high gamma means the points close to plausible line are considered in calculation. *A margin is a separation of line to the closest class points. 10.3 Linear Regression algorithm  Regression is a method of modelling a target value based on independent predictors.  This method is mostly used for forecasting and finding out cause and effect relationship between variables.  Regression techniques mostly differ based on the number of independent variables and the type of relationship between the independent and dependent variables.  Simple linear regression is a type of regression analysis where the number of independent variables is one and there is a linear relationship between the independent(x) and dependent(y) variable.  The line in the graph is referred to as the best fit straight line.  Based on the given data points, we try to plot a line that models the points the best.  The line can be modelled based on the linear equation shown below. Y=a0 + a1 * x //linear equation  The motive of the linear regression algorithm is to find the best values for a0 and a While training the model we are given : x: input training data (univariate – one input variable(parameter)) y: labels to data (supervised learning) When training the model – it fits the best line to predict the value of y for a given value of x. The model gets the best regression fit line by finding the best a0 and a1 values. a0 : intercept a1 : coefficient of x Once we find the best a0 and a1 values, we get the best fit line. So when we are finally using our model for prediction, it will predict the value of y for the input value of x. 10.4 Random forest algorithm  Random forest algorithm is a supervised classification algorithm  This algorithm creates the forest with a number of trees.  The more trees in the forest gives the higher accuracy results.  Randomly select “k” features from total “m” features. Where k << m  Among the “k” features, calculate the node “d” using the best split point.  Split the node into daughter nodes using the best split.  Repeat steps until “l” number of nodes has been reached.

11  Build forest by repeating steps for “n” number times to create “n” number of trees.  Takes the test features and use the rules of each randomly created decision tree to predict the outcome and stores the predicted outcome (target)  Calculate the votes for each predicted target.  Consider the high voted predicted target as the final prediction from the random forest algorithm.  For suppose there are 100 decision tree and 3 unique targets x,y,z if tarhet x is getting high votes then final random forest returns the x as predicted target.

11. REFERENCES: [1] https://pdfs.Semanticscholar.Org/7c97/57ee09afa570db37f04e3b6cc4da0e2f3571.Pdf Jiménez Forero, G., & Moreno Mosquera, E. E. (2018). Método automático para el reconocimiento de gestos de manos para la categorización de vocales y números en lenguaje de señas colombiano. [2]https://www.Researchgate.Net/profile/sunita_beniwal/ publication/263662705_classification_and_feature_selection_techniques_in_data_mining/ links/54296d700cf2e4ce940e6d76.Pdf [3]https://pdfs.Semanticscholar.Org/095c/fd6f1a9dc6eaac7cc3100a16cca9750ff9d8.Pdf [4]http://www.Iaeng.Org/publication/IMECS2009/imecs2009_pp727-731.Pdf [5] https://ieeexplore.Ieee.Org/abstract/document/

G. Kesavaraj and S. Sukumaran, "A study on classification techniques in data mining," 2013

Fourth International Conference on Computing, Communications and Networking

Technologies (ICCCNT) , Tiruchengode, 2013, pp. 1-7.

[6]http://citeseerx.Ist.Psu.Edu/viewdoc/download?Doi=10.1.1.294.9855&rep=rep1&type=pdf [7]https://wvvw.Aaai.Org/ojs/index.Php/aimagazine/article/view/ [8]:http://citeseerx.Ist.Psu.Edu/viewdoc/download?Doi=10.1.1.413.3893&rep=rep1&type=pdf [9]https://www.Researchgate.Net/ publication/332751302_COMPARISON_OF_CLASSIFICATION_TECHNIQUES_ON_DATA_MINIG [10]http://citeseerx.Ist.Psu.Edu/viewdoc/download?Doi=10.1.1.825.3272&rep=rep1&type=pdf