<?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 Buse Yaren on Medium]]></title>
        <description><![CDATA[Stories by Buse Yaren on Medium]]></description>
        <link>https://medium.com/@buseyaren?source=rss-beebfd895d70------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xEMVnAP7TU9bV2em3mCnUA.png</url>
            <title>Stories by Buse Yaren on Medium</title>
            <link>https://medium.com/@buseyaren?source=rss-beebfd895d70------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 06:59:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@buseyaren/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[SpectRAG: Weighted Chunk Graphs for Token-Budgeted Context Selection in Multi-Hop…]]></title>
            <link>https://pub.towardsai.net/spectrag-weighted-chunk-graphs-for-token-budgeted-context-selection-in-multi-hop-39b91ffa35c4?source=rss-beebfd895d70------2</link>
            <guid isPermaLink="false">https://medium.com/p/39b91ffa35c4</guid>
            <category><![CDATA[multi-hop-reasoning]]></category>
            <category><![CDATA[token-budgeting]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[spectrag]]></category>
            <category><![CDATA[chunking]]></category>
            <dc:creator><![CDATA[Buse Yaren]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 19:16:26 GMT</pubDate>
            <atom:updated>2026-11-05T04:47:00.348Z</atom:updated>
            <content:encoded><![CDATA[<h3>SpectRAG: Weighted Chunk Graphs for Token-Budgeted Context Selection in Multi-Hop Retrieval-Augmented Generation</h3><h4><em>SpectRAG turns your corpus into a weighted chunk graph and uses spectral graph theory to pick evidence that is relevant, diverse and connected. Its index is about 6× smaller than LightRAG’s.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*RirhQlrBOXZPGJJxKpFPdg.gif" /></figure><p>🤹🏼Retrieval-augmented generation (RAG) systems enhance large language models (LLMs) by sourcing external evidence and using that retrieved information to inform generation. While dense retrieval works well for local semantic alignment, standalone ranked retrieval may yield redundant passages, overlook dependencies across chunks, and offer insufficient evidence for multi-hop reasoning.</p><blockquote>We propose <strong>SpectRAG</strong>, a spectral graph-augmented retrieval framework that combines hybrid candidate seeding, weighted chunk graph construction, graph-based expansion, spectral relevance propagation, and token-budgeted context selection !!</blockquote><p>Ask a RAG system a question for which the answer is spread across three passages and see what happens.</p><p>The retriever embeds your question and finds the six chunks of text closest to it. These are then handed to the LLM. All six will come from the same paragraph-sized section of one document. They say almost the same thing. The passage that links that section to the rest of the answer never appears because it does not resemble the question.</p><p>The model then does its best with a context window full of near-duplicates. Sometimes it guesses right. Often, it does not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*PUlH2hEFKvJSugbWDDM-3w.gif" /><figcaption>Same question, same 6-chunk budget. Classic top-k fills the window with near-duplicates from one cluster and finds 1 of 3 gold passages.</figcaption></figure><p>This is the problem we set out to fix with <em>SpectRAG</em>. Here is the idea in one sentence:</p><blockquote><strong><em>Stop ranking chunks one at a time. Select a </em>set<em> of chunks that works together as evidence.</em></strong></blockquote><p>In this post I’ll walk through why top-k retrieval breaks on multi-hop questions, how SpectRAG uses a weighted chunk graph and its Laplacian spectrum to fix it, and what we measured on MultiHopRAG and UltraDomain. That includes the parts where SpectRAG does <em>not</em> win.</p><h3>Three ways top-k retrieval quietly fails</h3><p>Dense retrieval scores every chunk on its own: <em>how similar is this chunk to the query?</em> That works well for a lookup like “what is the boiling point of X?” When the answer needs several pieces of evidence, it breaks in three ways.</p><ol><li><strong>Redundancy: </strong>Neighboring and overlapping chunks sit close together in embedding space. If one of them is a strong match, its near-copies are too. Top-k happily returns all of them, using up your context window as it repeats itself.</li><li><strong>Missing bridge evidence:</strong> Multi-hop answers are typically based on a connecting passage. This could be defined as a definition, a shared entity, or a reference that links two facts. Connecting passages are not usually a direct match for the question, so they are given a lower rank and are eliminated from further consideration.</li><li><strong>Structure blindness:</strong> Real corpora are characterized by several structural features, including document order, section hierarchy, shared entities and citations. Top-k ignores all of it and treats your knowledge base as a bag of independent vectors.</li></ol><h3>The reframe: from top-k to context-set retrieval</h3><p><em>SpectRAG</em> treats retrieval as a set selection problem. Rather than maximizing individual scores, our objective is to establish a context set C that is collectively beneficial.</p><pre>F(C, q) =   Σ Rel(c, q)         ← each chunk should be relevant<br>          − λ Σ Red(cᵢ, cⱼ)     ← …but not repeat each other<br>          + γ Cov(C, q)         ← together they cover the question&#39;s aspects<br>          + η Conn(C; G)        ← and they form a connected evidence path</pre><p>If the values of λ, γ and η are set to zero, the result will be plain top-k. The remaining three terms each target one of the failure modes above. As this objective is defined over sets, it cannot be optimized by sorting a list. <strong>Instead, SpectRAG uses a graph-based pipeline to approximate it</strong>.</p><h3>How SpectRAG works</h3><p><em>SpectRAG</em> has an offline stage that runs once per corpus and an online stage that runs once per query.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4RxVLuAKA_PF2nSdB79WoQ.png" /><figcaption>The full SpectRAG pipeline [<a href="https://arxiv.org/pdf/2610.36991">SpectRAG official arXiv preprint</a>]</figcaption></figure><h3>Offline, step 1: a chunk graph built from six signals</h3><p>Documents are split into roughly 1,200-token chunks. The splitter follows headings when they exist, places semantic breakpoints when they don’t, never cuts mid-sentence and keeps tables intact. Every chunk is embedded with nomic-embed-text.</p><p>Then comes the important part. Chunks are connected. Unlike a plain k-NN embedding graph, SpectRAG draws edges from six complementary evidence signals:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*iciWVC5NaSl1EwQ1nOlCrg.gif" /><figcaption>Chunks from five documents get connected signal by signal, then settle into one weighted chunk graph</figcaption></figure><p>For every chunk an LLM generates the questions that chunk can answer. Two chunks that answer similar questions are <em>functionally</em> related, even if their wording is completely different.</p><p>The signals are fused into one edge weight, w_ij = Σ α_r · w_ij^(r), and weak edges are pruned so the graph stays sparse.</p><h3>Offline, step 2: give every chunk a second set of coordinates</h3><p>We take the symmetric normalized Laplacian of the graph,</p><pre>L_sym = I − D^(-1/2) · W · D^(-1/2)</pre><p>That gives every chunk two geometries:</p><ul><li>its <strong>dense embedding</strong>, which encodes <em>what the chunk says</em>;</li><li>its <strong>spectral coordinate</strong>, which encodes <em>where the chunk lives</em> in the corpus’s community structure.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Pl6Fa_24TkPG5QY-sFBbXw.gif" /><figcaption>In embedding space, topics overlap and some chunks sit far from the neighbours they belong with. In spectral space (Laplacian eigenvectors), each graph community pulls together, whatever its wording</figcaption></figure><h3>Online: five stages per query</h3><p>1️⃣ <strong>Hybrid seeds:</strong> Three rankings are fused with Reciprocal Rank Fusion: dense FAISS cosine, BM25 and matching the query against the stored utility questions. This gives a high-recall seed set of 20 chunks. We deliberately over-retrieve here, because the rest of the pipeline can only reach what the seeds can reach.</p><p>2️⃣ <strong>Graph expansion:</strong> A two-hop breadth-first search from the seeds in Neo4j pulls in up to 200 candidates. These are neighbours that may not match the query at all but are <em>connected</em> to chunks that do.</p><p>3️⃣ <strong>Proximity re-scoring / relevance diffusion: </strong>This is where the spectral structure earns its keep. Conceptually, query relevance <em>diffuses</em> over the graph:</p><pre>s&#39; = exp(−t · L_sym) · s</pre><p>A chunk that never matched the query can still light up if it is strongly connected to chunks that did ⤵️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*9KEsCy99ws3wCgtxEv5E5w.gif" /><figcaption>Relevance starting at three seed chunks spreads along the graph as the diffusion scale t grows (<em>Real heat-kernel computation on a synthetic graph</em>)</figcaption></figure><p>4️⃣ <strong>Token-budgeted selection: </strong>Most retrievers return a fixed <em>k</em>. SpectRAG fills a token budget of <strong>about 12,000 tokens</strong> instead:</p><ul><li>a protected core of high-confidence chunks that diversity rules can never push out;</li><li>a precision-oriented tail that prefers new documents and under-represented spectral clusters and rejects chunks that repeat what’s already in;</li><li>a backfill step so the budget is never left half-empty.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*C2vfJ1oyXrpRlEyejVX3ww.gif" /><figcaption>The context window fills by tokens, not by count: protected core first, then a coverage-aware tail with a precision floor, then backfill</figcaption></figure><h3>Does it work? What we measured 👩🏻‍🔬</h3><p>We evaluated on <strong>MultiHopRAG</strong> (2,556 gold-answer multi-hop questions) and four <strong>UltraDomain</strong> corpora (Agriculture, CS, Legal, Mix). Baselines were NaiveRAG, Hybrid (BM25 + dense), HyDE and LightRAG. Every system used the same generator, so differences in answers come from retrieval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*TBZXho3-Xe-He7fVEjn9Ew.gif" /></figure><h3>1. A much lighter graph than entity-based GraphRAG</h3><p>LightRAG builds its graph from LLM-extracted <em>entities</em>, plus separate vector stores for entities and relations. SpectRAG’s nodes are just your chunks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ld21dTTQ9IPiYB8NRaVvJw.png" /><figcaption><a href="https://arxiv.org/pdf/2610.36991">SpectRAG paper,</a> Table 4.</figcaption></figure><p>➡️ Across all five corpora SpectRAG has <strong>2.8× to 6.6×</strong> <strong>fewer nodes</strong>, and on MultiHopRAG the full persisted index is <strong>46 MB versus 274 MB</strong>. The graph is smaller in <em>nodes</em>, not in <em>edges</em>. Each chunk has far richer connections: up to ~5.7 edges per node versus about 1 for LightRAG.</p><h3>2. It finds more of the evidence, especially as you go deeper</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dSdlLmceEjGh6Rz1AHDdDg.png" /><figcaption><a href="https://arxiv.org/pdf/2610.36991">SpectRAG paper,</a> Table 6.</figcaption></figure><p>🔸On MultiHopRAG, SpectRAG recovers <strong>91.8% of gold evidence overall</strong>, against 76.1% for the next-best system, and leads at <strong>Recall@10 (84.0)</strong>. Against LightRAG it’s ahead at every cutoff and on MRR (70.4 vs 61.5).</p><h3>3. Best end-to-end accuracy, by a narrow but consistent margin</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdLoDgBi7cttj1VaAFHjMA.png" /><figcaption><a href="https://arxiv.org/pdf/2610.36991">SpectRAG paper,</a> Table 7.</figcaption></figure><p>SpectRAG has the <strong>highest exact match (71.2), F1 (71.6)</strong> and <strong>answer-containment (71.6)</strong> of the five systems. The gap to Hybrid and LightRAG is under one point. The gap to NaiveRAG and HyDE is 3–6 points.</p><h3>4. The biggest win is where it should be: connecting evidence</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FfMq8iQo907GQ8OTwQYO6Q.png" /><figcaption><a href="https://arxiv.org/pdf/2610.36991">SpectRAG paper,</a> Table 8.</figcaption></figure><p>🎢 On inference questions, the type that most needs evidence assembled across hops, <strong>SpectRAG reaches 95.1% exact match</strong>. Comparison and temporal questions are close to a tie, with LightRAG slightly ahead.</p><h3>⌨️ Try it</h3><p>SpectRAG is open source (MIT). It runs with FAISS, BM25, Neo4j and a React + D3 front-end, where you can explore the chunk graph of your own documents.</p><pre># index a folder of documents<br>python main.py index papers/<br><br># ask a multi-hop question<br>python main.py query &quot;What methods improve cross-document reasoning?&quot;</pre><p>It can run <strong>fully local</strong>: Ollama embeddings, a local LLM for utility questions and spaCy NER for entities, with no API key.</p><ul><li>📄 <strong>Paper:</strong> <em>SpectRAG: Weighted Chunk Graphs for Token-Budgeted Context Selection in Multi-Hop Retrieval-Augmented Generation</em>, <a href="https://arxiv.org/abs/2610.36991">arXiv:2610.36991</a></li><li>💻 <strong>Code:</strong> <a href="https://github.com/SightAndCite/SpectRAG">github.com/SightAndCite/SpectRAG</a></li></ul><p>If you build RAG systems, I’d love to hear where your retriever breaks. Is it redundancy, missing bridges or something else? Leave a comment, and if this was useful, a clap or a share helps other people find it 👏</p><p><em>SpectRAG is joint work by Zafer Sahinoglu, Abdulazeez Mohammed, Buse Yaren Kazangirler and Cahit Berkay Kazangirler. All numbers in this post are taken from the paper’s tables. The animations of toy graphs are illustrations of the mechanism, not experimental results.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39b91ffa35c4" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/spectrag-weighted-chunk-graphs-for-token-budgeted-context-selection-in-multi-hop-39b91ffa35c4">SpectRAG: Weighted Chunk Graphs for Token-Budgeted Context Selection in Multi-Hop…</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Specific GPU Usage with TensorFlow]]></title>
            <link>https://buseyaren.medium.com/specific-gpu-usage-with-tensorflow-2828c843cb08?source=rss-beebfd895d70------2</link>
            <guid isPermaLink="false">https://medium.com/p/2828c843cb08</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[keras]]></category>
            <category><![CDATA[gpu]]></category>
            <dc:creator><![CDATA[Buse Yaren]]></dc:creator>
            <pubDate>Mon, 17 Mar 2025 16:22:36 GMT</pubDate>
            <atom:updated>2025-03-17T16:22:36.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eiVMlI8fNrciXlQl" /><figcaption>Photo by <a href="https://unsplash.com/@casparrubin?utm_source=medium&amp;utm_medium=referral">Caspar Camille Rubin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hello everyone, we are again facing a TensorFlow post. We are slowly starting the deep learning series. In this article, we will learn how to use multiple GPUs actively. If you have not made the necessary settings for the use of the GPU, you can easily perform the setup by clicking <a href="https://pub.towardsai.net/creating-a-deep-learning-environment-with-tensorflow-gpu-c16980ed1f67">this article</a>.</p><p>I like to experiment on a virtual environment while working, so I will create an environment again. Come on, follow me.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e249e86bdde214d658ae98b1b73fa5ea/href">https://medium.com/media/e249e86bdde214d658ae98b1b73fa5ea/href</a></iframe><p>🌐In this way, we create a virtual environment called virtualenv. Name completely subjective you can create an environment according to your heart. Then we will activate this virtual environment and perform our transactions.</p><p>Since I have solved the version problem with <strong>tensorflow-gpu = 1.14.0</strong>, I will use the same version in this environment.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d8da239719819cc449faca09be06a0fd/href">https://medium.com/media/d8da239719819cc449faca09be06a0fd/href</a></iframe><p>When installing with Conda, you will receive approval for the installation. You can also see the CUDA and cuDNN versions installed while giving this approval. In this way, we will see that we are on the right track.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*Ao6d3u_PXwSfD4LTKr36AA.png" /><figcaption>Image by author</figcaption></figure><p>📥We also saw our Cuda and cuDNN kits suitable for our TensorFlow version. We can continue our way by downloading other libraries. I downloaded this library as I will be using Keras library with TensorFlow.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f69c9230f3af22b18eb47504e8b03f1/href">https://medium.com/media/5f69c9230f3af22b18eb47504e8b03f1/href</a></iframe><p>📥You can install via pip package management or conda. I quickly loaded it with pip as there was no situation to confirm. In addition to this, since I will use Jupyter as the IDE, we are doing the pip setup.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6bafaf80c96fe8094bbf37f3eb5d1d3b/href">https://medium.com/media/6bafaf80c96fe8094bbf37f3eb5d1d3b/href</a></iframe><p>Thus, we are starting the platform on which we will run our code. In the image I have given below, you can see where a Python notebook was created. We create a notebook by pressing the Python 3 menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*iqre5i8F82lMOZkp7ilkVg.png" /><figcaption>Image by author</figcaption></figure><p>💣If you are using GPU with Google Colab, make sure that the hardware type selected in the notebook settings is GPU.</p><p>We will examine the TensorFlow hardware that we can use in the notebook with this code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/418e2456b497a8ff09d89dacc93b06b9/href">https://medium.com/media/418e2456b497a8ff09d89dacc93b06b9/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*83sXva3a4lyeD3GnTenEXQ.png" /><figcaption>Image by author</figcaption></figure><p>Since I have another model tutorial that is already working, I have to choose a different GPU. To find out the GPU device I used in the other code, I had to write the following line of code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db581dc33b501f83d095860af02c0a0b/href">https://medium.com/media/db581dc33b501f83d095860af02c0a0b/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*1Ij5xWazFcmqa2UR0Zc9XQ.png" /><figcaption>Image by author</figcaption></figure><p>By default, the device uses GPU: 0 device. I also want to train in different environments with two GPUs. For this reason, I want to switch to GPU: 1 device.</p><p>If the physical GPU did not exist for device 1, I suggest you try the code below as well.</p><p>🎯Thus, we have achieved a parallel GPU usage. Besides, I have to say that it is possible to set the GPU even on your terminal before entering your notebook.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/854695961f3ba31e2113fe3148de3316/href">https://medium.com/media/854695961f3ba31e2113fe3148de3316/href</a></iframe><p>You can do this by creating a variable with the <strong>export </strong>command in your python file without entering the notebook. That’s it!</p><p><em>You can also follow my </em><a href="https://github.com/BuseYarenTekin"><strong><em>GitHub </em></strong></a><em>and </em><a href="https://twitter.com/BuseYarenTekin"><strong><em>Twitter </em></strong></a><em>account for more content!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2828c843cb08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Makine Öğrenimi Projelerinde Özellik Çıkarımı — Feature, Feature Extraction]]></title>
            <link>https://buseyaren.medium.com/makine-%C3%B6%C4%9Frenimi-projelerinde-%C3%B6zellik-%C3%A7%C4%B1kar%C4%B1m%C4%B1-feature-feature-extraction-6752df27c7a5?source=rss-beebfd895d70------2</link>
            <guid isPermaLink="false">https://medium.com/p/6752df27c7a5</guid>
            <category><![CDATA[pcap-analysis]]></category>
            <category><![CDATA[features]]></category>
            <category><![CDATA[feature-extraction]]></category>
            <category><![CDATA[örüntü-tanıma]]></category>
            <category><![CDATA[pattern-recognition]]></category>
            <dc:creator><![CDATA[Buse Yaren]]></dc:creator>
            <pubDate>Thu, 13 Oct 2022 06:09:17 GMT</pubDate>
            <atom:updated>2022-10-13T06:09:17.319Z</atom:updated>
            <content:encoded><![CDATA[<h3>Makine Öğrenimi Projelerinde Özellik Çıkarımı — Feature, Feature Extraction</h3><p>Günümüzde gerek özel sektör ve gerekse akademik literatürde adından sıkça bahsettirmeyi başaran makine öğrenimi, bilgisayarların ve makinelerin veriye bağımlı olarak anlam çıkarabilmesidir. Bunun en güzel örneklerinden birisi ise yeni doğan bir bireyin öğrenme yetisini kazanabilmesi olarak verilebilir. Dünyaya gözlerini yeni açan bir bireyin doğuştan konuşabilme, yürüyebilme veya şarkı söyleyebilme gibi özelliklerin sağlandığını söylemek pek doğru olmaz. Ancak birey dış dünyadan gözlemlediği ve öğrendiği bilgilerle anlayabilme ve uygulayabilme yetilerini kazanabilir.</p><p>Makine öğrenimi gerçekleştirilen birçok proje veya çalışma, veri/ veri kümesi üzerinde öğrenmeyi gerçekleştirir. Tıpkı bireylerin de aklında tuttuğu verilerden anlam çıkartarak bir sonraki gelen işlemde tahmin yeteneği kazanması gibi bir öğrenme işlemi gerçekleştirilir. Bu adımların iyi öğrenilebilmesi için öncelikle veri kümesindeki <strong>feature </strong>olarak kullanılan — ki biz buna özellik veya öznitelik de diyebiliriz — anlamlı bilgilerin detaylıca öğrenilmesi gereklidir. Ayrıca, makale sırasında makine öğrenimi/örüntü tanıma veya derin öğrenme olarak isimlendireceğimiz yapıların birbirine göre farklılıklarına da mutlaka değinmek gereklidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*WJyNgjQiR5Pcabqx8ZPG2w.jpeg" /><figcaption>Şekil 1. Görüntü kaynağı <a href="https://www.researchgate.net/publication/333754730_Diverse_Perspectives_on_the_Relationship_between_Artificial_Intelligence_and_Pattern_Recognition/figures?lo=1">[1]</a></figcaption></figure><p>Teknik anlamda değerlendirmek gerekirse, makine öğreniminde bir modelin %100 doğru olmasını beklemek pek mümkün değildir, ancak belirli bir kategoride kategorize edilebilmesi için tahminlerin mümkün olduğunca yakın olması gerekir. Dolayısıyla model, tahmin yapmak için sağlanan verilerden öğrenen bazı algoritmalara dayalı olarak oluşturulur. Buna karşın, örüntü tanıma olarak adlandırdığımız<strong> pattern recognition, </strong>makine öğreniminde kullanılan algoritmaların yardımları ile tanıma sağlar. Örüntüleri tanıma, eğitim verileri tarafından oluşturulan modele dayalı olarak verileri sınıflandırma işlemidir, bu daha sonra desenlerden (<em>pattern</em>) desenleri ve özellikleri tespit eder. Böylece, örüntü tanıma daha sistematik bir şekilde dış dünyadan alınan verilerin öğrenilmesini sağlamaktadır. Daha teknik açıdan açıklanmış terimine bakılacak olunursa, halihazırda kazanılmış bilgilere veya desenlerden çıkarılan istatistiksel bilgilere ve/veya bunların temsiline dayalı olarak verilerin sınıflandırılması olarak tanımlanabilir [3]. Ayrıca, belirli bir sistem veya veri seti hakkında bilgi veren özellik veya veri düzenlemelerini tespit etme yeteneği örüntü tanıma için verimli bir görevdir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LPbvRZykFCp9E6lQQQagHQ.png" /><figcaption>Şekil 2. <a href="https://trends.google.com/">Google Trend</a>s, dünya genelinde bilim alanında son 5 yıl ilgi değişimi</figcaption></figure><p>Şekil 1&#39;de gösterilen mimari incelendiğinde, örüntü tanımanın makine öğrenimi ve kısmen de yapay zeka kavramlarının içerisinde yer aldığı sonucuna varılmaktadır. Bununla birlikte, örüntü tanımanın makine öğrenimi ile hemen hemen aynı bölgede bulunduğunu yani aynı prosedürlerden geçtiğini unutmamak gereklidir. Şekil 2&#39;ye gelindiğinde ise son 5 yılda Google Trends üzerinden dünya genelinde machine learning, deep learning ve pattern recognition terimlerinin ilgi — arama sıklığı yer almaktadır. Grafik incelendiğinde ise dünya çapında “machine learning-makine öğrenimi” tabirinin daha sık kullanıldığı çıkarımı yapılmaktadır. Bunun en büyük sebebi ise deep learning ve pattern recognition terimlerinin aslında bir machine learning tekniği olmasından kaynaklanıyor olabilir. Makine öğreniminin alt dalları olarak sayılabilecek bu kavramlar elbette daha teknik detay gerektirdiği için arama geçmişinde daha az aranmış olabilir.</p><p>Örüntü tanıma için tipik bir makine öğrenimi gözü ile bakabiliriz, bunun en büyük sebebi bir makine öğrenimi projesindeki birçok adımın aslında bir örüntü tanıma çalışmasından geçtiğidir. Şekil 3&#39;te örüntü tanıma çalışmalarının genel tematiğine yer verilmektedir. Gördüğünüz bu desen aslında ilkokulda eksik örüntüleri tanımlamamızdan farksızdır. İncelendiğinde her beş desende bir yenilenme söz konusudur ve eksik olan bölümlerde gelecek deseni hafızamıda edindiğimiz yere göre tahmin ederek devam eder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Au4luB3p3BdryX0O5ne_QQ.jpeg" /><figcaption>Şekil 3. Örnek bir pattern (örüntü) deseni <a href="https://www.canva.com/learn/geometric-design/">[kaynak]</a></figcaption></figure><p>Geçtiğimiz yıllarda çalışmış olduğum makine öğrenimi hatta derin öğrenme projelerinin yanı sıra, bu yıl doktora ders dönemimde daha yakından tanışmış olduğumuz “Örüntü Tanıma” kavramı için araştırma yapmaktayım. Hem akademik hem de teknik kavramların yanı sıra birçok araştırmacının makale ve yazılarını da inceliyorum. Bunlardan en çok dikkatimi çeken ise aşağıda alıntıladığım bilgi idi;</p><blockquote>Örüntü tanıma, karşılaştığımız bazı bilgileri belleğimizde depolanan verilerle eşleştirdiğimizde beynimizde gerçekleşen bilişsel bir süreçtir. Örneğin, bir anne çocuğuna saymayı öğrettiğinde, “Bir, iki, üç” der. Birden fazla tekrardan sonra anne “Bir, iki …” dediğinde çocuk “Üç” diyebilir. Gördüğümüz gibi, çocuk kalıbı tanımış oldu. Dolayısıyla, örüntü tanıma aslında bilişsel sinirbilim ve psikolojiden gelmektedir. — Ecehan Yıldırım, <a href="https://ecehanyildirim.medium.com/%C3%B6r%C3%BCnt%C3%BC-tan%C4%B1maya-giri%C5%9F-6416d8aca5f7">Kaynak</a></blockquote><p>Kavramın geçmişine ve temeline değindikten sonra biraz daha tekniğe girecek olursak, bilgisayar biliminde örüntü tanıma; sürekli devam ve tekrar eden şekiller olan örüntüleri tanımaya yarayan bir teknolojidir [4]. Özelliklerinden bahsedecek olursak;</p><ul><li>Örüntü tanıma verilerden öğrenir.</li><li>Kısmen görünür olduğunda bile kalıpları otomatik olarak tanır.</li><li>Bilinen kalıpları tanıyabilmelidir.</li><li>Desen farklı açılardan ve şekillerden tanınmalıdır.</li></ul><p>Bir örüntü tanıma/makine öğrenimi projeleri başlıca 4 adımdan oluşur. Şekil 4&#39;te bu adımlara yer verilmektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8-49_-hm6vLzY8h_x0lS5Q.jpeg" /><figcaption>Şekil 4. Tipik bir örüntü tanıma sistemi <a href="https://www.geeksforgeeks.org/pattern-recognition-basics-and-design-principles/">[kaynak]</a></figcaption></figure><p>Şekil incelendiğinde gerçek dünyadan verilerin bir sensör/sensörler (görüntü kaydetme, ses algılama, vb. ) yardımı ile alınması ilk aşamadır. Burada önemli olan verilerin kalitesidir, kalitesiz veriler ile maalesef iyi bir performans beklenmesi mümkün değildir. Bu sebeptendir ki, çalışmadaki veriler projenin isterlerine göre bir ön işlemeden (preprocessing &amp; enhancement) geçirilir. Ön işleme için örneğin görüntü verisindeki ilgilenilecek bölge kalacak düzeyde arka plan çıkarımı sağlanır veya kenar tespiti ile kenarlar belirginleştirilir. Bunun gibi birçok iyileştirme adımından sonra, veride binlerce/milyonlarca “feature” diye ifade ettiğimiz özellik/öznitelikler yer almaktadır. Bir projede binlerce özelliğin her bir görüntü için incelendiği varsayılırsa, çalışmada sınıflandırıcı çıkılamaz bir hal alacaktır. Bu yüzden sınıflandırıcıya verilmeden önce veriler, bir seleksiyon işleminden geçirilir. Örneğin bir köpek türü sınıflandırması projesinde çalışıyor isek, köpeklerin arka planlarını çıkarttıktan sonra türlerin birbirine göre ayırt edici özellikleri göz önünde bulundurularak özelliklerin silinmesi yani seçilmesi işlemi yapılır. Aşağıdaki şekillerde birbirinden farklı köpek türleri yer almaktadır. Bu türler incelendiğinde, ırkların renk, şekil, boyut hatta göz ve yüz tiplerine göre ayırt edici özellikler taşıdığı gözlemlenmiştir. Buna göre ortak özellik olarak örneğin bir buruna sahip olmaları bir sınıflandırıcıya verilse bile türün tespitinde yardımcı olmaz. Bu sebeple, gereksiz detayların da incelenmemesi için bir öznitelikleri/özellik çıkarımı (feature extraction) işlemi uygulanır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Sk6Hi_rb2OKNl6wr" /><figcaption>Photo by <a href="https://unsplash.com/@justnjames?utm_source=medium&amp;utm_medium=referral">Justin Aikin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Jv2EGG67BQ1xQ3eV" /><figcaption>Photo by <a href="https://unsplash.com/@dole777?utm_source=medium&amp;utm_medium=referral">dole777</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Bir sonraki işlem ise çalışmanın gidişatına ve hedefine göre bir sınıflandırıcı model seçimidir. Sınıf sayısından, hedefe kadar birçok farklı işlem için farklı sınıflandırıcılar söz konusudur. Şekil 4&#39;te bahsi geçen classification bir sınıflandırma, clustering bir kümeleme, regression ise bir regresyon çözümü sunmaktadır. Bir sonraki yazıda daha detaylı değinecek olduğum için bu sınıflandırıcıları es geçiyorum.</p><p>📢 Feature (özellik) kavramından bahsederken, yukarıdaki senaryoda bahsetmiş olduk. Ancak daha teknik açıdan <strong>feature</strong>, Şekil 5&#39;te görüldüğü üzere çalışmanın çeşitliliğine göre farklılaşabilir ancak genel olarak verilerde yer alan önemli ve ayırt edici bölgelerdir (Tıpkı bir RoI gibi). <strong>Bir özellik, temel olarak, nesnenin önemli özelliklerini ölçmek için hesaplanan bir veya daha fazla ölçümün bir fonksiyonudur. </strong>Özellik, örüntü tanıma sistemindeki en önemli bileşenlerden biridir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3fhvmZG6xq9bN3fVttXoCA.png" /><figcaption>Şekil 5. Örnek özellikleri gösterilmiş bir girdi verisi</figcaption></figure><p><strong>Özellikler/öznitelikler</strong>, makine öğrenimi modellerinde bağımsız değişkenlerden başka bir şey değildir. Herhangi bir özel makine öğrenimi probleminde öğrenilmesi gereken, bu özelliklerden (bağımsız değişkenler), bu özelliklerin katsayılarından ve uygun işlevler veya modeller (hiperparametreler olarak da adlandırılır) ortaya çıkarmak için parametrelerden oluşan bir settir. Aşağıdakiler, makine öğrenimi modellerinin özellikleri olarak adlandırılabilecek şeylere ilişkin birkaç örneği temsil etmektedir:</p><p>Bir bireyin diyabet hastalığı riskini tahmin etmeye yönelik bir model aşağıdaki gibi özelliklere sahip olabilir:</p><ul><li>Obezite (aşırı kilo)</li><li>Ebeveynlerde diyabet öyküsünün yer alması</li><li>İleri yaş</li><li>Hareketsiz yaşam tarzı</li><li>Stres</li></ul><p>Bu özellikler (ayırt edici olmaları şartıyla) kullanılarak bireylerin hastalık riskini hesaplayabiliriz. Dolayısıyla her bir senaryoya özel <strong>özellik haritaları</strong> (tüm özelliklerin birleştiği yapılar) oluşturulur.</p><h4>Bazı Feature Extraction Yöntemleri</h4><p>Özellik Çıkarma, mevcut özelliklerden yeni özellikler oluşturarak (ve ardından orijinal özellikleri atarak) bir veri kümesindeki özelliklerin sayısını azaltmayı amaçlar. Eğer bu özellikler azaltılmazsa yukarıda da bahsi geçtiği gibi sınıflandırıcı öğrenirken zorluk yaşar ve modelin performansı olumsuz etkilenir. İşte bu sebeple genellikle indirgeme çözümleri gerçekleştirilir. Aşağıda bazı özellik çıkarma yöntemlerine yer verilmektedir. Kısaca bahsedilecek ve başka bir yazıda derinlemesine işlenecektir.</p><p><strong>1. Boyutsallık Azaltma İhtiyacı: </strong>Gereken zaman ve depolama alanını azaltır. Makine öğrenimi modelinin parametrelerinin yorumlanmasını iyileştiren çoklu doğrusallığı kaldırmaya yardımcı olur.</p><p><strong>2. PCA (Temel Bileşen Analizi — Lineer): </strong>Veriler analiz edilirken özellik çıkarımı yapılmalıdır. Temel amacı yüksek boyutlu verilerde en yüksek varyans ile veri setini tutmak ancak bunu yaparken boyut indirgemeyi sağlamak olan bir tekniktir. Büyük bir değişken kümesini, büyük kümedeki bilgilerin çoğunu hala içeren daha küçük bir değişkene dönüştürerek, büyük veri kümelerinin boyutluluğunu azaltmak için sıklıkla kullanılan bir boyutluluk azaltma yöntemidir.</p><p><strong>3. Çekirdek PCA: </strong>Kernel PCA, karar sınırları doğrusal olmayan fonksiyon tarafından tanımlanan verilerin sınıflandırılmasına yardımcı olmak amacıyla geliştirilmiştir. Buradaki fikir, karar sınırının lineer hale geldiği daha yüksek boyutlu bir uzaya gitmektir.</p><p><strong>4. LDA(Lineer Diskriminant Analizi): </strong>Lineer diskriminant analizi, önceden bilinen p sayıdaki özelliklerine göre birimleri, doğadaki gerçek sınıflarına en doğru şekilde atamayı amaçlayan çok değişkenli istatistiksel bir yöntemdir.</p><p><strong>📕 Günün Kitap Önerisi:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E_E1qr3UjI6Hbd2V5iOKxg.png" /></figure><p>🔺Örnek bir makine öğrenimi çalışması: <a href="https://medium.com/operations-management-t%C3%BCrkiye/evri%C5%9Fimli-a%C4%9Flar-ile-u-net-g%C3%B6r%C3%BCnt%C3%BC-segmentasyonu-f8d02b1c3170">https://medium.com/operations-management-t%C3%BCrkiye/evri%C5%9Fimli-a%C4%9Flar-ile-u-net-g%C3%B6r%C3%BCnt%C3%BC-segmentasyonu-f8d02b1c3170</a></p><p>🔺Örnek bir derin öğrenme çalışması:<br><a href="https://medium.com/operations-management-t%C3%BCrkiye/keras-ile-s%C4%B1n%C4%B1fland%C4%B1rma-cats-dogs-56645545a55d">https://medium.com/operations-management-t%C3%BCrkiye/keras-ile-s%C4%B1n%C4%B1fland%C4%B1rma-cats-dogs-56645545a55d</a></p><p>🔺Örnek bir doğal dil işleme çalışması: <a href="https://medium.com/operations-management-t%C3%BCrkiye/lojistik-regresyon-ile-duygu-analizi-d9d0b8e7b4e5">https://medium.com/operations-management-t%C3%BCrkiye/lojistik-regresyon-ile-duygu-analizi-d9d0b8e7b4e5</a></p><p>🎉 <em>Daha fazla içerik için beni</em> <a href="https://github.com/BuseYaren"><strong><em>GitHub</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCzAODG3wgdKtRov8VvyXvtw"><strong><em>YouTube</em></strong></a><em> ve </em><a href="https://twitter.com/BuseYarenTekin"><strong><em>Twitter</em></strong></a><em> hesaplarında takip edebilirsiniz.</em></p><h3>Referanslar</h3><ol><li><a href="https://www.researchgate.net/publication/333754730_Diverse_Perspectives_on_the_Relationship_between_Artificial_Intelligence_and_Pattern_Recognition/figures?lo=1">https://www.researchgate.net/publication/333754730_Diverse_Perspectives_on_the_Relationship_between_Artificial_Intelligence_and_Pattern_Recognition/figures?lo=1</a></li><li><a href="https://www.edureka.co/blog/pattern-recognition/#Introduction">https://www.edureka.co/blog/pattern-recognition/#Introduction</a></li><li><a href="https://dzone.com/articles/machine-learning-and-pattern-recognition">https://dzone.com/articles/machine-learning-and-pattern-recognition</a></li><li><a href="https://en.wikipedia.org/wiki/Pattern_recognition">https://en.wikipedia.org/wiki/Pattern_recognition</a></li><li>Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley &amp; Sons, 2000</li><li><a href="https://www.medicalpark.com.tr/seker-hastaligi-diyabet-nedir/hg-1703">https://www.medicalpark.com.tr/seker-hastaligi-diyabet-nedir/hg-1703</a></li><li><a href="https://online.datasciencedojo.com/blogs/curse-of-dimensionality-python">https://online.datasciencedojo.com/blogs/curse-of-dimensionality-python</a></li><li><a href="https://medium.com/analytics-vidhya/importance-of-dimensionality-reduction-d6a4c7289b92">https://medium.com/analytics-vidhya/importance-of-dimensionality-reduction-d6a4c7289b92</a></li><li><a href="https://medium.com/%40gulcanogundur/pca-principal-component-analysis-temel-bile%C5%9Fenler-analizi-bf9098751c62">https://medium.com/%40gulcanogundur/pca-principal-component-analysis-temel-bile%C5%9Fenler-analizi-bf9098751c62</a></li><li><a href="https://builtin.com/data-science/step-step-explanation-principal-component-analysis">https://builtin.com/data-science/step-step-explanation-principal-component-analysis</a></li><li><a href="https://nirpyresearch.com/pca-kernel-pca-explained/">https://nirpyresearch.com/pca-kernel-pca-explained/</a></li><li><a href="https://dergipark.org.tr/tr/pub/erciyesfen/issue/39694/455455">https://dergipark.org.tr/tr/pub/erciyesfen/issue/39694/455455</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6752df27c7a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a GPU? Are They Needed for Deep Learning?]]></title>
            <link>https://buseyaren.medium.com/what-is-a-gpu-are-they-needed-for-deep-learning-94dd4aeb45f6?source=rss-beebfd895d70------2</link>
            <guid isPermaLink="false">https://medium.com/p/94dd4aeb45f6</guid>
            <category><![CDATA[cuda-toolkit]]></category>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[cpu]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Buse Yaren]]></dc:creator>
            <pubDate>Sat, 20 Aug 2022 14:24:50 GMT</pubDate>
            <atom:updated>2022-08-20T14:24:50.648Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L7XhhQgsACBjJ0Jm" /><figcaption>Photo by <a href="https://unsplash.com/@rapol?utm_source=medium&amp;utm_medium=referral">Rafael Pol</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the age in which we live with the development of technology, more and more different concepts emerge every day. One of them should undoubtedly be the concept of <strong><em>“Artificial Intelligence”</em></strong>. Although artificial intelligence is used a lot, <strong><em>“Deep Learning”</em></strong> will meet us when we go deep into the current situation. In many areas today, we develop deep learning models to achieve specific tasks. In this article, we explore the GPU for deep learning with code samples.</p><p>This tutorial’s code is available on <a href="https://github.com/BuseYarenTekin/Create-Deep-Learning-Environment">Github</a> and its full implementation as well on <a href="https://colab.research.google.com/drive/1QNqzxlySlp8CVCeUqQzyBBLl-WnfpDEp?usp=sharing">Google Colab</a>.</p><blockquote>“In the era where artificial intelligence and algorithms make more decisions in our lives and in organizations, the time has come for people to tap into their intuition as an adjunct to today’s technical capabilities. Our inner wisdom can embed empirical data with humanity.”</blockquote><blockquote>- Abhishek Ratna</blockquote><h3>Table of Contents</h3><ol><li>What is a GPU?</li><li>Are They Needed for Deep Learning?</li><li>What are the differences between GPU and CPU?</li><li>How to develop a deep learning model with GPU?</li><li>Comparison of bandwidth for CPUs and GPUs over time</li></ol><h3>What is a GPU?</h3><p>A graphics processing unit (GPU) is a specialized electronic circuit designed to rapidly manipulate and alter memory to accelerate the creation of images in a frame buffer intended for output to a display device.</p><p>A GPU, short for graphics processing unit, is a computer chip that performs rapid mathematical equations for the purpose of rendering images.Specific or integrated may be part of a graphics card.</p><p>In embedded systems, it is quite possible to see GPUs in many areas such as personal computers or workstations. GPU depending on parallel processing structure, with advantages over graphics processor contained in image and video processing is typically quite successful. GPUs are becoming more popular for artificial intelligence (AI) these days.</p><p>One of the most important hardware you will need when developing a deep learning model should be the GPU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xuLfZu5BqdkCC0TX" /><figcaption>Photo by <a href="https://unsplash.com/@florianolv?utm_source=medium&amp;utm_medium=referral">Florian Olivo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Are They Needed for Deep Learning?</h3><p>While using deep learning methods, the hardware called GPU, which is frequently mentioned, is constantly trying the possibilities that exist in the background. So this situation is actually not very abstract. While we talked about the more thematic area of the GPU above, we will discuss what GPU means for deep learning.</p><p>More speed and performance are needed when it comes to training models, whether in machine learning or data science. To be more specific, we know the complex structure of artificial neural networks. While these neural networks work with little or big data at the backend, an increase in uptime will be observed while training the training set. In addition, as the data set grows, the working time can sometimes even take up to a week.</p><p>Suppose you have a sample data set with image content. Algorithmically, take action for each data when it comes to feed forward and back propagation of ANNs in this data set. If you don’t have a GPU, the machine will take on more of the processing load and therefore it will take a very long time to give you the processing result.</p><h3>What are the differences between GPU and CPU?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*YS6512Ih3glezJyqcm7oaw.png" /><figcaption>Figure 1. CPU vs GPU Architecture</figcaption></figure><p>A central processing unit (CPU), also called a central processor, main processor or just processor, is the electronic circuitry that executes instructions comprising a computer program.</p><p>The traditional CPU (Central Processing Unit) based approaches might not be the best solution for performing parallel computing as their cost and scalability issues. As seen in Figure 1, the CPU performs the basic arithmetic, logic, control, and Input /Output (I / O) operations specified by the instructions in the program.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zbppkNzvobuGJQns" /><figcaption>Photo by <a href="https://unsplash.com/@aleshcka?utm_source=medium&amp;utm_medium=referral">Oleg Gospodarec</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A GPU (graphics processing unit) is a specialized type of microprocessor, primarily designed for quick image rendering. GPUs appeared as a response to graphically intense applications that put a burden on the CPU and degraded computer performance.</p><p>CPUs and GPUs are completely interchangeable, and they both do their job in different ways. Brain and power are usually given as examples of this pair. Because the CPU is literally the central processing unit, it is called the computer’s brain. Of course, the GPU wouldn’t make any sense without a CPU. Since the CPU is assumed to be the brain, it deals with different types of computations, while the GPU is required to focus on a specific task.</p><p>Talking about the advantages of the GPU, while the CPU can solve the processes it will do one after the other, the GPU can efficiently solve multiple tasks synchronously at the same time. In a way, these two complement each other.</p><p>In addition to switching devices, multiple GPUs can be used synchronously to increase the performance of the deep learning model. This is called Multi GPU. You can run multi-GPU in parallel or continue without parallel. When the GPU is powered up without parallel, each GPU will work separately. In this way, faster work will not be provided.</p><p>The use of multiple GPUs is very flexible in <strong>PyTorch</strong> and <strong>TensorFlow</strong> frameworks, which are popular deep learning models.</p><blockquote>PyTorch is an open source machine learning library based on the Torch library, used for applications such as computer vision and natural language processing, primarily developed by Facebook’s AI Research lab.</blockquote><p>TensorFlow is an open source framework that flexibly enables model <strong>parallelism</strong>.</p><blockquote><strong>TensorFlow</strong> is a <a href="https://en.wikipedia.org/wiki/Free_software">free</a> and <a href="https://en.wikipedia.org/wiki/Open-source_software">open-source</a> <a href="https://en.wikipedia.org/wiki/Library_(computing)">software library</a> for <a href="https://en.wikipedia.org/wiki/Machine_learning">machine learning</a>. It can be used across a range of tasks but has a particular focus on <a href="https://en.wikipedia.org/wiki/Types_of_artificial_neural_networks#Training">training</a> and <a href="https://en.wikipedia.org/wiki/Statistical_inference">inference</a> of <a href="https://en.wikipedia.org/wiki/Deep_neural_networks">deep neural networks</a>.</blockquote><p>🎥 Let’s examine how an image is processed in Adobe Illustrator to see the differences in the working mechanism of the GPU and CPU.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWeBur1i6_yI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWeBur1i6_yI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWeBur1i6_yI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dbe93a4601a0ce497445fdf19f561698/href">https://medium.com/media/dbe93a4601a0ce497445fdf19f561698/href</a></iframe><p>NVIDIA CEO Jensen Huang describes a three-pronged attempt to bring accelerated and AI computing to Arm CPU platforms at the <a href="https://www.youtube.com/watch?v=pzbhU4ttSvM">GPU Technology Conference (GTC) Keynote: “Computing for the Age of AI”</a>. It also summarizes the many news announcements made at this address to advance the AI era.</p><p><a href="https://www.youtube.com/watch?v=-P28LKWTzrI">The Mythbusters</a>, Adam Savage and Jamie Hyneman demonstrate the power of GPU computing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eMufnGoDNfkfTRUr" /><figcaption>Photo by <a href="https://unsplash.com/@larskienle?utm_source=medium&amp;utm_medium=referral">Lars Kienle</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As additional information, besides the CPU and GPU, there is a data processing unit called <strong>DPU</strong>. Admittedly, perhaps the only element that has existed on the computer for many years has been the CPU. More recently, the graphics processing unit, which we call the GPU, has taken on the role. Recently, a DPU has been created by making multi-core CPUs programmable with software in data centers.</p><h3>How to develop a deep learning model with GPU?</h3><p>When developing deep learning models, you must first make sure that your computer has a GPU and that it is available.</p><p>⚙️<strong>OS:</strong> Windows 10 Pro<br>⚙️<strong>CUDA Toolkit:</strong> 10<br>⚙️<strong>cuDNN:</strong> 7.4<br>⚙️<strong>TensorFlow GPU:</strong> 1.14.0<br>⚙️<strong>Keras:</strong> 2.2.5</p><p>There are many options for software technology. I use one of my web frameworks, <strong>TensorFlow</strong>, that has the most documentation.</p><p>Determine your processor suitable for your machine at <a href="https://developer.nvidia.com/cuda-gpus#collapse4">link</a>. For example, in the image below, we have learned the processing capacity by checking the processor of the machine I work with actively.</p><p>The following command line is run to get information about the graphics card suitable for your machine.</p><pre>wmic path win32_VideoController get name</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*gVN9xKaw86Ql5xWEDM17tA.png" /><figcaption>Controlling the Quadro RTX 5000 Processor</figcaption></figure><p>To use the GPU, you need to install the appropriate cuDNN tool and CUDA toolkit for your machine. Otherwise, you will not be able to use the GPU. To use GPU with TensorFlow, it is necessary to install the tensorflow-gpu library. If loading with conda, the appropriate CUDA and cuDNN versions will also be displayed during the process.</p><h4>Installing CUDA Toolkit and cuDNN Tool</h4><p>We will need to install the CUDA and cuDNN tool that matches the version of TensorFlow we will be using. I would like to warn you that if you download different versions, you will encounter many errors. In TensorFlow 2.x versions, log or shape errors can be received. I’ve noticed that after multiple installations, tensorflow-gpu works fine with 1.14.0 or 1.15.0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hBH6H6YdDNKBtvy9eglLzg.png" /><figcaption>Available TensorFlow Versions for CUDA [<a href="https://www.tensorflow.org/install/source_windows">Res</a>][4]</figcaption></figure><p>The compilations required for <strong>tensorflow-gpu==1.14.0</strong> show<strong> 7.4</strong> for <strong>cuDNN</strong> and version <strong>10 </strong>for the<strong> CUDA Toolkit</strong>.</p><p>When installing with Conda, you will receive approval for the installation. You can also see the CUDA and cuDNN versions installed while giving this approval. In this way, we will see that we are on the right track.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Ao6d3u_PXwSfD4LTKr36AA.png" /><figcaption>Image by author</figcaption></figure><p>However, the Keras library must be installed in addition to TensorFlow. <strong>Keras</strong> is an open source software library that provides a Python interface for neural networks. Keras acts as an interface for the TensorFlow library.</p><p>📚 <a href="https://g.co/kgs/CRASoC"><strong><em>Deep Learning with Python</em></strong></a>, written by François Chollet, the creator of Keras, is very successful for those who want to work in this field.</p><p>To create a GPU setup environment with Deep Learning, visit the article <a href="https://pub.towardsai.net/creating-a-deep-learning-environment-with-tensorflow-gpu-c16980ed1f67">Creating a Deep Learning Environment with TensorFlow GPU</a>.</p><p>Virtual environments are often used to avoid incorrect installation in the base environment of the machine. In this step, a virtual environment of a specific Python version is set up.</p><pre>conda create -n virtualenv python=3.6</pre><pre>conda activate virtualenv</pre><p>Conda or pip commands are used to load TensorFlow GP. In this step tensorflow gpu will be installed.</p><pre>pip install tensorflow-gpu</pre><p>If no version is specified when installing tensorflow-gpu, the latest version will be installed. If a certain version version is to be installed, it is done by writing the version version.</p><pre>pip install tensorflow-gpu==1.15.0</pre><p>After the TensorFlow GPU is installed, you should run the following line of code for control purposes.</p><pre>import tensorflow as tf<br>tf.test.gpu_device_name()</pre><p>To check the tensorflow gpu version you have installed, the <strong>pip show command.</strong></p><pre>pip show tensorflow-gpu</pre><p>To check the availability of the GPU, the following snippet is run.</p><pre>%tensorflow_version 2.x</pre><pre>import tensorflow as tf</pre><pre>device_name = tf.test.gpu_device_name()</pre><pre>if device_name != ‘/device:GPU:0’:</pre><pre>raise SystemError(‘GPU device not found’)</pre><pre>print(‘Found GPU at: {}’.format(device_name))</pre><p>When using tensorflow 2.4.1 version, tensorflow 2.x version is shown. This case is used for 1.x versions as follows.</p><pre>%tensorflow_version 1.x</pre><pre>import tensorflow as tf</pre><pre>device_name = tf.test.gpu_device_name()</pre><pre>if device_name != ‘/device:GPU:0’:</pre><pre>raise SystemError(‘GPU device not found’)</pre><pre>print(‘Found GPU at: {}’.format(device_name))</pre><p>Computers are likely to have more than one GPU. By default, your machine or your media uses GPU thanks to Google Colab. The other device can be used instead of this GPU used instead. It will work for device / GPU: 1 in the following snippet.</p><pre>import tensorflow as tf<br>tf.device(‘/device:GPU:1’)</pre><p>A parallel GPU usage has been reached. Also I must say that it is possible to set the GPU even on your terminal before going into your notebook.</p><pre>from tensorflow.python.client import device_lib</pre><pre>device_lib.list_local_devices()</pre><p>When considered for Colab Notebook, 4 devices will be offered. These are CPU, GPU, XLA_CPU and XLA_GPU. 4 devices are shown in the list here. 2 of them are a concept excluding CPU and GPU.</p><p>As mentioned in the docs, XLA stands for “accelerated linear algebra”. It’s Tensorflow’s relatively new optimizing compiler that can further speed up your ML models’ GPU operations by combining what used to be multiple CUDA kernels into one (simplifying because this isn’t that important for your question).</p><pre>import tensorflow as tf</pre><pre>try:</pre><pre>tf.device(‘/job:localhost/replica:0/task:0/device:GPU:1’)</pre><pre>except RuntimeError as e:</pre><pre>print(e)</pre><p>If the physical GPU did not exist for device 1, I suggest you try the code below as well. In order to learn the name of the device used, the test gpu will run when it is a GPU.</p><pre>import tensorflow as tf</pre><pre>tf.test.gpu_device_name()</pre><p>Model training is sometimes tested to check the GPU operating speed. Convolutional network is run on certain layers by loading data from the MNIST data set.</p><pre>import tensorflow as tf</pre><pre>mnist = tf.keras.datasets.fashion_mnist</pre><pre>(training_images, training_labels), (test_images, test_labels) = mnist.load_data()</pre><pre>training_images=training_images / 255.0</pre><pre>test_images=test_images / 255.0</pre><pre>model = tf.keras.models.Sequential([</pre><pre>tf.keras.layers.Flatten(),</pre><pre>tf.keras.layers.Dense(128, activation=tf.nn.relu),</pre><pre>tf.keras.layers.Dense(10, activation=tf.nn.softmax)</pre><pre>])</pre><pre>model.compile(optimizer=’adam’, loss=’sparse_categorical_crossentropy’, metrics=[‘accuracy’])</pre><pre>model.fit(training_images, training_labels, epochs=5)</pre><pre>test_loss = model.evaluate(test_images, test_labels)</pre><p>Here, as the number of data increases and the problem becomes more intense, the difference between training will become much wider. Since there is not a very large data set in this example line of code, there are no big differences between CPU and GPU when processing data. However, there will be a significant difference when processing big data.</p><p>The following command is run to control the active TensorFlow version.</p><pre>import tensorflow as tf</pre><pre>sess=tf.Session(config=tf.ConfigProto(log_device_placement=True))</pre><p>Along with TensorFlow, the Keras framework, which has been mentioned frequently recently, TensorFlow is now used as tf.keras. It is the framework that should be used in deep learning environments.</p><pre>pip install keras==2.2.5</pre><h3>Comparison of bandwidth for CPUs and GPUs over time</h3><blockquote>Bandwidth refers to the external bandwidth between a GPU and its associated system. It’s a measure of the data transfer speed across the bus that connects the two (for example, PCIe or Thunderbolt). Bandwidth doesn’t refer to the internal bandwidth of a GPU, which is a measure of the data transfer speed between components within the GPU [7].</blockquote><p>The CPU uses too much memory when a model is being trained during deep learning. Especially, this situation will be encountered when processing large data sets. However, when looking at the GPU, when training the model, while processing with memory called <strong>VRAM</strong>, the remaining memory of the CPU will be allocated to other tasks. Thus, even in complex problems, the process can be completed with few cycles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QNxLs0LakQ9v772vkXiC0Q.png" /><figcaption>Figure 2. GPU vs CPU Performance [<a href="https://www.researchgate.net/publication/270222593_To_Use_or_Not_to_Use_Graphics_Processing_Units_for_Pattern_Matching_Algorithms">Res</a>][2]</figcaption></figure><p>The high-end NVIDIA GPUs have much, much wider buses and higher memory clock rates than any CPU. The maximum memory bandwidth is the maximum rate at which data can be read from or stored into a semiconductor memory by the processor (in GB/s).</p><p>The theoretical maximum memory bandwidth for Intel Core X-Series Processors can be calculated by multiplying the memory frequency (one half since double data rate x 2), multiplied by the number of the bytes of width, and multiplied by the number of the channels supported for the processor.</p><blockquote>For example:<br>For DDR4 2933 the memory supported in some core-x -series is (1466.67 X 2) X 8 (# of bytes of width) X 4 (# of channels) = 93,866.88 MB/s bandwidth, or 94 GB/s [<a href="https://forums.developer.nvidia.com/t/why-gpu-has-large-memory-bandwidth-than-cpu/10294">Res</a>][3].</blockquote><p>A lower-than-expected memory bandwidth may be seen due to many system variables, such as software workloads and system power states.</p><blockquote>High-end NVIDIA GPUs have much wider buses and higher memory clock speeds than any CPU. Considering the Intel processor Core i7 with the highest memory bandwidth, it appears to have a memory bus with a width of 192 bits and a memory speed (effectively) up to 800 MHz. The fastest NVIDIA GPU is GTX 285 [<a href="https://forums.developer.nvidia.com/t/why-gpu-has-large-memory-bandwidth-than-cpu/10294">Res</a>][3].</blockquote><p>🎉 <em>You can also follow me</em> <a href="https://github.com/BuseYaren"><strong><em>GitHub</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCzAODG3wgdKtRov8VvyXvtw"><strong><em>YouTube</em></strong></a><em> and </em><a href="https://twitter.com/BuseYarenTekin"><strong><em>Twitter</em></strong></a><em> account for more content!</em></p><h3>References</h3><p>[1]From Wikipedia, the free encyclopedia, ‘Graphics processing unit’, <a href="https://en.wikipedia.org/wiki/Graphics_processing_unit">https://en.wikipedia.org/wiki/Graphics_processing_unit</a>.</p><p>[2]<a href="https://www.intel.com/content/www/us/en/products/docs/processors/what-is-a-gpu.html">https://www.intel.com/content/www/us/en/products/docs/processors/what-is-a-gpu.html</a>.</p><p>[3]<a href="https://searchvirtualdesktop.techtarget.com/definition/GPU-graphics-processing-unit">https://searchvirtualdesktop.techtarget.com/definition/GPU-graphics-processing-unit</a>.</p><p>[4] From Wikipedia, the free encyclopedia, <a href="https://en.wikipedia.org/wiki/Central_processing_unit">https://en.wikipedia.org/wiki/Central_processing_unit</a>.</p><p>[5]<a href="https://blogs.nvidia.com/blog/2020/05/20/whats-a-dpu-data-processing-unit/">https://blogs.nvidia.com/blog/2020/05/20/whats-a-dpu-data-processing-unit/</a>.</p><p>[6]<a href="https://blogs.nvidia.com/blog/2009/12/16/whats-the-difference-between-a-cpu-and-a-gpu/">https://blogs.nvidia.com/blog/2009/12/16/whats-the-difference-between-a-cpu-and-a-gpu/</a>.</p><p>[7]<a href="https://developer.apple.com/documentation/metal/gpu_selection_in_macos/understanding_gpu_bandwidth">https://developer.apple.com/documentation/metal/gpu_selection_in_macos/understanding_gpu_bandwidth</a>.</p><p>[8]<a href="https://en.wikipedia.org/wiki/PyTorch">https://en.wikipedia.org/wiki/PyTorch</a>.</p><p>[9]From Wikipedia, the free encyclopedia, <a href="https://en.wikipedia.org/wiki/Memory_bandwidth">https://en.wikipedia.org/wiki/Memory_bandwidth</a>.</p><p>[10] From Wikipedia, the free encyclopedia, <a href="https://en.wikipedia.org/wiki/TensorFlow">https://en.wikipedia.org/wiki/TensorFlow</a></p><p>[11] From Wikipedia, the free encyclopedia, <a href="https://en.wikipedia.org/wiki/Keras">https://en.wikipedia.org/wiki/Keras</a></p><h3>Resources</h3><p>[1]<a href="https://lambdalabs.com/blog/choosing-a-gpu-for-deep-learning/">https://lambdalabs.com/blog/choosing-a-gpu-for-deep-learning/</a></p><p>[2]D. R. V. L. B. Thambawita, Roshan Ragel and Dhammika Elkaduwe, <a href="https://www.researchgate.net/publication/270222593_To_Use_or_Not_to_Use_Graphics_Processing_Units_for_Pattern_Matching_Algorithms">To Use or Not to Use: Graphics Processing Units (GPUs) for Pattern Matching Algorithms</a>, 2015.</p><p>[3]<a href="https://forums.developer.nvidia.com/t/why-gpu-has-large-memory-bandwidth-than-cpu/10294">https://forums.developer.nvidia.com/t/why-gpu-has-large-memory-bandwidth-than-cpu/10294</a>.</p><p>[4]<a href="https://www.tensorflow.org/install/source_windows">https://www.tensorflow.org/install/source_windows</a>.</p><p>[5] François Chollet, Deep Learning with Python, <a href="https://g.co/kgs/CRASoC">https://g.co/kgs/CRASoC</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94dd4aeb45f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hatasız PyTorch GPU Kurulumu]]></title>
            <link>https://buseyaren.medium.com/hatas%C4%B1z-pytorch-gpu-kurulumu-20fa44a2360b?source=rss-beebfd895d70------2</link>
            <guid isPermaLink="false">https://medium.com/p/20fa44a2360b</guid>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[derin-ogrenme]]></category>
            <category><![CDATA[cudnn]]></category>
            <category><![CDATA[cuda]]></category>
            <category><![CDATA[pytorch]]></category>
            <dc:creator><![CDATA[Buse Yaren]]></dc:creator>
            <pubDate>Sun, 08 May 2022 09:45:32 GMT</pubDate>
            <atom:updated>2022-05-08T09:45:32.909Z</atom:updated>
            <content:encoded><![CDATA[<p>Hepinize merhabalar, uzun bir aradan sonra yeniden yapay zeka dünyası için blog yazmaya başladım. Daha önceki blog yazımda derin öğrenme için en sık kullanılan kütüphanelerden birisi olan <a href="https://medium.com/operations-management-t%C3%BCrkiye/tensorflow-gpu-ile-derin-%C3%B6%C4%9Frenme-ortam%C4%B1-olu%C5%9Fturma-d22ecd434f79">TensorFlow kurulumunu</a> incelemiştik. Bu yazıda ise çok daha az zahmetli olan PyTorch kütüphanesini anlatıyor olacağım👩🏻‍💻</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*J13kfxpfhBnjCDFD.png" /><figcaption>Kaynak <a href="https://faun.pub/importance-of-pytorch-to-develop-deep-learning-models-f01ed0d9de14">[1]</a></figcaption></figure><p>🍍 PyTorch’un orijinal web sayfasına erişmek için;</p><p><a href="https://pytorch.org/get-started/locally/">Get Started</a></p><h3>🪐Adım 1: Var Olan Grafik Kartın Kontrolü</h3><p>Makinenizdeki var olan grafik kartı bilmiyorsanız, endişe etmeyin! Aşağıdaki adımlarla grafik kartınızın ismini öğrenebilirsiniz.</p><pre>dxdiag</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*L_zutq6ew9Z-xCpNjWiZmw.png" /></figure><p>Dxdiag komutunu çalıştırdıktan sonra aşağıdaki gibi bir çıktı ile karşılaşacaksınız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*bbYKnVzxV4925DfOVwkf9A.png" /></figure><p>Evet’e bastıktan sonra ilerleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*eANBYQkiLUZf8jaYsDVgUg.png" /></figure><p>Yukarıda kendi bilgisayarımda kullandığım grafik kartı görüyorsunuz. Yapay sinir ağı eğitimleri için iyi bir grafik kart almak şart olduğu için RTX 3050 satın aldım. Grafik kartınızı kontrol ettikten sonra NVIDIA’ nın web sitesinden <strong>compute capability </strong>yani hesaplama kapasitesini de inceleyebilirsiniz.</p><p>Aynı zamanda, bilgisayarımın birkaç özelliğini ve hangi araç kitini kurmam gerektiğini sizlerle paylaştım. Sizler de kendi bilgisayarınızın özelliklerine göre işlem yapabilirsiniz.</p><p>⚙️<strong>OS:</strong> Windows 10 Pro<br>⚙️<strong>CUDA Toolkit:</strong> 11.3<br>⚙️<strong>cuDNN:</strong> 8.0<br>⚙️<strong>PyTorch: </strong>1.10.2</p><p>✏️<strong><em>NOT: Eğer grafik kartınıza uygun cuda toolkit ve cudnn’i bilmiyorsanız Adım 3&#39;e inerek uygun versiyonları bulabilirsiniz.</em></strong></p><h3>🪐Adım 2: Grafik İşlemcisinin Kontrolü</h3><p><a href="https://developer.nvidia.com/cuda-gpus#collapse4">https://developer.nvidia.com/cuda-gpus#collapse4</a> adresinden makinenize uygun işlemcinizi belirleyin. Örneğin aşağıdaki görselde aktif çalıştığım makinenin işlemcisini kontrol ederek işlem kapasitesini de öğrenmiş oluyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vsdDjFCVK8DTdZn_4VZ_KA.png" /></figure><p>Ardından Compute Capability yazan linke tıklayarak aşağıdan uygun grafik kartınızı seçiyorsunuz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*tmWYhJh0p1zn4mxPeJhttQ.png" /></figure><p>🧮Örneğin benim GeForce RTX 3050 olduğu için kapasitesinin 8.6 olduğunu görüyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*8Vlco2CtqC6h3qR7GAPToA.png" /></figure><h3>🪐Adım 3: CUDA Toolkit ve cuDNN Aracı Yükleme</h3><p>Kullandığım bilgisayar minimum 11 versiyonunu uygun bulduğu için ben 11.3 yükleyeceğim. Ancak sizin grafik kartınıza uygun 10.2 ise onu da kurabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*mqu2we7WWzvtRjQWfaDI7Q.png" /></figure><p>Run this command yazan komutu Adım 4&#39;te kuracağız. Ancak bunun için öncelikle bir sanal ortam oluşturmayı unutmayalım!</p><h3>🪐<strong>Adım 4: Sanal Ortam (Virtualenv) Oluşturma</strong></h3><p>Sanal ortam oluştururken yine her zamanki gibi Conda Prompt kullanacağım için bilgisayarımıza Anaconda’yı yüklüyoruz.</p><p><a href="https://www.anaconda.com/">Advance AI with Open Source | Anaconda</a></p><p>Web sitesine girdikten sonra hemen Download linkine basalım ve kurulumunu adım adım sağlayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*Lnh5m612JuOPYy6lpvfmtw.png" /></figure><p>Anaconda Navigator yüklendikten sonra şekilde görüldüğü gibi Environments sekmesinden base yani temel root görüntülenecektir. Bilgisayarın temeline zarar vermemek için yapacağım her işlemde bir sanal ortam kuruyorum, çok faydalı oluyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*soGmX7XcJc73ZIZH7psXvA.png" /></figure><p>Pytorchgpu oluşturmak için aşağıdaki gibi <strong>Create 👉🏻 New Environment 👉🏻 Python Sürümü Seç 👉🏻 Create </strong>adımları ile ilerleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*4YMSwK0jnUgXvtUMaOIjpA.png" /></figure><p>Sanal ortam kurulduktan sonra <strong>prompt </strong>üzerinden aktifleştirmeyi unutmayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*9BSlDohzaOCZAHCJqYknGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*DBRiC2W5OP_UQN1aJljTgg.png" /></figure><p>Şekilde görüldüğü üzere <strong>conda activate environmentname </strong>biçiminde oluşturduğumuz sanal ortamın içerisine dahil olabildik.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*eWwh5GmKV6pot2PNtUgTUw.png" /></figure><h3>🪐Adım 4: Cuda, cuDNN ve Torch Kurulumu</h3><p>Ardından aşağıdaki kod ile PyTorch kurulumunu yapacağız.</p><pre>conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*3TZQ023V577rPp08GUKOfQ.png" /></figure><p>Kurulum esnasında Conda’ nın en sevdiğim yönlerinden birisi kurulacak versiyonlar için sizden onay istemesi ve göstermesidir. Bu adımda ‘y’ (yes) diyerek ilerleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*DPCUULzLn6LUbCKnyGou6A.png" /></figure><h3>🪐Adım 5: Jupyter Notebook Yüklenmesi</h3><p>Jupyter Notebook ile çalışacağımız için aşağıdaki komut ile yüklemeyi sağlayalım.</p><pre>pip install jupyter notebook</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Et6z8vLJFmN3NnDm4GWTw.png" /></figure><h3>🪐Adım 6: Conda Gpu Kontrolü</h3><p>Kurduğunuz PyTorch’ un kontrolünü sağlamak isterseniz sırasıyla komutları yazabilirsiniz.</p><pre>python<br>import torch</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*hRzyGQoKc8GAQiRu2OE0Cg.png" /></figure><h3>🪐Adım 7: Jupyter Notebook ile Kodlamaya Başlanması</h3><p>Kurduğumuz notebook için aşağıdaki gibi sanal ortam içinde çalıştırma yapalım ve Jupyter’ in açılmasını sağlayalım.</p><pre>jupyter notebook</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gdpO0-rBxTMdoP31-nziZg.png" /></figure><h3>🪐Adım 8: Cuda Toolkit ve cuDNN ile Uygun Kurulumunun Yapıldığının Denetlenmesi</h3><p>Sıfırdan bir Python3 notebook dosyası oluşturarak aşağıdaki komutları teker teker deneyelim ve GPU’ nun kullanılabilir olduğunu denetlemeyi unutmayalım!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*gvOwmg5FGepbxqLHarPYuA.png" /></figure><pre># setting device on GPU if available, else CPU<br>#device = torch.device(‘cuda’ if torch.cuda.is_available() else ‘cpu’)<br>device = torch.device(“cuda”)<br>print(‘Using device:’, device)<br>print()</pre><pre>#Additional Info when using cuda<br>if device.type == ‘cuda’:<br> print(torch.cuda.get_device_name(0))<br> print(‘Memory Usage:’)<br> print(‘Allocated:’, round(torch.cuda.memory_allocated(0)/1024**3,1), ‘GB’)<br> print(‘Cached: ‘, round(torch.cuda.memory_reserved(0)/1024**3,1), ‘GB’)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*PC1GmtmBuxYqDQ5uXrtrqQ.png" /></figure><pre>if torch.cuda.is_available():<br>    device=torch.device(&quot;cuda:0&quot;)<br>    print(&quot;Training on GPU... Ready for HyperJump...&quot;)<br>else:<br>    device = torch.device(&quot;cpu&quot;)<br>    print(&quot;Training on CPU... May the force be with you...&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*nPCGYFMYissP1Ek2xpY4gA.png" /></figure><pre>torch.cuda.is_available()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*qDScuXSaTruoEoWU6RJtHg.png" /></figure><p>🔮Tüm bu aşamalardan sonra derin öğrenme ortamınız sorunsuz bir şekilde çalışacaktır! Sağlıklı ve güzel günler diliyorum.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o6nV9IUiNn1LCjSak%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fteamcoco-conan-obrien-mission-accomplished-3o6nV9IUiNn1LCjSak&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2F3o6nV9IUiNn1LCjSak%2Fgiphy.gif%3Fcid%3D790b761151af4d059a2f45e66806bf0a97de513ba948dcdb%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fb39885224283113b870d676efe3f0f/href">https://medium.com/media/1fb39885224283113b870d676efe3f0f/href</a></iframe><p>👑<strong>Günün Kitap Önerisi:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*LoOiGMst84TOkQgCfETU-g.png" /></figure><p>🌚Ücretsiz indirme bağlantısı: <a href="https://github.com/borninfreedom/DeepLearning/blob/master/Books/Deep-Learning-with-PyTorch.pdf">https://github.com/borninfreedom/DeepLearning/blob/master/Books/Deep-Learning-with-PyTorch.pdf</a></p><p>🎉 <em>Daha fazla içerik için beni</em> <a href="https://github.com/BuseYaren"><strong><em>GitHub</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCzAODG3wgdKtRov8VvyXvtw"><strong><em>YouTube</em></strong></a><em> ve </em><a href="https://twitter.com/BuseYarenTekin"><strong><em>Twitter</em></strong></a><em> hesaplarında takip edebilirsiniz.</em></p><h3>Kaynaklar</h3><p>1- <a href="https://faun.pub/importance-of-pytorch-to-develop-deep-learning-models-f01ed0d9de14">https://faun.pub/importance-of-pytorch-to-develop-deep-learning-models-f01ed0d9de14</a></p><p>2- Deep Learning with PyTorch, Manning Publishing, Eli Stevens, Luca Antiga.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20fa44a2360b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[U-Net Image Segmentation with Convolutional Networks]]></title>
            <link>https://pub.towardsai.net/u-net-image-segmentation-with-convolutional-networks-90809950e0d3?source=rss-beebfd895d70------2</link>
            <guid isPermaLink="false">https://medium.com/p/90809950e0d3</guid>
            <category><![CDATA[semantic-segmentation]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[unet]]></category>
            <category><![CDATA[cnn-model]]></category>
            <category><![CDATA[segmentation]]></category>
            <dc:creator><![CDATA[Buse Yaren]]></dc:creator>
            <pubDate>Mon, 27 Sep 2021 14:21:46 GMT</pubDate>
            <atom:updated>2021-09-27T14:21:46.977Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*BbyzsDO3kMJmhnOy.png" /></figure><p>In our age, semantic segmentation on image data is frequently used for computer vision. U-Net is a backbone network that contains convolutional neural networks for masking objects.</p><p>🧶<strong>U-Net</strong> takes its name from its architecture similar to the letter U as seen in the figure. The input images are obtained as a segmented output map at the output.</p><p>You can access the basic level information and working architecture of the U-Net network in the article <a href="https://pub.towardsai.net/image-segmentation-with-u-net-da8cc1cbeaeb">Image Segmentation with U-Net</a>. This article describes the step-by-step coding of the U-Net in the Python programming language.</p><h4>Step 1: Obtaining the dataset</h4><p>In this step, if your dataset will be pulled from an existing code, you can load it from the file as follows. If your data set is in the active folder you are working in, you can work by loading the data from the file. If you are going to work as in the following line of code, the data needs to go through a preparation phase while it is being loaded.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/98cb0acaf1fab157bb6dc8ae2606fa53/href">https://medium.com/media/98cb0acaf1fab157bb6dc8ae2606fa53/href</a></iframe><p>The codes of the Python file we imported the module are given below. The variable r here makes a request to the address where the data set will be downloaded. In order to download the data from the download_dataset file, you must type the link you want to download instead of the default domain name requested.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/af323ff77535f45e2ff8c1d6163ad118/href">https://medium.com/media/af323ff77535f45e2ff8c1d6163ad118/href</a></iframe><p>The libraries used throughout the study are given below. Libraries should be installed in this environment with the<strong><em> * pip install -r requirements.txt *</em></strong> command.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f2b5cc971bd559fdb0b58ce6e7ecb434/href">https://medium.com/media/f2b5cc971bd559fdb0b58ce6e7ecb434/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FfBSl40DFCWW8N6PTGf%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FHallmarkChannel-season-three-chesapeake-shores-chessies-fBSl40DFCWW8N6PTGf&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2FfBSl40DFCWW8N6PTGf%2Fgiphy.gif%3Fcid%3D790b7611aeff9c2baae9dfed8c77132fd80361b38f883abf%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/deff34e4403655013dcef56819cf4153/href">https://medium.com/media/deff34e4403655013dcef56819cf4153/href</a></iframe><p>📣 <strong>ATTENTION!</strong><br>The Python codes of the download_dataset file should be located in the Python folder to be actively worked. Thus, the data set can be downloaded from this file later on. The next step is to prepare the data.</p><h4><strong>Step 2: Preparing the data</strong></h4><p>In this step, the images imported into the dataset are reduced to 512 x 512. Thus, all the data used in the study were brought to a uniform data size.</p><p>🪐As is known, the size reduction in height and width applied throughout the convolutional neural network model, namely the pooling layer — is possible to combine with different approaches such as maximum, mean or median, and is implemented in the second half of the code. Thanks to these layers, it is aimed to increase the resolution of the output. High resolution features and sampled output are combined throughout the model for localization. A sequential convolution layer then aims to create a more precise output based on this information.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c07ca2c04194e656e2a9224c8f256a06/href">https://medium.com/media/c07ca2c04194e656e2a9224c8f256a06/href</a></iframe><p>You can find the entire<strong><em> images_prepare</em></strong> module imported in this line of code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/98ee537a8e515a06c63c7eafa9a8fbaf/href">https://medium.com/media/98ee537a8e515a06c63c7eafa9a8fbaf/href</a></iframe><h4>Step 3: Obtaining the masks</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a675ba72542b80661f86cb44aa94b332/href">https://medium.com/media/a675ba72542b80661f86cb44aa94b332/href</a></iframe><p>The masks_prepare file mentioned above has been saved by taking the following code script. In this step, firstly, the resized data is sent to the function as an argument using the <strong><em>masks_prepare</em></strong> function.</p><p>🧮Images are converted to 1 size and assigned to NumPy array. The conversion of image values to array is essential for processing pixel values. Masks extracted from images are saved in a folder. In short, according to other algorithms, U-Net works not with a label reference, but with mathematically inferred masks.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/25d56996d4a924511ce36927d3af33f8/href">https://medium.com/media/25d56996d4a924511ce36927d3af33f8/href</a></iframe><h4>Step 4: Scaling and transforming data</h4><p>In this step the data is scaled to Float32 with X and Y values called images and masks. In this step, the array has been modified for the NumPy array, as I will be dealing with 105 in the training and test set. You can change this according to your own data. You can control a random image data with<strong><em> plt.imshow.</em></strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d63e3c9a9dbb6bc4bf1a76fd192c7582/href">https://medium.com/media/d63e3c9a9dbb6bc4bf1a76fd192c7582/href</a></iframe><h4>Step 5: Creating the U-Net model</h4><p>In this step, the UNET function created in the folder is used. The necessary layers for the model, CONV2D, MaxPooling2D, BatchNormalization, Conv2DTranspose, Dropout, are imported.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/91466c91cf073ca04a648d4cccba5d25/href">https://medium.com/media/91466c91cf073ca04a648d4cccba5d25/href</a></iframe><p>Creating a function for the U-Net model pulled from the <strong><em>model.py</em></strong> file in the working folder will speed up the work. For the next model, the U-Net model should be drawn as above.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e9ec47a449a05a22a89a7de5c8710ce/href">https://medium.com/media/2e9ec47a449a05a22a89a7de5c8710ce/href</a></iframe><p><strong><em>Model.summary( )</em></strong> is used to visualize the layers in the code. When the layers are summarized, the output is as follows. There are not as few layers as seen in the image, I only added the first layers so that they do not take up space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*STdX6G7nFmofAipU.png" /></figure><h4>Step 6: Compile and fit the U-Net model</h4><p>Two separate functions are used at this stage.</p><ol><li><strong>model.compile: </strong>The loss function defines the optimizer and the metrics. You need a compiled model to train (because training uses loss function and optimizer). But it is not necessary to compile a model for prediction.</li><li><strong>model.fit: </strong>Trains the model for a specified number of epochs. Since the epochs parameter is given here as 100, the training will be completed in 100 steps. Since the metric chosen here is <em>[“accuracy”]</em>, the accuracy values will be followed step by step during the training.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4317ef0c67eef8f1f05a996e8a1bc531/href">https://medium.com/media/4317ef0c67eef8f1f05a996e8a1bc531/href</a></iframe><p>As stated in the code, the metrics selected during compilation, the loss function and the optimizer can be selected completely depending on the person. You can change this and see the accuracy change visually. As a result, when the model training is started, period changes are observed as follows. If you’ve made it this far,<strong> CONGRATULATIONS!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*28YAwPUvrvt3MjTH.png" /><figcaption><strong>Observing the results of the number of epochs</strong></figcaption></figure><h4>Step 7: The prediction phase of the model</h4><p>Once the training is over, the next step is the guessing step. As seen here, the data we have separated as x_test is assigned to a variable with the predict function and used. You can see the prediction result by printing the <strong>predict </strong>value to the screen.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/76c96f51fbd9beeb3e50c15bac38f02f/href">https://medium.com/media/76c96f51fbd9beeb3e50c15bac38f02f/href</a></iframe><p>📑 <em>Academic article used in the study;</em></p><p><a href="https://arxiv.org/pdf/1505.04597.pdf">U-Net: Convolutional Networks for Biomedical Image Segmentation</a></p><p>👁‍🗨<em> The main source of the codes used in the study;</em></p><p><a href="https://github.com/SerdarHelli/Segmentation-of-Teeth-in-Panoramic-X-ray-Image-Using-U-Net">GitHub - SerdarHelli/Segmentation-of-Teeth-in-Panoramic-X-ray-Image-Using-U-Net: The aim of this study is automatic semantic segmentation in one-shot panoramic x-ray image by using deep learning method with U-Net Model and binary image analysis in order to provide diagnostic information for the management of dental disorders, diseases, and conditions.</a></p><h3>REFERENCES</h3><ul><li>“Semantic Segmentation”, Tingwu Wang, Machine Learning Group, University of Toronto.</li></ul><ul><li><a href="https://keras.io/api/models/model_training_apis/">Keras documentation: Model training APIs</a></li><li><a href="https://stackoverflow.com/questions/47995324/does-model-compile-initialize-all-the-weights-and-biases-in-keras-tensorflow">Does model.compile() initialize all the weights and biases in Keras (tensorflow backend)?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90809950e0d3" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/u-net-image-segmentation-with-convolutional-networks-90809950e0d3">U-Net Image Segmentation with Convolutional Networks</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evrişimli Ağlar ile U-Net Görüntü Segmentasyonu]]></title>
            <link>https://medium.com/kurumsal-gelisim/evri%C5%9Fimli-a%C4%9Flar-ile-u-net-g%C3%B6r%C3%BCnt%C3%BC-segmentasyonu-f8d02b1c3170?source=rss-beebfd895d70------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8d02b1c3170</guid>
            <category><![CDATA[segmentasyon]]></category>
            <category><![CDATA[unet]]></category>
            <category><![CDATA[cnn-model]]></category>
            <category><![CDATA[semantic-segmentation]]></category>
            <category><![CDATA[segmentation]]></category>
            <dc:creator><![CDATA[Buse Yaren]]></dc:creator>
            <pubDate>Mon, 27 Sep 2021 13:03:35 GMT</pubDate>
            <atom:updated>2021-10-11T21:09:07.723Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*9ECR9uaBNUgDdMrcxwx08w.png" /></figure><p>Günümüzde, bilgisayarlı görü alanında görüntü verileri üzerinde semantik segmentasyon sıkça kullanılmaktadır. U-Net, nesnelerin maskelenmesi için içerisinde evrişimli sinir ağlarını barındıran bir omurga ağıdır.</p><p>🧶<strong>U-Net</strong>, adını şekilde görüldüğü gibi U harfine benzer mimarisinden almaktadır. Giriş görüntüleri, çıkışta bölümlere ayrılmış bir çıkış haritası olarak elde edilir.</p><p>U-Net ağının temel seviye bilgileri ve çalışma mimarisine <a href="https://medium.com/operations-management-t%C3%BCrkiye/u-net-ile-g%C3%B6r%C3%BCnt%C3%BC-segmentasyonu-b3c1451d886d">U-Net ile Görüntü Segmentasyonu</a> yazısından ulaşabilirsiniz. Bu yazıda, Python programlama dilinde U-Net ağının adım adım kodlaması anlatılmaktadır.</p><p>🚀 U-Net ile görüntü segmentasyonu videosu için lütfen <a href="https://www.youtube.com/watch?v=9B3w16yy_Vg&amp;t=455s">tıklayınız</a>.</p><h4><strong>Adım 1: Veri setinin elde edilmesi</strong></h4><p>Bu adımda, eğer veri setiniz var olan bir kod içerisinden çekilecek ise aşağıdaki gibi dosya içerisinden yükleme yapabilirsiniz. Eğer veri setiniz çalıştığınız aktif klasörde ise dosya içerisinden veriyi yükleyerek çalışabilirsiniz. Aşağıdaki kod satırındaki gibi çalışacaksanız, verinin yüklenirken bir hazırlık aşamasından geçirilmesi gerekmektedir.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a46971754679296c7e7745958575a6b9/href">https://medium.com/media/a46971754679296c7e7745958575a6b9/href</a></iframe><p>Modülü içeri aktardığımız Python dosyasının kodlarına aşağıda yer verilmektedir. Buradaki r değişkeni veri setinin indirileceği adrese istek yapmaktadır. Download_dataset dosyasından verilerin indirilmesi için istek yapılan varsayılan olarak gelen alan adı yerine indirmek istediğiniz bağlantıyı yazmalısınız.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f33933edb08b7071e38a3a9bb3973e6b/href">https://medium.com/media/f33933edb08b7071e38a3a9bb3973e6b/href</a></iframe><p>Çalışma boyunca kullanılan kütüphanelere aşağıda yer verilmiştir. <br><strong><em>* pip install -r requirements.txt * </em></strong>komutu ile bu ortama kütüphaneler yüklenmelidir.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0cbedde110c267cf71192eb499e857c/href">https://medium.com/media/f0cbedde110c267cf71192eb499e857c/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FfBSl40DFCWW8N6PTGf%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FHallmarkChannel-season-three-chesapeake-shores-chessies-fBSl40DFCWW8N6PTGf&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2FfBSl40DFCWW8N6PTGf%2Fgiphy.gif%3Fcid%3D790b7611a8dd0944d021fa22dfbbb748db106884fe2d2b73%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/b2def6acdcf7ce28857e9712e424d760/href">https://medium.com/media/b2def6acdcf7ce28857e9712e424d760/href</a></iframe><h4>📣 <strong>DİKKAT !</strong></h4><p>Download_dataset dosyasına ait Python kodları, aktif çalışılacak olan Python klasöründe yer almalıdır. Böylelikle, daha sonra bu dosya içerisinden veri setinin indirilmesi sağlanabilir. Bir sonraki adım ise verilerin hazırlanması aşamasıdır.</p><h4>Adım 2: Verilerin hazırlanması</h4><p>Bu adımda, veri kümesine alınan görüntüler 512 x 512 boyutuna indirgenir. Böylelikle, çalışmada kullanılan tüm veriler tek tip veri boyutuna getirilmiştir.</p><p>🪐Bilindiği gibi, evrişimli sinir ağı modeli boyunca uygulanılan yükseklik ve genişlikte boyut küçültme işlemi yani havuzlama katmanı — maksimum, ortalama veya medyan gibi farklı yaklaşımlarla birleştirmek mümkündür ve kodun ikinci yarısında uygulanmaktadır. Bu katmanlar sayesinde, çıktının çözünürlüğünün arttırılması hedeflenmiştir. Yüksek çözünürlüklü özellikler ve örneklenmiş çıktı, yerelleştirme için model boyunca birleştirilir. Sıralı bir evrişim katmanı daha sonra bu bilgilere dayanarak daha kesin bir çıktı oluşturmayı amaçlar.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3234a38a7f2c05e03ff71e4ce0448355/href">https://medium.com/media/3234a38a7f2c05e03ff71e4ce0448355/href</a></iframe><p>Bu kod satırında içeriye aktarılan <strong><em>images_prepare</em></strong> modülünün tamamına aşağıdan ulaşabilirsiniz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8dd03fcf399da0041e934fa37edc6e4d/href">https://medium.com/media/8dd03fcf399da0041e934fa37edc6e4d/href</a></iframe><h4>Adım 3: Maskelerin elde edilmesi</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6104ff039cc63167f416a2ce4fe8e4db/href">https://medium.com/media/6104ff039cc63167f416a2ce4fe8e4db/href</a></iframe><p>Yukarıda bahsi geçen <strong><em>masks_prepare </em></strong>dosyası aşağıdaki kod parçacığı alınarak kaydedilmiştir. Bu adımda ilk olarak <strong><em>pre_masks</em></strong> fonksiyonu kullanılarak yeniden boyutlandırılmış veriler fonksiyona argüman olarak gönderilmiştir.</p><p>🧮 Görüntüler, 1 boyuta dönüştürülerek NumPy dizisine atanmıştır. Görüntü değerlerinin diziye dönüştürülme aşaması, piksel değerleri ile işlem yapılması için şarttır. Görüntülerden çıkarım yapılan maskeler bir klasöre kaydedilmektedir. Kısacası, U-Net diğer algoritmalara göre bir etiket referansı ile değil matematiksel çıkarım yapılan maskeler ile çalışmaktadır.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1568749f7c024aff27eb88f4bbb27163/href">https://medium.com/media/1568749f7c024aff27eb88f4bbb27163/href</a></iframe><h4>Adım 4: Verinin ölçeklendirilmesi ve dönüşümü</h4><p>Bu adımda veriler <strong>images </strong>ve <strong>masks </strong>olarak adlandırılan X ve Y değerleri Float32 olarak ölçeklendirilir. Bu adımda, eğitim ve test kümesinde 105 adeti ile işlem yapacağım için NumPy dizisi için dizi üzerinde değişiklik yapılmıştır. Bunu kendi verinize göre değiştirebilirsiniz.<strong> <em>plt.imshow</em></strong> ile rastgele çektiğiniz bir görüntü verisinin kontrolünü yapabilirsiniz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b2ab37ad671025572cc86b0f6ee69c0c/href">https://medium.com/media/b2ab37ad671025572cc86b0f6ee69c0c/href</a></iframe><h4>Adım 5: U-Net modelinin oluşturulması</h4><p>Bu adımda, klasörde oluşturulan UNET fonksiyonu kullanılmıştır. Model için gerekli katmanlar olan CONV2D, MaxPooling2D, BatchNormalization, Conv2DTranspose, Dropout katmanları içeriye aktarılmıştır.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/42381cfdeb70069188ccb92cc039c317/href">https://medium.com/media/42381cfdeb70069188ccb92cc039c317/href</a></iframe><p>Çalışma klasöründe yer alan model.py dosyasından çekilen U-Net modeli için bir fonksiyon oluşturulması çalışma açısından işi hızlandıracaktır. Bir sonraki model için yine yukarıdaki gibi U-Net modeli çekilmelidir.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d0564ee8399c839fa21a3ed82c431ea/href">https://medium.com/media/4d0564ee8399c839fa21a3ed82c431ea/href</a></iframe><p>Kod içerisinde bulunan katmanların görselleştirilmesi için ise model.summary() kullanılmıştır. Katmanlar özetlendiğinde aşağıdaki gibi çıktı alınmaktadır. Görselde görüldüğü kadar az katman bulunmuyor, yalnızca ilk katmanları yer kaplamaması adına ekledim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*2cswqh26ONPu-fk-tMOPFA.png" /><figcaption>Model özeti</figcaption></figure><h4>Adım 6: U-Net modelinin compile ve fit edilmesi</h4><p>Bu aşamada iki ayrı fonksiyon kullanılmaktadır.</p><ol><li><strong>model.compile: </strong>Kayıp fonksiyonu, optimize ediciyi ve metrikleri tanımlar. Eğitmek için derlenmiş bir modele ihtiyacınız vardır (çünkü eğitim, kayıp fonksiyonu ve optimize ediciyi kullanır). Ancak tahmin için bir model derlemek gerekli değildir.</li><li><strong>model.fit: </strong>Modeli belirli sayıda dönem için eğitir. Burada <em>epochs </em>parametresi 100 verildiği için 100 adımda eğitim tamamlanacaktır. Burada seçilen metrik <em>[“accuracy”] </em>olarak verildiği için eğitim sırasında adım adım doğruluk değerleri izlenecektir.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/88e4c4fa7010748e3609a40b4febed01/href">https://medium.com/media/88e4c4fa7010748e3609a40b4febed01/href</a></iframe><p>Kodda da belirtildiği gibi derleme sırasında seçilen metrikler, kayıp fonksiyonu ve optimize edici tamamen kişiye bağlı olarak seçilebilir. Bunu değiştirip doğruluk değişimini gözle görebilirsiniz. Sonuç olarak model eğitime başlandığında aşağıdaki gibi dönem değişimleri gözlemlenmektedir. Bu aşamaya kadar geldiyseniz, <strong>TEBRİKLER!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*K7TZDX3bRvwzKnt0wX57hg.png" /><figcaption>Dönem sayısı sonuçlarının gözlemlenmesi</figcaption></figure><h4>Adım 7: Modelin tahmin aşaması</h4><p>Eğitim bittiğinde ise bir sonraki adım tahmin adımıdır. Burada görüldüğü gibi öncelikle x_test olarak ayırdığımız veriler predict fonksiyonu ile bir değişkene atanır ve kullanılır. Tahmin sonucunu <strong>predict </strong>değerini ekrana yazdırarak görebilirsiniz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e1ded0d698201b85c6507aa90d4f170/href">https://medium.com/media/3e1ded0d698201b85c6507aa90d4f170/href</a></iframe><p>📑 <strong><em>Çalışmada kullanılan akademik makale;</em></strong></p><p><a href="https://arxiv.org/pdf/1505.04597.pdf">U-Net: Convolutional Networks for Biomedical Image Segmentation</a></p><p>👁‍🗨 <strong><em>Çalışmada kullanılan kodların ana kaynağı;</em></strong></p><p><a href="https://github.com/SerdarHelli/Segmentation-of-Teeth-in-Panoramic-X-ray-Image-Using-U-Net">GitHub - SerdarHelli/Segmentation-of-Teeth-in-Panoramic-X-ray-Image-Using-U-Net: The aim of this study is automatic semantic segmentation in one-shot panoramic x-ray image by using deep learning method with U-Net Model and binary image analysis in order to provide diagnostic information for the management of dental disorders, diseases, and conditions.</a></p><h4>REFERANSLAR</h4><ul><li>“Semantic Segmentation”, Tingwu Wang, Machine Learning Group, University of Toronto.</li></ul><ul><li><a href="https://keras.io/api/models/model_training_apis/">Keras documentation: Model training APIs</a></li><li><a href="https://stackoverflow.com/questions/47995324/does-model-compile-initialize-all-the-weights-and-biases-in-keras-tensorflow">Does model.compile() initialize all the weights and biases in Keras (tensorflow backend)?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8d02b1c3170" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kurumsal-gelisim/evri%C5%9Fimli-a%C4%9Flar-ile-u-net-g%C3%B6r%C3%BCnt%C3%BC-segmentasyonu-f8d02b1c3170">Evrişimli Ağlar ile U-Net Görüntü Segmentasyonu</a> was originally published in <a href="https://medium.com/kurumsal-gelisim">Kurumsal Gelişim Enstitüsü</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to TeX, LaTeX, and OverLeaf]]></title>
            <link>https://pub.towardsai.net/introduction-to-tex-latex-and-overleaf-f71d080f47ea?source=rss-beebfd895d70------2</link>
            <guid isPermaLink="false">https://medium.com/p/f71d080f47ea</guid>
            <category><![CDATA[overleaf]]></category>
            <category><![CDATA[latex-template]]></category>
            <category><![CDATA[springer]]></category>
            <category><![CDATA[latex]]></category>
            <category><![CDATA[elsevier]]></category>
            <dc:creator><![CDATA[Buse Yaren]]></dc:creator>
            <pubDate>Thu, 19 Aug 2021 09:05:52 GMT</pubDate>
            <atom:updated>2021-08-19T09:05:52.996Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RCVCajNmQnfyvj1E" /><figcaption>Photo by <a href="https://unsplash.com/@jeshoots?utm_source=medium&amp;utm_medium=referral">JESHOOTS.COM</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Greetings from the academic world’s window to all of you🍂<br>When it comes to scholarly articles/publications, our minds surely begin to develop question marks. As a M.Sc. student, I started this job by wanting to present a successful concrete output in both my master’s thesis and the academic publication I will create.</p><h4>What is TeX?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*iS1gvVlEupdVeMXp.png" /></figure><p>📓It is a typesetting system designed, written and first released in 1978 by Donald Knuth.</p><p>📓TeX is a popular way to create complex mathematical formulas; It has been recognized as one of the most advanced digital typographic systems.</p><p>📓TeX is widely used in <a href="https://en.wikipedia.org/wiki/Academy">academia</a>, especially in <a href="https://en.wikipedia.org/wiki/Mathematics">mathematics</a>, <a href="https://en.wikipedia.org/wiki/Computer_science">computer science</a>, <a href="https://en.wikipedia.org/wiki/Economics">economics</a>, <a href="https://en.wikipedia.org/wiki/Engineering">engineering</a>, <a href="https://en.wikipedia.org/wiki/Linguistics">linguistics</a>, <a href="https://en.wikipedia.org/wiki/Physics">physics</a>, <a href="https://en.wikipedia.org/wiki/Statistics">statistics</a>, and <a href="https://en.wikipedia.org/wiki/Quantitative_psychology">quantitative psychology</a>.</p><p>📑It is also used for many other typesetting tasks, particularly in the form of <a href="https://en.wikipedia.org/wiki/LaTeX">LaTeX</a> , <a href="https://en.wikipedia.org/wiki/ConTeXt">ConTeXt</a>, and other macro packages.</p><h4>What is LaTeX?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*CeoLPyDIuTKpHFcr.png" /></figure><p>📘It is a software system for document preparation.</p><p>📘When the author writes, he uses plain text as opposed to the formatted text found in “What You See Is What You Get” word processors such as Microsoft Word, LibreOffice Writer, and Apple Pages.</p><p>📘The author uses markup tagging rules to define the general structure of a document (such as article, book, and letter), stylize text throughout a document (such as bold and italic), and add citations and cross-references.</p><p>📘To create an output file (such as PDF or DVI) appropriate for print or digital distribution, a TeX distribution such as TeX Live or MiKTeX is utilized.</p><p>In short, it was on this route that I first encountered LaTeX and OverLeaf, and it was on this path that I set out to build an academic publication. I’d like to share this information with you as well.</p><h4>What is OverLeaf?🍃</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yFaZhiHxyV_JUdrJ.png" /></figure><p>📕Overleaf is a collaborative cloud-based LaTeX editor used for writing, editing and publishing scientific documents. The official journal partners with a wide range of scientific publishers to provide LaTeX templates and direct submission links.</p><p>📕Overleaf was first released as WriteLaTeX by WriteLaTeX Limited, founded in 2012 by John Hammersley and John Lees-Miller.</p><p>📕The authors are both mathematicians who were inspired to design a better solution for collaborative scientific writing by their personal experiences in university.</p><p>📕They began developing <strong>WriteLaTeX </strong>in 2011 and released the beta version of Overleaf on January 16, 2014, at the first <em>#FuturePub</em> event at the British Library in London.</p><h4>Overleaf is used by over eight million students and academics at 3,600 institutions worldwide.</h4><blockquote>Just want to say that I am really grateful for Overleaf, it has enabled a slew of research and teaching development in my work that would have been annoyingly difficult before. Even people who don’t know LaTeX are participating with me on research proposals and that’s saying something if you know what LaTeX is like for the uninitiated. Thanks. And thanks for the support!!</blockquote><blockquote>— Professor James Friend of the Medically Advanced Devices Lab, University of California, San Diego</blockquote><p>The appearance of OverLeaf is as seen below. As you can see on the left part of the image, there is a TeX screen, and on the right part there is a PDF preview. In this way, it is possible for us to create both more regular and easier journals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Dm_STR622zlAOv5q.jpg" /><figcaption>OverLeaf project screen</figcaption></figure><h4>Using OverLeaf</h4><p>When you visit <a href="http://overleaf.com/">OverLeaf’s </a>website, you’ll see a login screen similar to the one below. You must first create an account. To advance academically, I’m logging in with my <a href="https://orcid.org/">ORCID </a>account. You can also start from scratch and create an account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*spSBY_Pswzil8VRwyRMRMQ.png" /><figcaption>OverLeaf login screen</figcaption></figure><p>The second stage is to start working on a project. OverLeaf’s best feature is that it provides you with a template format that is appropriate for the magazine or publication you want to create. Because I’ll be writing an academic paper, I went with the option shown in the illustration. Of course, this is dependent on the journal’s format (single column vs. double column) (Elsevier vs. Springer).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*-FJW65HqJ-6JZlnGgxV_Eg.png" /><figcaption>Choosing a project screen</figcaption></figure><p>☄️The Springer/Asean templates are shown below. It has a lot of templates. You can alter it by transferring the format that best matches your project to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RsUQHz3v4I52514buUvJQw.png" /></figure><p>The following content will cover TeX, Bib files, and the meaning of commands in LaTeX format. Keep an eye out for updates 👀</p><ul><li><a href="https://en.wikipedia.org/wiki/TeX">TeX - Wikipedia</a></li><li><a href="https://en.wikipedia.org/wiki/LaTeX">LaTeX - Wikipedia</a></li><li><a href="https://en.wikipedia.org/wiki/Overleaf">Overleaf - Wikipedia</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f71d080f47ea" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/introduction-to-tex-latex-and-overleaf-f71d080f47ea">Introduction to TeX, LaTeX, and OverLeaf</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TeX, LaTeX ve OverLeaf’e Giriş]]></title>
            <link>https://medium.com/t%C3%BCrkiye/tex-latex-ve-overleafe-giri%C5%9F-6267a4f96d15?source=rss-beebfd895d70------2</link>
            <guid isPermaLink="false">https://medium.com/p/6267a4f96d15</guid>
            <category><![CDATA[tex]]></category>
            <category><![CDATA[latex]]></category>
            <category><![CDATA[türkçe]]></category>
            <category><![CDATA[overleaf]]></category>
            <category><![CDATA[akademik-makale]]></category>
            <dc:creator><![CDATA[Buse Yaren]]></dc:creator>
            <pubDate>Thu, 19 Aug 2021 08:46:35 GMT</pubDate>
            <atom:updated>2021-11-27T16:28:48.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RCVCajNmQnfyvj1E" /><figcaption>Photo by <a href="https://unsplash.com/@jeshoots?utm_source=medium&amp;utm_medium=referral">JESHOOTS.COM</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Akademik dünyanın penceresinden hepinize merhaba 🍂 <br>Söz konusu akademik makale / yayınlar olduğunda kuşkusuz kafamızda soru işaretleri oluşmaya başlar. Bir yüksek lisans öğrencisi olarak gerek yüksek lisans tezim gerekse oluşturacağım akademik yayında başarılı bir somut çıktı ortaya koymak isteyerek bu işe başladım. Türkçe kaynak açısından Latex kullanımı konusunda problem yaşadığım için bir içerik oluşturarak akademik mecrada işleri kolaylaştırmak istiyorum. Öncelikle TeX ve LaTeX kavramlarının anlamlarını öğrenerek işe başlayalım, ne dersiniz?</p><figure><a href="https://bit.ly/turkceyayin-twitter"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hg6QZeY3WHm6Bt85bIPI4w.jpeg" /></a></figure><h4>TeX Nedir?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*iS1gvVlEupdVeMXp.png" /></figure><p>📓Donald Knuth tarafından tasarlanan, yazılan ve ilk kez 1978&#39;de piyasaya sürülen bir dizgi sistemidir. <br>📓TeX, karmaşık matematiksel formülleri oluşturmanın popüler bir yoludur; en gelişmiş dijital tipografik sistemlerden biri olarak kabul edilmiştir.</p><p>📓TeX <a href="https://en.wikipedia.org/wiki/Academia">akademide</a> , özellikle <a href="https://en.wikipedia.org/wiki/Mathematics">matematik</a> , <a href="https://en.wikipedia.org/wiki/Computer_science">bilgisayar bilimi</a> , <a href="https://en.wikipedia.org/wiki/Economics">ekonomi</a> , <a href="https://en.wikipedia.org/wiki/Engineering">mühendislik</a> , <a href="https://en.wikipedia.org/wiki/Linguistics">dilbilim</a> , <a href="https://en.wikipedia.org/wiki/Physics">fizik</a> , <a href="https://en.wikipedia.org/wiki/Statistics">istatistik</a> ve <a href="https://en.wikipedia.org/wiki/Quantitative_psychology">nicel psikolojide</a> yaygın olarak kullanılmaktadır.</p><p>📑Özellikle <a href="https://en.wikipedia.org/wiki/LaTeX">LaTeX</a> , <a href="https://en.wikipedia.org/wiki/ConTeXt">ConTeXt</a> ve diğer makro paketleri biçimindeki diğer birçok dizgi görevi için de kullanılır.</p><h4>LaTeX Nedir?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*CeoLPyDIuTKpHFcr.png" /></figure><p>📘Belge hazırlamaya yönelik bir yazılım sistemidir.</p><p>📘Yazar yazarken, Microsoft Word, LibreOffice Writer ve Apple Pages gibi <a href="https://en.wikipedia.org/wiki/WYSIWYG">“What You See Is What You Get</a> — Gördüğünüz Şeydir” sözcük işlemcilerinde bulunan biçimlendirilmiş metnin aksine düz metin kullanır.</p><p>📘Yazar, bir belgenin genel yapısını (makale, kitap ve mektup gibi) tanımlamak, metni bir belge boyunca stilize etmek (kalın ve italik gibi) ve alıntılar ve çapraz referanslar eklemek için işaretleme etiketleme kurallarını kullanır.</p><p>📘Baskı veya dijital dağıtım için uygun bir çıktı dosyası (PDF veya DVI gibi) üretmek için TeX Live veya MiKTeX gibi bir TeX dağıtımı kullanılır.</p><p>Kısacası, akademik bir yayın oluşturmak amacıyla çıktığım bu yolda ilk olarak LaTeX ve OverLeaf ile tanıştım. Sizleri de bu konuda bilgilendirmek istiyorum.</p><h4>OverLeaf Nedir?🍃</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yFaZhiHxyV_JUdrJ.png" /></figure><p>📕Overleaf, bilimsel belgeler yazmak, düzenlemek ve yayınlamak için kullanılan ortak bir bulut tabanlı LaTeX editörüdür. Resmi dergi LaTeX şablonları ve doğrudan gönderim bağlantıları sağlamak için çok çeşitli bilimsel yayıncılarla ortak çalışır.</p><p>📕Overleaf ilk olarak 2012 yılında John Hammersley ve John Lees-Miller tarafından kurulan <em>WriteLaTeX Limited şirketi</em> tarafından <strong>WriteLaTeX </strong>olarak piyasaya sürüldü.</p><p>📕Yazarların her ikisi de matematikçidir ve ortak bilimsel yazı için daha iyi bir çözüm yaratmak için akademideki kendi deneyimlerinden ilham almıştır.</p><p>📕 2011&#39;den itibaren <strong>WriteLaTeX</strong>’i<strong> </strong>geliştirmeye başladılar ve 16 Ocak 2014&#39;te Londra’daki British Library’de düzenlenen ilk <em>#FuturePub </em>etkinliğinde Overleaf’in beta sürümünü piyasaya sürdüler.</p><p>OverLeaf, dünya çapında 3.600 kurumda sekiz milyondan fazla öğrenci ve akademisyen tarafından kullanılmaktadır.</p><blockquote>Sadece Overleaf için gerçekten minnettar olduğumu söylemek istiyorum, çalışmamda daha önce can sıkıcı bir şekilde zor olan bir dizi araştırma ve öğretim geliştirmeyi mümkün kıldı. LaTeX’i bilmeyen insanlar bile araştırma tekliflerinde bana katılıyor ve bu, deneyimsizler için LaTeX’in nasıl olduğunu biliyorsanız bir şeyler söylüyor.</blockquote><blockquote>— Professor James Friend of the Medically Advanced Devices Lab, University of California, San Diego</blockquote><p>OverLeaf’in görünümü aşağıda görüldüğü şekildedir. Görselin sol bölümünde gördüğünüz gibi bir TeX ekranı, sağ bölümünde ise PDF önizlemesi yer almaktadır. Bu şekilde hem daha düzenli hem de daha kolay yayınlar oluşturmamız mümkündür.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HNuJVzYmPM844EAbkRa6eQ.png" /><figcaption>OverLeaf proje ekranı</figcaption></figure><h4>OverLeaf Kullanımı</h4><p><a href="https://www.overleaf.com/">OverLeaf</a>’in web sitesine girdiğinizde sizleri aşağıdaki gibi bir giriş ekranı karşılayacaktır. İlk olarak kayıt olmanız gerekmektedir. Akademik olarak ilerlemek için <a href="https://orcid.org/">ORCID </a>hesabım ile giriş yapıyorum. Sıfırdan bir hesap da oluşturmanız mümkün.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*spSBY_Pswzil8VRwyRMRMQ.png" /><figcaption>OverLeaf giriş ekranı</figcaption></figure><p>İkinci adım olarak bir proje oluşturmalısınız. OverLeaf’in en güzel yanı ise istediğiniz dergiye / yayına uygun şablon formatını size sunuyor olmasıdır. Ben akademik bir makale oluşturacağım için görseldeki gibi bir seçim yaptım. Tabi bu göndereceğiniz derginin (Elsevier / Springer) formatına göre (tek sütun / çift sütun) değişmektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*-FJW65HqJ-6JZlnGgxV_Eg.png" /><figcaption>Proje ekranı seçimi</figcaption></figure><p>☄️Aşağıda Springer /Asean şablonlarını görmektesiniz. İçerisinde birçok şablon bulunmaktadır. Size uygun olan formatı projenize aktararak üzerinde değişiklikler yapabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RsUQHz3v4I52514buUvJQw.png" /></figure><p>Bir sonraki yazımda, TeX, Bib dosyalarının kullanımını ve LaTeX formatında komutların ne anlama geldiğinden bahsedeceğim. Takipte kalın👀</p><ul><li><a href="https://en.wikipedia.org/wiki/TeX">TeX - Wikipedia</a></li><li><a href="https://en.wikipedia.org/wiki/LaTeX">LaTeX - Wikipedia</a></li><li><a href="https://en.wikipedia.org/wiki/Overleaf">Overleaf - Wikipedia</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6267a4f96d15" width="1" height="1" alt=""><hr><p><a href="https://medium.com/t%C3%BCrkiye/tex-latex-ve-overleafe-giri%C5%9F-6267a4f96d15">TeX, LaTeX ve OverLeaf’e Giriş</a> was originally published in <a href="https://medium.com/t%C3%BCrkiye">Türkçe Yayın</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Achieve Udacity AWS Machine Learning Scholarship?]]></title>
            <link>https://pub.towardsai.net/how-to-achieve-udacity-aws-machine-learning-scholarship-d5e882b0f3f1?source=rss-beebfd895d70------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5e882b0f3f1</guid>
            <category><![CDATA[udacity-nanodegree]]></category>
            <category><![CDATA[scholarship]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Buse Yaren]]></dc:creator>
            <pubDate>Tue, 10 Aug 2021 12:37:11 GMT</pubDate>
            <atom:updated>2021-08-10T12:37:11.937Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sItLl7DsWIo6k4O2" /><figcaption>Photo by <a href="https://unsplash.com/@krakenimages?utm_source=medium&amp;utm_medium=referral">krakenimages</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It’s a good day to learn something new, don’t you think? Let’s take a break from our ML / DL articles today and breathe together. Wouldn’t it be nice to have a scholarship with many goodies available to you as a machine learning engineer or researcher-developer? I will be sharing with you how I went through the steps for this scholarship and my own roadmap. If you are looking for ways to achieve an AWS ML scholarship, let’s chat together.</p><h4>1️⃣How did I find out about the AWS Machine Learning Scholarship?</h4><p>This scholarship program, along with the adventure of being a core member of the <em>TensorFlow Turkey community</em>, has been a scholarship program that I learned through my dear teacher <a href="https://kommunity.com/@myusufsarigoz">Yusuf Sarıgoz</a>.</p><h4>2️⃣So what is Udacity?</h4><p>Udacity is a non-profit learning platform with many online courses. Udacity is a product of free computer science courses offered through <em>Stanford University</em> in 2011. Many courses contain training certificates as content. For this reason, it is a platform preferred by most users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*TDnhRP5rjlJhtJ2_Uh1gfg.png" /><figcaption><a href="https://www.udacity.com/?utm_source=gsem_brand&amp;utm_medium=ads_r&amp;utm_campaign=12949811881_c&amp;utm_term=123473112204&amp;utm_keyword=%2Budacity_b&amp;gclid=CjwKCAjwx8iIBhBwEiwA2quaq_NCVYWFLesz8pYS-ihlGghKdiSpkMML9oMuC66u7NXbPgey7LyDqBoC2SIQAvD_BwE">Udacity platform contents</a></figcaption></figure><p>When you enter Udacity’s website, you will see many options that will guide you according to your career path and expertise. You will find many tools and courses on the Udacity platform that you are looking for to improve yourself in your spare time.</p><h4>3️⃣ Is there only AWS Machine Learning Scholarship in scholarship programs?</h4><p>No. In this article, I’m talking about the AWS ML Scholarship scholarship, which is a featured scholarship from Udacity. However, we are talking about 10 different scholarship programs and 22K students. Here are some of them!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SZ-eYw6Fzo8HrNRmJvwBRQ.png" /><figcaption><a href="https://www.udacity.com/scholarships">Sample of Udacity different scholarship programs</a></figcaption></figure><h4>4️⃣Why should we apply for this scholarship?</h4><p>Udacity; It partners with the biggest tech companies like Amazon, Google, Facebook and similar companies. It provides lifelong learning for millions of people to acquire the new skills they need for the jobs they want. Udacity scholarships make this opportunity more affordable for students all over the world. The AWS ML Scholarship scholarship is sponsored by <a href="https://aws.amazon.com/free/?nc1=h_ls&amp;all-free-tier.sort-by=item.additionalFields.SortRank&amp;all-free-tier.sort-order=asc&amp;awsf.Free%20Tier%20Types=*all&amp;awsf.Free%20Tier%20Categories=*all">AWS</a>. Within the scope of the scholarship you receive;</p><ul><li>You will learn what machine learning is and learn about the steps involved in model creation and evaluation.</li><li>You will develop skills that are highly in demand in businesses preparing for the future of artificial intelligence.</li><li>You will apply machine learning techniques and algorithms, including deployment, to the AWS production environment.</li></ul><h4>5️⃣ Steps to become a “Machine Learning Engineer” in the scope of the scholarship</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eb-v9DJOxFUJNNT6uRSD9Q.png" /></figure><p>It has many advantages as you can see in the image. I do not want to pass without mentioning a few important advantages. You will learn the fundamentals of advanced machine learning fields such as computer vision, reinforcement learning, and generative artificial intelligence. You will be able to learn machine learning hands-on using AWS AI Devices (e.g. AWS DeepLens, AWS DeepRacer, and AWS DeepComposer). <strong><em>Most importantly, with Amazon SageMaker, you will learn how to quickly prepare, build, train, and deploy high-quality machine learning (ML) models.</em></strong></p><p>📦 <strong>Amazon SageMaker:</strong></p><p><a href="https://aws.amazon.com/sagemaker/">The center for all your data, analytics, and AI - Amazon SageMaker - AWS</a></p><p>We’re uplifting our motivation for AWS ML Scholarship with a quote by Juv Chan, AWS ML Hero and AWS Machine Learning Engineer, Nanodegree Alumni 👇🏻</p><blockquote>“The AWS Machine Learning Engineer Nanodegree Program has allowed me to learn and acquire valuable machine learning skills at my own pace with interactive modules that make learning fun and effective. It can be overwhelming to take the time to learn machine learning, especially under demanding programs where software engineers work. The flexibility it offers allows me to learn new skills in a timeline that works for me.”</blockquote><h4>6️⃣ Who can register?</h4><p>AWS Machine Learning Fellowship program is for all developers interested in expanding their AWS machine learning skills and expertise. Every candidate aged 18 and over can enroll in this program.</p><h4>7️⃣ What are the conditions for successful completion?</h4><p>To successfully complete the AWS Machine Learning Foundations Course, students must devote 3–5 hours per week for ~3.5 months and complete the assessment test by October 11, 2021. To complete the AWS Machine Learning Engineer Nanodegree, scholarship winners are required to spend 6–7 hours per week for ~3 months to complete the Nanodegree by January 25, 2022.</p><h4>8️⃣What’s new in AWS 2021 release?</h4><ul><li>New lessons on “Introduction to Machine Learning”</li><li>New introduction to Reinforcement Learning (RL) with AWS DeepRacer</li><li>New introduction to Computer Vision with AWS DeepLens</li><li>Two new productive AI models (AR-CNN and Transformers) under the DeepComposer division</li></ul><h4>9️⃣ What time period are the registration dates?</h4><p>The online registration period for the 2021 registration period is from May 26, 2021 to July 12, 2021. To be eligible for the <em>AWS Machine Learning Engineer Nanodegree</em> scholarship, students must complete their coursework and take an online assessment before October 11, 2021. If you missed this scholarship period, don’t worry, the next semester is waiting for you!</p><p>Now, let’s move on to the questions they ask you for the scholarship. Generally, when you apply for the scholarship, you will be asked to go through several sets of questions.</p><p>➰Why do you want to apply for this scholarship?<br>➰Why do you think you should be chosen for this scholarship?<br>➰How will you use it if you are selected for the scholarship?</p><p>As you can see above, you will be asked questions during the application. You should fill in these fields as much as possible. The more details you show you will work with, the more likely you will be. When you complete the application, you will see a result as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*p5axT9HqUZMhfWNZskQMqw.png" /><figcaption>Scholarship application information</figcaption></figure><p>After this application stage, you will be informed on which dates the results will be announced. When your application process is successfully, you will receive a congratulatory e-mail as follows!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*fAbugq2fXO5dTvaLuOYJLQ.png" /><figcaption>Scholarship program application result</figcaption></figure><p>CONGRATULATIONS🎉 You have been awarded the scholarship. How about we complete the AWS Machine Learning Fellowship program together?</p><p>☘️ For more content, you can follow me on <a href="https://github.com/BuseYaren">GitHub</a>, <a href="https://www.youtube.com/channel/UCzAODG3wgdKtRov8VvyXvtw">YouTube </a>and <a href="https://twitter.com/BuseYarenTekin">Twitter</a>.</p><h3>Resources</h3><ol><li>Wikipedia, Udacity, <a href="https://en.wikipedia.org/wiki/Udacity">https://en.wikipedia.org/wiki/Udacity</a>.</li><li>Udacity, AWS Machine Learning Scholarship, <a href="https://www.udacity.com/scholarships/aws-machine-learning-scholarship-program">https://www.udacity.com/scholarships/aws-machine-learning-scholarship-program</a>.</li><li>Medium, <a href="https://medium.com/@sauravism/my-journey-to-udacity-aws-machine-learning-scholarship-fedddbaf8225">https://medium.com/@sauravism/my-journey-to-udacity-aws-machine-learning-scholarship-fedddbaf8225</a>.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5e882b0f3f1" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/how-to-achieve-udacity-aws-machine-learning-scholarship-d5e882b0f3f1">How to Achieve Udacity AWS Machine Learning Scholarship?</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>