<?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 Eldaniz Babayev on Medium]]></title>
        <description><![CDATA[Stories by Eldaniz Babayev on Medium]]></description>
        <link>https://medium.com/@eldaniiz?source=rss-d387ac7631f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5ORdEdM452syaRmqJlfXxw.jpeg</url>
            <title>Stories by Eldaniz Babayev on Medium</title>
            <link>https://medium.com/@eldaniiz?source=rss-d387ac7631f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:00:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eldaniiz/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[Understanding Operating System Architectures — Monolithic vs. Microkernel]]></title>
            <link>https://eldaniiz.medium.com/understanding-operating-system-architectures-monolithic-vs-microkernel-3ec9d9e0d3ff?source=rss-d387ac7631f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ec9d9e0d3ff</guid>
            <category><![CDATA[kernel]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[hardware]]></category>
            <dc:creator><![CDATA[Eldaniz Babayev]]></dc:creator>
            <pubDate>Tue, 23 May 2023 19:54:44 GMT</pubDate>
            <atom:updated>2023-05-23T19:54:44.293Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding Operating System Architectures — Monolithic vs. Microkernel</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*X8Nrt1EpDcg1nB0UbjlfCw.png" /><figcaption>monolithic kernel design vs microkernel design</figcaption></figure><h3>Introduction</h3><p>This topic is also known as <a href="https://en.wikipedia.org/wiki/Tanenbaum%E2%80%93Torvalds_debate">Tanenbaum–Torvalds debate</a> in the world of operating systems, which stands for Minix’s and Linux’s kernel design differences.</p><p>Operating systems play a critical role in managing computer resources and providing a user-friendly environment. Two prominent design approaches for operating system kernels are monolithic kernels and microkernels. In this article, we will delve into the characteristics of these designs and explore examples that highlight their differences. Specifically, we will examine Linux as an example of a monolithic kernel design and showcase a microkernel-based distribution for a microkernel example.</p><p>If you try to access hardware within your user environment, you will get an error. Because you don’t have access to hardware, you need to use kernel to access hardware, and that space called Kernel Space. Kernel is a bridge between user and hardware. It’s a software that manages hardware and provides an interface for user to access hardware.</p><h3>Monolithic Kernel Designs</h3><p>A monolithic kernel is characterized by a single large kernel that encompasses all core operating system functions and services. One prominent example of a monolithic kernel design is the Linux kernel. Linux, developed by Linus Torvalds in 1991, tightly integrates device drivers, file systems, and system call handling directly into the kernel space.</p><p>The monolithic structure of the Linux kernel offers several advantages. Firstly, its unified address space allows for efficient communication between kernel components, resulting in high performance. Additionally, direct access to hardware resources eliminates the overhead associated with inter-process communication, further enhancing system efficiency. Moreover, the tight coupling of drivers and services with the kernel simplifies their integration, providing broader device support.</p><p>However, monolithic kernels also have drawbacks. Since all components reside in the same address space, a failure in any part of the kernel can potentially crash the entire system. Furthermore, adding or removing drivers typically requires modifying the kernel source code and rebuilding the kernel, making extensibility a more cumbersome process.</p><h3>Microkernel Designs</h3><p>In contrast to monolithic kernels, microkernels follow a modular design principle that separates essential services from the kernel itself. These services, referred to as servers, are implemented as separate user-space processes that communicate via message passing. This design minimizes the size and complexity of the kernel, allowing for easier maintenance and extensibility.</p><p>One notable example of a microkernel-based operating system is GNU Hurd. GNU Hurd, developed as part of the GNU Project, utilizes a microkernel architecture where the kernel provides only basic services such as inter-process communication and memory management. File systems, device drivers, and higher-level functionality are implemented as separate user-space processes, resulting in a more modular and flexible system.</p><p>The microkernel design offers several advantages. By isolating services in separate processes, failures in one service do not impact the overall system stability, ensuring greater reliability. Additionally, the modularity allows for easier addition or removal of drivers and services without modifying or rebuilding the kernel. This flexibility promotes system extensibility and facilitates experimentation with new features.</p><h3>Case 1: Linux as a Monolithic Kernel Design</h3><p>Linux, the popular open-source operating system, is a prime example of a monolithic kernel design. The Linux kernel incorporates a wide range of functionalities, including device drivers, file systems, memory management, and system services, within a single address space. This design choice emphasizes performance and efficiency, making Linux a powerful and widely-used operating system.</p><h3>Case 2: MINIX as a Microkernel Design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gq6HUbK_15yEGLNc9DV4gw.png" /></figure><p>MINIX, a Unix-like operating system, represents an example of a microkernel design. Developed by Andrew S. Tanenbaum, MINIX follows a modular approach where the kernel provides minimal services such as process management and inter-process communication. Most of the operating system functionality, including device drivers and file systems, runs as separate user-space processes. This design enhances reliability, extensibility, and the ability to isolate and update individual components without affecting the core kernel.</p><p>In conclusion, monolithic and microkernel designs offer different trade-offs in terms of performance, reliability, and extensibility. Monolithic kernels, like Linux, provide high performance and tight integration but can be less flexible and more susceptible to system-wide failures. On the other hand, microkernels, exemplified by MINIX, prioritize modularity, reliability, and extensibility, although with potential overhead due to inter-process communication.</p><p>By understanding these architectural differences, developers and system designers can make informed decisions when selecting or designing an operating system kernel that aligns with their specific requirements.</p><p>Thanks for reading, you can <a href="https://www.buymeacoffee.com/eldaniz">buy me a beer</a> to support me :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ec9d9e0d3ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gradient Descent in Logistic Regression — Neural Nets]]></title>
            <link>https://medium.com/swlh/gradient-descent-in-logistic-regression-neural-nets-121360f54406?source=rss-d387ac7631f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/121360f54406</guid>
            <category><![CDATA[logistic-regression]]></category>
            <category><![CDATA[gradient-descent]]></category>
            <category><![CDATA[binary-classification]]></category>
            <dc:creator><![CDATA[Eldaniz Babayev]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 21:22:00 GMT</pubDate>
            <atom:updated>2021-04-27T10:44:14.634Z</atom:updated>
            <content:encoded><![CDATA[<h3>Gradient Descent in Logistic Regression — Neural Nets #1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-hazt-xZDVdt7Zv60u3C_Q.jpeg" /></figure><blockquote><strong>Note: This writing purpose is understanding gradient descent, not logistic regression. And gradient descent isn’t good optimization technique for Logistic Regression. Best technique to optimize logistic regression is MLE(Maximum Likelihood Estimation).</strong></blockquote><blockquote><strong>Gradient descent —</strong> is one of the most popular algorithms to perform optimization and by far the most common way to optimize neural networks. It is an iterative optimization algorithm used to find the minimum value for a function.</blockquote><blockquote><strong>Logistic Regression — </strong>is a statistical model uses sigmoid(logistic) function for binary classification.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*dB6OVLxicJNx1o4Q.png" /></figure><p>To understand how Logistic Regression works, let’s imagine the following scenario: we want to predict the gender of a person (male = 0, female = 1) based on age (z2) and education level (z2). If Y is the predicted value, we apply the dataset to the sigmoid(logistic) function to predict gender.</p><p><strong><em>x = b0 + w0(z1) + w1(z2)</em></strong></p><p><strong><em>Y = 1 / (1 + e^-x)</em></strong></p><p>x has the same form as a linear regression while Y is a sigmoid activation function. Y takes a value between 0 and 1. If Y is less than 0.5, we conclude the predicted output is 0, and if Y is greater than 0.5, you conclude the output is 1.</p><p>In gradient descent, there are two main steps to find the global minimum:</p><ol><li>You need to choose to go upward or downward</li><li>If you decide on which way to go, you might take a bigger step or a little step to reach your destination.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*NsAgCyi9-Z29wLoh0ErgyA.png" /></figure><p>The photo above is the logarithmic loss function. There is a difference between cost and loss function. The loss function is applied to just a single training example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X2j2wVluZ-d04Kz2oRLoeg.png" /></figure><p><strong>yhat</strong> — is the predicted value of data</p><p><strong>i </strong>— is the i-th example from dataset</p><p><strong>y</strong> — the actual value of data</p><p><strong>J(w, b)</strong> — Cost Function. The cost function is the average of the loss function of the entire training set. We are going to find the parameters w and b that minimize the overall cost function.</p><h3>The goal of any Machine Learning Algorithm is to minimize the Cost Function.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rekg1V0hXyuGggihR-HxQ.png" /><figcaption>From Andrew NG’s Deep Learning and Neural Networks course in Coursera</figcaption></figure><p><strong>dJ(w)/d(w)</strong>- Is the slope of line(or gradient). The derivative of the cost function of weights/derivative of current weight.</p><blockquote><strong>new_weight = existing_weight — learning_rate * gradient(slope)</strong></blockquote><blockquote><strong>new_bias = existing_bias — learning_rate * gradient(slope)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*pM2-PB6NeO_CmEPY" /><figcaption>From Andrew NG’s Machine Learning Course in Coursera</figcaption></figure><p>The learning rate is a hyper-parameter that controls how much we are adjusting the weights of our network with respect to the loss gradient. The lower the value, the slower we travel along the downward slope. While this might be a good idea (using a low learning rate) in terms of making sure that we do not miss any local minimum, it could also mean that we’ll be taking a long time. The learning rate affects how quickly our model can reach a local minimum. Thus getting it right from the get-go would mean lesser time for us to train the model.</p><p>There are lots of optimization methods, which is using gradient descent. For example, Adam optimizer, SGD(scholastic gradient descent), RMSprop(Root Mean Square Prop), and so on.</p><p>Thanks for reading! You can reach me out from links in below</p><p>LinkedIn: <a href="https://www.linkedin.com/in/eldaniiz/">https://www.linkedin.com/in/eldaniiz/</a></p><p>GitHub: <a href="https://github.com/eldaniiz">https://github.com/eldaniiz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=121360f54406" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/gradient-descent-in-logistic-regression-neural-nets-121360f54406">Gradient Descent in Logistic Regression — Neural Nets</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>