<?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 Yael on Medium]]></title>
        <description><![CDATA[Stories by Yael on Medium]]></description>
        <link>https://medium.com/@xyaelx?source=rss-3d0f20382325------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fKu_IQmXOh41GNPqxZgcCw.png</url>
            <title>Stories by Yael on Medium</title>
            <link>https://medium.com/@xyaelx?source=rss-3d0f20382325------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:47:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xyaelx/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[A Simple Way to Tag Your Dataset]]></title>
            <link>https://medium.com/@xyaelx/a-simple-way-to-tag-your-dataset-be5f914d1b48?source=rss-3d0f20382325------2</link>
            <guid isPermaLink="false">https://medium.com/p/be5f914d1b48</guid>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[data-pre-processing]]></category>
            <category><![CDATA[labelling]]></category>
            <dc:creator><![CDATA[Yael]]></dc:creator>
            <pubDate>Sun, 17 May 2020 09:22:11 GMT</pubDate>
            <atom:updated>2020-06-16T09:04:55.978Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m working on a classification task with a small images dataset. The dataset isn’t labelled and I wanted to tag it, but I couldn’t find a quick and free tool to do so.</p><p>So I decided to build one :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*oBCMgqa43Ak3WcT7U-oLUg.png" /><figcaption>Leonardo describes himself as a male, as far as I know.</figcaption></figure><p>The principles that guided me are simplicity and that the code can run on a Jupyter notebook (I used it as a front-end side for me). Also, I wanted to make sure each image is only tagged once. Therefore instead of a written label for each image, I decided to move each image to its labelled folder. Pay attention that this method works for datasets where each image could only have one label (male or female in my case).</p><p>So here’s the full recipe for implementing a brand new tagger:</p><ol><li>Create folders for your desired labels (here OUTPUT_DIR is <a href="https://treyhunner.com/2018/12/why-you-should-be-using-pathlib/">pathlib.Path object</a>. This way, instead of join() function, you write “/” and it does it implicitly):</li></ol><pre><em># Create the new categorized dir if not exist yet<br>for gender in genders:<br>  gender_dir = OUTPUT_DIR / gender<br>  os.makedirs(gender_dir,exist_ok=True)</em></pre><p>2. Ask the user to label an image. As a result, the image will be moved to a folder by the chosen label (I decided to name the folders according to the label)</p><pre>def tag_img_by_gender(img_path):<br>    while True:<br>      gender_from_user=input(“Please enter one-letter    selection:\n(M)ale/(F)emale/(U)nknown:”).upper()<br>      if gender_from_user in genders: # got a valid input<br>          # Move the image file etc.<br>          dest= OUTPUT_DIR/gender_from_user<br>          # check if someone else also tagged it recently (if so- the file doesn&#39;t exist)<br>          if img_path.is_file(): <br>             shutil.move(str(img_path), str(dest))<br>          break</pre><p>3. Iterate over all the photos and start tagging them with the function we defined in the previous section (here I chose to iterate over NUM_OF_SAMPLES samples). I used matplotlib library to show each image (works perfect on Jupyter)</p><pre>for filename in os.listdir(DATA_DIR)[:NUM_OF_SAMPLES]:<br>     img_path = DATA_DIR/filename<br>     image = mpimg.imread(img_path)<br>     plt.imshow(image)<br>     plt.pause(0.001)  # pause a bit so that plots are updated<br>     tag_img_by_gender(img_path)<br>     clear_output(wait=True) # erase the showed image for the next round</pre><p>That’s it! You got a brand new tagger :) (a complete working notebook <a href="https://github.com/xYaelx/BlogCode/blob/master/TagImagesDataset.ipynb">is here</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*9SeHaMP6YpirqJyqct_avQ.png" /></figure><p>In addition, make sure that you give clear instructions, in case you ask other users (aka friends) to tag your images (thanks Mr A!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WRMaeexNAv_cQTiDG2rHDA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be5f914d1b48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working Efficiently with Datasets on Google Collab]]></title>
            <link>https://medium.com/@xyaelx/working-efficiently-with-datasets-on-google-collab-2b58f4fbb22d?source=rss-3d0f20382325------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b58f4fbb22d</guid>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[drive]]></category>
            <category><![CDATA[kaggle]]></category>
            <dc:creator><![CDATA[Yael]]></dc:creator>
            <pubDate>Wed, 22 Jan 2020 16:12:03 GMT</pubDate>
            <atom:updated>2020-02-24T13:54:58.618Z</atom:updated>
            <content:encoded><![CDATA[<h4>Working Efficiently with Datasets on Google Colab</h4><p>If you’re writing code on <a href="https://medium.com/u/5e5a27379be0">Google Colab Notebooks</a> and working on a DL\ML project with a dataset from Kaggle, you may know how annoying it can be to download the data each time the notebook restarts itself. Especially if the dataset is big.</p><p>I tried to find a solution for that and came across a simple one: saving the dataset on Google Drive. Then, whenever you need the data, just connect to the Drive from your colab notebook and get all your files.</p><p>This article will show how you can do this magic, including all the small details to notice and make sure it will happen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*U6HpBQzdzq_xaQgq1e0Q5w.png" /></figure><p>There are just 3 steps to do so (warning: Python code is coming ahead 😉) :</p><p><em>*spoiler- the whole code is on my GitHub (link at the end)*</em></p><ol><li>Mount your notebook with Drive</li></ol><pre>from google.colab import drive</pre><pre>drive.mount(‘/content/gdrive/My Drive/’)</pre><p>Pay attention:</p><p>🎆 Mount demands user authentication. Therefore, if you’re using a sharable drive folder, you all have to add it to your own drive (as a shared folder)</p><p>🎆 Mount is a <strong>session-only </strong>activity, so when the notebook restarts, the mount activation will restart too (so hurry up to finish the next two stages 😉)</p><p>2. Download the dataset from Kaggle to your notebook (I use Kaggle API. <a href="https://github.com/Kaggle/kaggle-api">Here is an explanation of how to use it</a>) and unzip the data folder. For this tutorial, I will use <a href="https://www.kaggle.com/paultimothymooney/chest-xray-pneumonia">Chest X-Ray Images (Pneumonia)</a> dataset</p><p>3. Copy the files from the data folder to your Drive.</p><p>First, create relevant folders on the Drive’s data folder (I used the same hierarchy as it appears in the original dataset for this example). I create each folder on Drive with the following command:</p><pre><em>Path.mkdir(parents=True, exist_ok=True)</em></pre><p>Then copy all files in the dataset from the local folder to Drive. I use the command <a href="https://docs.python.org/2/library/shutil.html">shutil.copy()</a>. Here is an Example</p><pre>def write_to_gdrive_file(source_dir,dest_dir,filename):</pre><pre>source = (source_dir / filename).resolve()</pre><pre>destination = (dest_dir / filename).resolve()</pre><pre>res = shutil.copy(source, destination)</pre><p>Pay attention:</p><p>🎆<em>source_dir</em> and <em>dest_dir </em>are <a href="https://docs.python.org/3/library/pathlib.html">Path</a> objects from <strong>pathlib </strong>library (<a href="https://medium.com/@ageitgey/python-3-quick-tip-the-easy-way-to-deal-with-file-paths-on-windows-mac-and-linux-11a072b58d5f">here is a great explanation</a> about Path and how useful it is). If you want to define those parameters as a string, you can cast it to Path (for example, <em>source = (Path(source_dir) / filename).resolve(), </em>where the ‘/’ is used for concatenating in a Path objec<em>t</em>)</p><p>and voilà! All the files are safely saved in its relevant folder on Drive.</p><p>Please notice, it takes time until all the files are uploaded to drive and the drive is synchronized, but once it’s done, you have a brand new fresh data folder on the cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*JJHxYXMylBy0SWBFgvPEcA.png" /></figure><p>The full code is on my GitHub, <a href="https://github.com/xYaelx/BlogCode/blob/master/downloadImagesFromColab.ipynb">here</a> :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b58f4fbb22d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a ML model without data?]]></title>
            <link>https://medium.com/@xyaelx/how-to-build-a-ml-model-without-data-fd0ffaf2b73e?source=rss-3d0f20382325------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd0ffaf2b73e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[student-loans]]></category>
            <dc:creator><![CDATA[Yael]]></dc:creator>
            <pubDate>Wed, 21 Aug 2019 08:48:34 GMT</pubDate>
            <atom:updated>2019-09-25T15:02:55.717Z</atom:updated>
            <content:encoded><![CDATA[<p>So the other day someone asked me for advice on a risk analysis model for college student loans he wanted to build. He asked if it could be generated using fake data. Here is why this is a bad idea….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*d7i3lmPLY43wTd9unKeqTg.png" /></figure><p><strong>why generating data isn’t a good idea?</strong></p><p>Let’s say we generate data where 1/3 of the students paid off their loan and 2/3 didn’t. If our model, which predicts whether a specific student will pay his loan back, returns a consistent “no”, we get a 2/3(more then 60%!) accuracy but, is it true that no student repays his loan?</p><p>Another example is when we generated data and get a 90% chance that a student will pay his loan back if his hair colour is brown. Therefore the model learns to categorize students by their hair colour and predict that student with brown hair colour will likely pay their loan, while in reality, it may not be the case (unless you’re Amal Clooney, of course ;) )</p><p>As a result, we can’t base our model on fake data and explain the connection between the different attributes and deduce which ones are more important</p><p><strong>OK, so what’s now?</strong></p><p>Start by finding a REAL datasets - <a href="https://www.kaggle.com/datasets">Kaggle </a>is a great place to start with since it’s an open free source :)</p><p>(For more database sources and the reading about the factors to be considered when building training datasets, <a href="https://www.promptcloud.com/blog/what-to-look-for-in-training-dataset/">click here</a> )</p><p>Then, if you don’t have enough data (rule of thumb: you never have enough data. The more the merrier and also the more accurate your model will be), start collecting your own data (by surveys for examples) after understanding which parameters are needed in order to build a model</p><p><strong>How much data do I need?</strong> <a href="http://fastml.com/how-much-data-is-enough/">Here is a good article</a> about it (the general rule is as much as you can)</p><p>In addition to learning from databases, use the best source Earth has - people.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oriNXtkTbeW5zvGKs%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fserie-publicidad-belleza-3oriNXtkTbeW5zvGKs&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3oriNXtkTbeW5zvGKs%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/a09e06221f2b5cf13895a427dd849887/href">https://medium.com/media/a09e06221f2b5cf13895a427dd849887/href</a></iframe><p>I spoke to college students and asked them how does the process of getting a loan goes today, what questions were they asked and why did they choose a specific funding source.</p><p>I also sat with friends who studied economics and got an in-depth explanation in the student loan market and the different options for taking a student loan. I found out that it is really hard to get a good financial decision in a market where your credit score gets hurt just for getting information from the bank about their loans.</p><p><strong>Final results</strong></p><p>After going over open source and talking to great people, I collected different type of information we need for a model estimation- some of them are standard for loans (like salary) and some could be relevant specifically for student loans(for example the school)</p><p>At the end we understood that we’ll need hundred of thousands of students just to make a credit risk analysis model and therefore, the risk analysis is off the shelf for now and the business model has changed... but on the way, we learned what are the basics of loans and what are the needs of students when they take a tuition loan.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd0ffaf2b73e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Face recognition technology and UX]]></title>
            <link>https://medium.com/systers/face-recognition-technology-and-ux-334773f85b2a?source=rss-3d0f20382325------2</link>
            <guid isPermaLink="false">https://medium.com/p/334773f85b2a</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[user-experience-design]]></category>
            <category><![CDATA[facedetection]]></category>
            <dc:creator><![CDATA[Yael]]></dc:creator>
            <pubDate>Sun, 14 Apr 2019 11:15:20 GMT</pubDate>
            <atom:updated>2019-04-14T11:15:20.763Z</atom:updated>
            <content:encoded><![CDATA[<p>I was invited by <a href="https://anitab.org/systers/">Systers </a>and <a href="https://www.mwcbarcelona.com/">MWC </a>to write my experience at the MWC conference but I wanted to start with the registration process and what I learnt from it about user experience.</p><p>My romance with MWC started on the wrong foot.</p><p>When I signed myself, I had to fill up a registration form with different types of information. One of them was my face image - for image verification at the conference itself. This year MWC decided to use a face recognition technology which was suppose to help them with a faster security checkup. Well…</p><p>when I entered my face image it refused to accept it, claiming it can’t recognize a face. I tried different face photos of myself, from different angles and lights but unfortunately it didn’t help</p><p>And the interesting part only starts here</p><p>As you can tell from my profile photo, I look a bit different (hi five to all the people there who look different!) so I thought maybe it could be the problem (although I never had this problem with any other app before). So I decided to try and troll the system. I uploaded images of monkey faces and guess what?</p><p>It didn’t recognize them either!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*SycMgNMwRm-XvLYkimIwGg.png" /><figcaption>my face vs. monkey face. Find the differences</figcaption></figure><p>There wasn’t any contact information (mail address or phone number) and the only option for solving it was like in the good old days- going physically, praying for the great lord and casting a spell on the system.</p><p>(btw, in retrospect I understood that the image wasn’t an essential part in the form but it wasn’t written anywhere…)</p><p>So remember folks, if you are going to work with a face recognition technology which is embedded in your product, make sure it works… and if something isn’t crucial, please specify it (or put it in a different section)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=334773f85b2a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/systers/face-recognition-technology-and-ux-334773f85b2a">Face recognition technology and UX</a> was originally published in <a href="https://medium.com/systers">Systers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>