Machine Learning Programs

 Machine Learning Programs

πŸ‘‰Data Preprocessing in Machine Learning

πŸ‘‰Data Preprocessing in Machine learning (Handling Missing values )

πŸ‘‰Linear Regression - ML Program - Weight Prediction

πŸ‘‰NaΓ―ve Bayes Classifier - ML Program

πŸ‘‰LOGISTIC REGRESSION - PROGRAM

πŸ‘‰KNN Machine Learning Program

πŸ‘‰Support Vector Machine (SVM) - ML Program

πŸ‘‰Decision Tree Classifier on Iris Dataset

πŸ‘‰Classification of Iris flowers using Random Forest

πŸ‘‰DBSCAN

πŸ‘‰ Implement and demonstrate the FIND-S algorithm for finding the most specific hypothesis based on a given set of training data samples. Read the training data from a .CSV file

πŸ‘‰For a given set of training data examples stored in a .CSV file, implement and demonstrate the Candidate-Elimination algorithm to output a description of the set of all hypotheses consistent with the training examples.

πŸ‘‰Write a program to demonstrate the working of the decision tree based ID3 algorithm. Use an appropriate data set for building the decision tree and apply this knowledge to classify a new sample.

πŸ‘‰Build an Artificial Neural Network by implementing the Backpropagation algorithm and test the same using appropriate data sets.

πŸ‘‰Write a program to construct a Bayesian network considering medical data. Use this model to demonstrate the diagnosis of heart patients using a standard Heart Disease Data Set.

πŸ‘‰Write a program to implement k-Nearest Neighbors algorithm to classify the iris data set. Print both correct and wrong predictions.

πŸ‘‰Implement the non-parametric Locally Weighted Regression algorithm in order to fit data points. Select appropriate data set for your experiment and draw graphs.

πŸ‘‰Write a program to implement SVM algorithm to classify the iris data set. Print both correct and wrong predictions.

πŸ‘‰Apply EM algorithm to cluster a set of data stored in a .CSV file. Use the same data set for clustering using k-Means algorithm. Compare the results of these two algorithms and comment on the quality of clustering.

πŸ‘‰ Write a program using scikit-learn to implement K-means Clustering

πŸ‘‰Program to calculate the entropy and the information gain

πŸ‘‰Program to implement perceptron.

Git & GitHub Setup for MLOps -1

                                                                Git & GitHub Setup for MLOps

Q1. Conflict in GIT

When does a conflict arise in git?

Choose the correct answer from below:

A.    Always when 2 developers raise pull requests simultaneously.
B.    Always when 2 developers change the project simultaneously.
C.    When the same line of code of a particular file is changed, in 2 different merging branches A and B.
D.    When the same file is deleted in 2 branches A and B, and we are trying to merge them.

Ans: D

Correct Option:
When the same line of code of a particular file is changed, in 2 different merging branches A and B.
Explanation:

  • Conflicts generally arise when two people have changed the same lines in a file, or if one developer deleted a file while another developer was modifying it.
  • In these cases, Git cannot automatically determine what is correct. Conflicts only affect the developer conducting the merge, the rest of the team is unaware of the conflict.
  • Git will mark the file as being conflicted and halt the merging process. It is then the developers’ responsibility to resolve the conflict.

Q2. Forking and Cloning

How is forking different from cloning?

Choose the correct answer from below, please note that this question may have multiple correct answers

A.    Cloning allows you to push and pull to the UPSTREAM repo using git pull/push commands, forking doesn’t even with pull requests.
B.    Forking creates an independent copy of someone else’s GIT repo.
C.    We can push to the UPSTREAM respository using git push command incase of forking.
D.    Cloning creates a linked copy that will be synced with the target repo.

Ans: B,D

Correct Options:

  • Forking creates an independent copy of someone else’s GIT repo.
  • Cloning creates a linked copy that will be synced with the target repo.

Explanation:

  • Using Fork operation we are creating a copy of the repository in which changes are supposed to be made and reflected without affecting the original project.
  • After making the changes we can contribute back to the original repository using Pull Requests.
  • When we create a new repository on GitHub or Any repository on Github, it exists as a remote location where our / any other repository is stored. Cloning a repository creates a local copy on our computer so that we can sync between both the local and remote locations of the repository. We can not contribute to the repository unless we are made the collaborator of the repository.
  • Cloning is an ideal case when one wants to get his own copy of a repository where he may not be contributing to the original project.

Q3. What will you do?

In Git, if you want to make your local repository reflect changes that have been made in a remote (tracked) repository, what action will you take?

Choose the correct answer from below:

A.    Pull
B.    Push
C.    Merge
D.    Clone

Ans: A

Correct Option:
Pull

Explanation:
The git pull command is used to fetch and download content from a remote repository and immediately update the local repository to match that content.

Q4. GIT clone

What action does Git Clone perform?

Choose the correct answer from below, please note that this question may have multiple correct answers

A.    Makes a local copy of the repository
B.    Creates a working directory
C.    Commits a new branch
D.    All options are correct

 

Ans: A, B

Correct Options

  • Makes a local copy of the repository
  • Creates a working directory

Explanation:

  • git clone is a Git command line utility which is used to target an existing repository and create a clone, or copy of the target repository.
  • It creates a working directory for the user which is the same as the target repository.

Q5. Git DVCS

Git is a distributed version control system because:

Choose the correct answer from below:

A.    It brings the local copy of the complete repo to every team member’s local system.
B.    It is centralized.
C.    It resides in every team member’s computer

Ans: A

Correct Option:
It brings the local copy of the complete repo to every team member’s local system.

Explanation:

  • When you have a git repository on your machine, it is self-contained. It works perfectly on its own. There’s no need to have a server running somewhere to enable you to use git.
  • A distributed version control system (DVCS) brings a local copy of the complete repository to every team member’s computer, so they can commit, branch, and merge locally. The server doesn’t have to store a physical file for each branch — it just needs the differences between each commit.

 

Deep Learning: UNIT 3: RNN

 UNIT III

RNN

------------------------------------------------------------------------------------------------------------------------

1.     Handling Branches
2.     Layers
3.     Nodes
4.     Essential Elements
5.     Vanilla RNNs
6.     GRUs

Deep Learning: UNIT 3 : RNN : Short Answer Questions

                                                                              UNIT 3

RNN

Short Answer Questions

1.     List the different types of Recurrent Neural Networks.

2.     List the different variants in of RNNs with RNN Nodes.

3.     What is the purpose of RNN?

4.     List the different applications of RNNs.

5.     Define RNN Layer.

6.     Define RNN Node.

7.     List the essential elements of RNN.

8.     How can you handle branches in RNN?

Deep Learning: UNIT- 3: RNN: Long Answer Questions

                                                                             UNIT 3

RNN

Long Answer Questions

1.     Explain RNNLayer with neat diagram.

2.     Explain RNNNode with example.

3.     What is the drawback of Artificial Neural Network? How can you overcome that? Explain.

4.     Explain how RNNs handle sequential data.

5.     Explain the basic three structures of RNN

6.     What is the role of the hidden state in an RNN?

7.     What is a Recurrent Neural Network (RNN) and how does it differ from a feedforward neural network?

8.     Draw and explain the architecture of Recurrent Neural Networks.

9.     Draw and explain Schematic diagram of a recurrent neural network?

10.  List the different types of Recurrent Neural Networks. Explain them with example.

11.  Explain the essential elements of RNNNodes.

 

Deep Learning: UNIT 3 (A): RNN: Notes

 UNIT III (A)

RNN

--------------------------------------------------------------------------------------------------------------------

1.     Handling Branches

2.     Layers

3.     Nodes

4.     Essential Elements


About Machine Learning

Welcome! Your Hub for AI, Machine Learning, and Emerging Technologies In today’s rapidly evolving tech landscape, staying updated with the ...