






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







1 Table of Contents
Predicting Religion Based On Flags- Predictive Analysis On Various Classification Techniques
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
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/
[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