Creating an image
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)
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:
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 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.
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.
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.
We will start our setup by writing a playbook.
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.
We will require 3 VM’s for performing this task.
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. …