<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nushynells</title>
    <description>The latest articles on DEV Community by Nushynells (@nushynells_15).</description>
    <link>https://dev.to/nushynells_15</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F874739%2Fa22751c3-3d53-438d-b477-5b936cf4f69e.jpeg</url>
      <title>DEV Community: Nushynells</title>
      <link>https://dev.to/nushynells_15</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nushynells_15"/>
    <language>en</language>
    <item>
      <title>Creating a linux EC2 Instance</title>
      <dc:creator>Nushynells</dc:creator>
      <pubDate>Sat, 19 Oct 2024 11:13:35 +0000</pubDate>
      <link>https://dev.to/nushynells_15/creating-a-linux-ec2-instance-1a12</link>
      <guid>https://dev.to/nushynells_15/creating-a-linux-ec2-instance-1a12</guid>
      <description>&lt;p&gt;AWS platform is a great platform that is used for many cloud computing activities. It has over 200 services and grasping their key concepts is a better way to easily launch applications on it. &lt;br&gt;
I shall be uploading tutorials that enable beginners to easily maneuver the AWS platform as they gather more practical skills on it. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Creating a Linux EC2 instance&lt;/strong&gt;&lt;br&gt;
Log in to the AWS environment. After you have logged in, go over the EC2 services tab, and it will take you to the EC2 dashboard. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feo3rtn0npnlazwjg946s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feo3rtn0npnlazwjg946s.png" alt="EC2 dashboard" width="291" height="72"&gt;&lt;/a&gt;&lt;br&gt;
To start a new instance, select the Launch Instance tab. It will take you to the Launch an Instance page. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq03wukpp8qv9dpvdd9gy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq03wukpp8qv9dpvdd9gy.png" alt="Launch an Instance" width="421" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the Name and Tags section, add the name of your server. You can add other tags here. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxilcdisp008tme9mf0gy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxilcdisp008tme9mf0gy.png" alt="Naming an instance" width="800" height="277"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note:&lt;br&gt;
Tags are specified as Key/Value pairs. They are not mandatory although it is useful to tag all of your AWS resources in production environments to stay organized.&lt;/p&gt;

&lt;p&gt;In the Application and OS Images section, select the Amazon Linux option under Quick Start:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6k9n5cs3x16xgkmmrr4t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6k9n5cs3x16xgkmmrr4t.png" alt="AMI selection" width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Amazon provides many AMIs, including the most popular versions of Linux and Windows, often in 32-bit and 64-bit variants.&lt;/p&gt;

&lt;p&gt;Select the Instance type in the Instance Type section on every selected instance type, you can see the summary of the hardware resources on the right such as the CPU type, number of virtual CPUs, memory, and pricing.&lt;/p&gt;

&lt;p&gt;In the Key pair section, click on Create new key pair, enter yourkeypairname for the Key pair name. Choose the preferred value for Key pair type and Private key file format, and click Create key pair. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5l7muq8fqb7ptzfsblas.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5l7muq8fqb7ptzfsblas.png" alt="Creating a Keypair" width="800" height="223"&gt;&lt;/a&gt;&lt;br&gt;
The key pair will begin downloading a file named yourkeypairname.pem on your local system. It contains a private key that you can use to connect to the EC2 instance via SSH. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo7ksc61bhm9qghg1t71o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo7ksc61bhm9qghg1t71o.png" alt="Keypair" width="800" height="654"&gt;&lt;/a&gt;&lt;br&gt;
Network settings section, under Security groups (Firewall), Allow SSH traffic by checking the box Anywhere is selected:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F36a99baxcl76zpnd3smv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F36a99baxcl76zpnd3smv.png" alt="Security Group Set up" width="800" height="528"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note: The Warning from AWS is letting you know the default configuration for the security group that is about to be created will grant SSH access from any source IP address (0.0.0.0/0). Production environments should be more restrictive. &lt;/p&gt;

&lt;p&gt;Tip: A handy feature for testing purposes is to select My IP from the Source drop-down. That will restrict SSH access to only your current IP address. In network environments with Dynamic Host Configuration Protocol (DHCP), multiple routers or firewalls, and other features that make IP addresses subject to change, this setting is not a permanent security feature. However, it is sometimes a helpful feature while you perform various tests using your EC2 instance.&lt;/p&gt;

&lt;p&gt;In the Configure storage section, select the GiB and Root volume.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flyiuinwllx2lymbpyyzr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flyiuinwllx2lymbpyyzr.png" alt="Instance Storage" width="800" height="456"&gt;&lt;/a&gt;&lt;br&gt;
Note: This is where you can change storage settings such as additional volumes, encrypt volumes, or change any other settings if needed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq5ao3tg8b30drryxeub5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq5ao3tg8b30drryxeub5.png" alt="EC2 storage settings" width="800" height="525"&gt;&lt;/a&gt;&lt;br&gt;
Click on Advanced details to expand the section, here you can configure more options such as spot instances, purchasing options, and start and stop settings among others. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0fvk6kdgwverpvdz5iuc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0fvk6kdgwverpvdz5iuc.png" alt="EC2 storage settings" width="800" height="593"&gt;&lt;/a&gt;&lt;br&gt;
Note: For further information on each section, hover over the i information icon next to it for a basic description. The help text also includes a link to related documentation. &lt;/p&gt;

&lt;p&gt;Review the Summary section on the right, and click Launch instance when ready:&lt;/p&gt;

&lt;p&gt;A confirmation page will let you know that your instance is launching:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl0fu9cwpd2uwypueu24m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl0fu9cwpd2uwypueu24m.png" alt="Confirmation" width="800" height="192"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click the View all instances (lower right) to close the confirmation page and return to the Instances screen of the EC2 console.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb3qw386i1nufju0ah4lo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb3qw386i1nufju0ah4lo.png" alt="EC2 Console" width="271" height="182"&gt;&lt;/a&gt;&lt;br&gt;
You can view the status of your instance on the Instances screen of the EC2 console:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4dwredgywr1w397muvsp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4dwredgywr1w397muvsp.png" alt="Instance list" width="800" height="111"&gt;&lt;/a&gt;&lt;br&gt;
The Details tab below has information about your instance. When you launch an instance, its initial Instance state defaults to Pending. After the instance starts, its Instance state transitions to Running, and it receives a Public IPv4 address and Public IPv4 DNS name. It typically takes about 30 - 60 seconds for the AWS Linux instance to transition to a running state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Congratulations&lt;/strong&gt;...you just launched your first EC2 instance!&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>tutorial</category>
      <category>aws</category>
      <category>ec2</category>
    </item>
    <item>
      <title>What is Machine Learning</title>
      <dc:creator>Nushynells</dc:creator>
      <pubDate>Mon, 19 Sep 2022 06:20:38 +0000</pubDate>
      <link>https://dev.to/nushynells_15/what-is-machine-learning-1eg0</link>
      <guid>https://dev.to/nushynells_15/what-is-machine-learning-1eg0</guid>
      <description>&lt;p&gt;According to &lt;a href="https://mitsloan.mit.edu/ideas-made-to-matter/machine-learning-explained" rel="noopener noreferrer"&gt;MIT&lt;/a&gt;, Machine Learning is a subfield of artificial intelligence, which is broadly defined as the capability of a machine to imitate intelligent human behavior. &lt;/p&gt;

&lt;p&gt;The main programming language used in machine learning is Python.&lt;/p&gt;

&lt;p&gt;There are three main types of machine learning:&lt;/p&gt;

&lt;p&gt;** Supervised Learning**&lt;br&gt;
This is process where the training data has labels that guide the algorithm to build a model.&lt;br&gt;
The process is known as predictive modeling i.e. making predictions sing data. &lt;br&gt;
Some of the algorithms used include: &lt;em&gt;Linear Regression, Logistic Regression, Decision Tree, Random forest and Naïve Bayes classifier&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unsupervised learning&lt;/strong&gt;&lt;br&gt;
The data has no labels and are classified according to similarity in groups/ classes called clusters.&lt;br&gt;
Key target is that similar objects belong to one group but different from objects in another group.&lt;br&gt;
Some of the algorithms include: &lt;em&gt;K-means clustering, Hierarchical clustering&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reinforcement Learning&lt;/strong&gt;&lt;br&gt;
The model learns by interacting with an environment and is not taught. A RL agent learns from consequences of its actions on basis of past experiences (exploitation) and new choices (exploration).&lt;/p&gt;

&lt;p&gt;Some of the libraries that are handful in machine learning are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Scikit-learn: Used for data processing and implementing machine learning models.&lt;br&gt;
&lt;a href="https://medium.com/bootrain-blog/a-comprehensive-guide-to-scikit-learn-part-1-overview-of-the-package-b766f1da50da" rel="noopener noreferrer"&gt;https://medium.com/bootrain-blog/a-comprehensive-guide-to-scikit-learn-part-1-overview-of-the-package-b766f1da50da&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TensorFlow: An open source library that helps one to develop and train ML models.&lt;br&gt;
&lt;a href="https://www.tensorflow.org/" rel="noopener noreferrer"&gt;https://www.tensorflow.org/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Pytorch: An opensource ML framework that shapes the path from research prototyping to production deployment.&lt;br&gt;
&lt;a href="https://pytorch.org/" rel="noopener noreferrer"&gt;https://pytorch.org/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ensemble Models: a ML approach to combine other multiple models(base estimators) during prediction process.&lt;br&gt;
&lt;a href="https://towardsdatascience.com/ensemble-models-5a62d4f4cb0c" rel="noopener noreferrer"&gt;https://towardsdatascience.com/ensemble-models-5a62d4f4cb0c&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Machine Learning can be applied in many tasks such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fraud Detection&lt;/li&gt;
&lt;li&gt;Business Analysis and Automation&lt;/li&gt;
&lt;li&gt;Self Driving Cars&lt;/li&gt;
&lt;li&gt;Chat-bots to support Customer Service&lt;/li&gt;
&lt;li&gt;Market Research and Customer Segmentation &lt;/li&gt;
&lt;li&gt;Automated Security monitoring, among many others.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Learning and understanding Machine learning is a first step, rather a key to using data to create vast solutions. &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>machinelearning</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
