<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tuba Ozdemir on Medium]]></title>
        <description><![CDATA[Stories by Tuba Ozdemir on Medium]]></description>
        <link>https://medium.com/@tubaozdemir?source=rss-2ad680f1e299------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yVnJFsSCWI5qrV6y</url>
            <title>Stories by Tuba Ozdemir on Medium</title>
            <link>https://medium.com/@tubaozdemir?source=rss-2ad680f1e299------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:55:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tubaozdemir/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introduction to Hadoop and HDFS]]></title>
            <link>https://medium.com/batech/introduction-to-hadoop-and-hdfs-b0f3a37f0294?source=rss-2ad680f1e299------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0f3a37f0294</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[hdfs]]></category>
            <category><![CDATA[apache-hadoop]]></category>
            <category><![CDATA[hadoop]]></category>
            <dc:creator><![CDATA[Tuba Ozdemir]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 15:04:39 GMT</pubDate>
            <atom:updated>2022-07-20T12:43:02.780Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*UyDNLFCoxtba1pYIt_mg8A.png" /></figure><h4>Apache Hadoop</h4><p>As a definition of Wikipedia; Apache Hadoop is a collection of open source software tools that make it easy to use a network of many computers to solve problems involving large amounts of data and computation.<a href="https://en.wikipedia.org/wiki/Apache_Hadoop">(*)</a></p><p>Additionally, let’s clear up a common misconception: Hadoop is not a database.Hadoop is an Open-Source Project (Sub-project) of Apache.</p><p>Apache Hadoop ensures Scalable and economical data storage, processing, and analysis. It is fault tolerant and distributed.</p><p>Hadoop’s core projects are HDFS, MapReduce,YARN. In this article, we will talk about HDFS.</p><p>Also there are some Hadoop distributions like Cloudera, MAPR, Hortonworks…</p><p>Common use cases are; Data storage and analysis, collabrative filtering ,text mining, ETL, index building etc</p><h4>HDFS</h4><p>HDFS is a file system written in Java and based on Google File System. Provides redundant storage for massive amounts of data. It is used readily available, industry standard computer.</p><p>Lets talk about a few features of HDFS;</p><p>HDFS performs best with large files, not small ones.</p><p>Files in HDFS are write once i.e you cannot update files and no random writes to files are allowed.</p><p>Rather than random reads, not suitable for rdbms.</p><p>How to access HDFS and use it;</p><p>It requires Linux operating system. Hdfs works on Linux OS , not Windows. With command line or in spark (By URI: hdfs://nnhost:port/file…) or Java API</p><p>Also used by MapReduce, Impala, Hue, Sqoop</p><p>We have specified the definitions and requirements of hadoop and hdfs. Next article, we will access hdfs with command line and transfer data.</p><p>If you have any advice about this story, I would be very happy if you contact me. Thank you for your time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0f3a37f0294" width="1" height="1" alt=""><hr><p><a href="https://medium.com/batech/introduction-to-hadoop-and-hdfs-b0f3a37f0294">Introduction to Hadoop and HDFS</a> was originally published in <a href="https://medium.com/batech">BilgeAdam Teknoloji</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bike Buyers Analysis]]></title>
            <link>https://medium.com/batech/bike-buyers-analysis-fa09a9e5d730?source=rss-2ad680f1e299------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa09a9e5d730</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[prediction-model]]></category>
            <dc:creator><![CDATA[Tuba Ozdemir]]></dc:creator>
            <pubDate>Thu, 03 Feb 2022 21:17:31 GMT</pubDate>
            <atom:updated>2022-07-06T09:31:56.986Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EalkNSkeUU9-8n7_NIwpPQ.png" /></figure><p>Welcome to the Bike Buyers analysis and the prediction of who purchased or not. With the data set we have, we will try to guess that people will or will not buy a bike based on their specifications.We will analyze data first, i.e acquiring, examining, querying the data. Then, we will visualize the data and determine needs for cleaning that is the most important phase of any data project. After completion of data understanding phase, we will prepare the data. In the data preparation phase, we will determine how to use the data set. For example, correction, removing or replacing etc… Finally, in the modeling phase, we will use some algorithms that are supervised Classification i.e we already know actual outputs of our data and we will try to reach accuracy scores.</p><p>We will write all of them with Python 3.10 and use Jupyter Notebook as interface.</p><p>This is the raw data set ;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*it6Woeje-0KtVP3hVlNPUw.png" /></figure><p>Each row represents a customer who purchased or not. There is also some information about the customer like;</p><p>Marital Status :married or single</p><p>Gender: Female,Male</p><p>Income: Yearly income</p><p>Children: How many child he/she has?</p><p>Education: Graduated degree</p><p>Occupation : Job</p><p>Home Owner: Does he/she have any home? Yes/No</p><p>Cars: How many cars he/she has</p><p>Commute Distance: Distance between home and job</p><p>Region: Which region he/she lives</p><p>Age: How old is he/she</p><p>Purchased Bike: Did he/she buy a bike? Yes/No</p><p>In this project, we are going to use the ‘bike_buyers.csv’ file .After importing the data , we’ll make some transformations like cleaning , replacing and adding calculated column.Let’s examine the data first;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*HZxpfVeZZqMKyMv4VcZHRA.png" /></figure><p>These are the steps that clean and transform our data set :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*LnuOXmpCLMeA7XXm6DELKQ.png" /></figure><p>· Replace na Home Owner values with ‘Yes’ which is most frequent one. Since this is qualitative value.</p><p>· Replace na Marital Status values with ‘Married’ as in HomeOwner</p><p>· Replace na Gender with ‘Male’ also most frequent.</p><p>· Replace na Cars with 1, because we calculated the mode value of Cars as 1.Since this is the counting quantitative value.</p><p>· Replace na Age with 43, because we calculated the median value of Age as 43. Since this is the numerical quantitative value.</p><p>Also , we can try a Retiring Situation if that is effective on buying a bike or not . So , lets calculate a Retired column like ;</p><p>If Age &gt;=60 and Region is Europe then Retired (1)</p><p>If Age &gt;=60 and Region is North America then Retired (1)</p><p>If Age &gt;=50 and Region is Pacific then Retired (1)</p><p>Else Not Retired (0)</p><p>After these cleaning and creating processes, our data will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*EM5dx35DQC8g68KUPVN1fQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*zxXgT27eTfSCSzYWHj_0AA.png" /></figure><p>We are now ready for some visualizations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*CoVDy9LRDMR-36ym3Zij8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*09dO9zpYxEOKI0n_6Uk8gA.png" /></figure><p>We can see Occupation professional ones purchased more than others. Also, same for the Pacific Region.</p><p>In marital status graph, we can observe that single ones purchased more than others.</p><p>On the other hand, it wouldn’t make sense to use Retired column since there is not too much differences between two situation.</p><p>Also, in lower distances number of purchased people is more than others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*jl_gHigtrTNEITIGkNzRxA.png" /></figure><p>In children graph, we cannot group it like less or more.</p><p>We can say people who has less car purchased more.</p><p>In the Education graph, we can see Bachelors and Graduate Degree people have purchased more. We can group it as HighDegree.</p><p>We are going to encode categorical columns,convert them into numeric values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*s0vjatEhtjG2t3bL4zQIZw.png" /></figure><p>This is the last version of our data. Everything is Boolean;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*8PdMOcEjMwXQ9e2qEdOZwQ.png" /></figure><p>Also, this is the correlations between the columns;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*6NBWFRkGuyhm_D4J32ZYPw.png" /></figure><p>As we can understand from the correlation matrix, our prediction models may not have the high accuracy score. On the other hand, we tried to clean data and fill the null values in a meaningful way which is one of the most important parts of the data processing.</p><p>Firstly,</p><p>Try Logistic Regression which is used for</p><p>· Probabilistic classifier.</p><p>· Use when your output variety is less.</p><p>· In some applications threshold value must be adjusted to get correct results.</p><p>We split the data to test(%30) and train .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*m_AyjqsgHjjI_nbkwzR8UQ.png" /><figcaption>Picture A</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*KXA40w-lRsJJwQZFArLlkA.png" /><figcaption>Picture B</figcaption></figure><p>Picture B : In first code block; Accuracy Score here is %63.29</p><p>Second block; There is confusion matrix which means 154 value has purchased and it predicted true(true positive)</p><p>146 value has not purchased and it predicted true (true negative)</p><p>Third block; we can see here some definitions;</p><p>Accuracy means Percentage of correnctness of the output values.</p><p>Precision means: Positive prediction accuracy</p><p>Recall means : True Positive/ True Positive+FalseNegative</p><p>Roc Curve for the Logistic Regression, the score is not good.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*_TlX02Rj1jsMFLZq-VD5wg.png" /></figure><p>Keep trying…</p><p><strong>SVM Hyper Parameter Tuning:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*cQyt5CbVLyh2lnSc6erviw.png" /></figure><p><strong>Gaussian Naive Bayes (</strong>It is also %60<strong>)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*5zMXFPSw5ib5OnLpMbO7xQ.png" /></figure><p><strong>Decision Tree</strong> (It looks like more than %60 😊 (%63) )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*4ZiCgi1aRQq1OIG1Hkr9lA.png" /></figure><p><strong>Random Forest (</strong>It is also %60<strong>)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*K0FRcmTK1E8vsW16tZVkfw.png" /></figure><p>We can see from all models , they all give us among %60. Our dataset has 1000 rows and it might not be good enough for prediction. Also there are not enough relation between columns. For this dataset, we could reached %63 score.</p><p>Additioanlly,</p><p>Comparison of the models: <a href="https://machinelearningmastery.com/compare-machine-learning-algorithms-python-scikit-learn/"><strong>(*)</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*8_QohJpPrNrXnK5kdwOhlw.png" /></figure><p>We may need to make additional analyzes and changes to the dataset to enrich the models. If you have any advice, I would be very happy if you contact me. Thank you for your time 😊</p><p>References:</p><p>(*) <a href="https://machinelearningmastery.com/compare-machine-learning-algorithms-python-scikit-learn/">https://machinelearningmastery.com/compare-machine-learning-algorithms-python-scikit-learn/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa09a9e5d730" width="1" height="1" alt=""><hr><p><a href="https://medium.com/batech/bike-buyers-analysis-fa09a9e5d730">Bike Buyers Analysis</a> was originally published in <a href="https://medium.com/batech">BilgeAdam Teknoloji</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>