Task-4.1

Creating an image

import cv2
import numpy as np
img = np.zeros([500,500,3])
img = cv2.rectangle(img,(100,250),(400,475),[0,0,255],-1)
img = cv2.line(img,(100,250),(250,100),[1,1,1],5)
img = cv2.line(img,(400,250),(250,100),[1,1,1],5)img
img = cv2.rectangle(img,(220,300)(280,475),[0,255,0],-1)
cv2.imshow('hi',img)
cv2.waitkey()
cv2.destroyAllWindows()

What is confusion matrix?

A confusion matrix is a table that is often used to describe the performance of a classification model on a set of test data for which the true values are known.

A Confusion matrix is an N x N matrix used for evaluating the performance of a classification model, where N is the number of target classes. The matrix compares the actual target values with those predicted by the machine learning model.

For a binary classification problem, we would have a 2 x 2 matrix as shown below with 4 values:


Hello Readers,

In this article, we will be looking into how we can launch GUI applications inside the Docker container.

There are some prerequisite to do the following task:

Docker provides two versions of Docker

  • Docker community version.
  • Docker enterprise version.

Docker should be installed. To install the docker first we have to configure the yum repo. After configuring yum we can install the docker community version.

Just create an file inside the /etc/yum.repos.d/ with .repo as extension and write the content from the below image.


Task Description:

  • Pull an image and launch an container.
  • Install python inside docker container.
  • copy/create a machine learning model.

Step 1: We will start by creating a model


Description:

  • Create an ansible role to configure Httpd WebServer.
  • Create another ansible role to configure HAProxy LB.
  • combine both of these roles.

Configuring HTTPD webserver:

Firstly we will create a role for httpd.

If we create a role we also have to update the ansible configuration file about the path of the role.

vim /etc/ansible/ansible.cfg

Inside this file we have to give the path.

roles_path = your role path

Now we will create role using the following command.

Then we will go inside our role and then go inside tasks folder and inside that we have main.yml …


Whenever we run any playbook it first gathers facts about the target node.

we can also see that information by printing ansible_facts using debug module.

We will be using ansible_facts for this task.

This is our playbook.

Suppose we have multiple variable file such as RedHat.yml, Ubuntu.yml.

We don’t have to specify which file to use, it will automatically choose .

So , my target node is RedHat . so, it will choose RedHat.yml file.


What is Neural Network?

Neural networks, also known as artificial neural networks (ANNs) or simulated neural networks (SNNs), are a subset of machine learning and are at the heart of deep learning algorithms. Their name and structure are inspired by the human brain, mimicking the way that biological neurons signal to one another.


Task Description:

  • Webserver configured on EC2 Instance.
  • Document Root(/var/www/html) made persistent by mounting on EBS Block Device.
  • Static objects used in code such as pictures stored in S3.
  • Setting up Content Delivery Network using CloudFront and using the origin domain as S3 bucket.
  • Then Finally place the Cloud Front URL on the webapp code for security and low latency.

What is S3?

Amazon S3 has a simple web services interface that you can use to store and retrieve any amount of data, at any time, from anywhere on the web. …

Nityachawda

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store