Tumgik
edulissy · 1 year
Text
CSCE 421:Homework 4
Problem 1: Implement Cross Entropy Cost Use 2d classification data entropy.csv file provided inHome work 4 on Canvas. For this question, you will be implementing Cross Entropy Loss and model training based using the implemented loss function. 1. [Code] Fill in the function read classification data, which takes in the filename as string, and returns the data as 2 numpy arrays. Each with shape…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Project 4: It's Just a Jump to the Left and a Step to the Right
In this project, you will implement a basic unbalanced binary search tree and then add balance features to obtain optimal height. Part I – Unbalanced Tree Your primary focus in this part is recursion. Conceptually, binary search trees are fairly simple structures, so let’s take advantage of this implementation to develop our recursion skills. Review the recursive algorithm description in the BST…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Project 3: Queue the Stacking of the Deque
In lecture, we have seen that a deque can serve both as a stack and as a queue depending on usage. We have also seen that a deque can be implemented using a linked list or an array to store its data. We will employ both of those features in this project. Because we will use a deque as the storage medium for our queues and stacks, we will begin there. You will implement two deque classes, one…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Game Assignment Solution
  Familiarize yourself with solving games using AI.   Practice implementing a minimax algorithm.   Develop an internal state representation in Python and get familiarized with classes in Python.   Summary     In this assignment, you’ll be developing an AI game player for a game called Teeko.   As you’re probably aware, there are certain kinds of games that computers are very good at, and…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
CNN Homework 7 Solution
Note   This assignment dependents on the random seed. Use CSL when running your code to ensure correctness and receive full points   Assignment Goals   Implement and train a convolutional neural network (CNN), specifically LeNet   Understand and count the number of trainable parameters in CNN   Explore different training configurations such as batch size, learning rate and training…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
A* on the 7-tile Puzzle Solution
  Assignment Goals   Deepen understanding of state space generation.   Practice implementation of an efficient search algorithm.   Summary   This assignment is about solving a variant of the 8-tile puzzle. The 8-tile puzzle was invented and popularized by Noyes Palmer Chapman in the 1870s. The version we will consider in this homework is played on a 3×3 grid with 7 tiles labeled 1 through 7…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Neuralnet Homework 6 Solution
  Assignment Goals   Get Pytorch set up for your environment.   Familiarize yourself with the tools.   Implementing and training a basic neural network using Pytorch.   Happy deep learning 🙂   Summary   Home-brewing every machine learning solution is not only time-consuming but potentially error-prone. One of the reasons we’re using Python in this course is because it has some very…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Linear Regression on Lake Mendota Ice Solution
The Wisconsin State Climatology Office keeps a record on the number of days Lake Mendota was covered by ice at http://www.aos.wisc.edu/∼sco/lakes/Mendota-ice.html.   Question 1: Data Curation   As with any real problems, the data is not as clean or as organized as one would like for machine learning. Curate a clean data set starting from year 1855-56 and ending in year 2020-21. We care about…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Homework 3 Solution
Assignment Goals   Explore Principal Component Analysis (PCA) and the related Python packages (numpy, scipy, and matplotlib)   Make pretty pictures 🙂   Summary   In this project, you’ll be implementing a facial analysis program using PCA, using the skills from the linear algebra + PCA lecture. You’ll also continue to build your Python skills. We’ll walk you through the process step-by-step…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Clustering Homework 4 Solved
  Process the real-world data   Implement hierarchical clustering   Visualize the clustering process   You are to perform hierarchical clustering on publicly available Pokemon stats. Each Poke-mon is defined by a row in the data set. Because there are various ways to characterize how strong a Pokemon is, we summarize the stats into a shorter feature vector. For this assignment, you must…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Homework 2 Solution
Probabilistic Language Identi cation   Your detectives arrived at company X only to nd an important piece of ev-idence, a business letter, has been shredded. After painstakingly recovering the pieces, the detectives reported to you that all they could do was to count how many times each alphabet character appeared in the letter. Your mission, should you choose to accept it, is to estimate…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Operator Overloading – InfiniteInt Solution
This assignment will focus on using a few features of C++ operator overloading as well as continuing your exploration of classes. You may already know from previous courses that a 32-bit unsigned integer has a maximum positive value of 4,294,967,295. In this assignment, you will write a class which represents a non-negative number with an “unlimited” number of digits. Each digit will be stored as…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Object Oriented Programming Solution
This assignment will focus on the concepts of Object-oriented programming in C++. In this assign-ment, you will create 5 classes with member variables and functions, using inheritance. You will also demonstrate multiple inheritance and write a program that creates a vector of type base pointer, which can hold the object to any derived class instance. Using polymorphism, the display functions will…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
File I/O Introduction – Summarize Grades Solution
This assignment will focus on File I/O operations. You will write a program that reads a file with student information and their homework scores. You will manipulate that data to compute the total score and percentage for each student and then write a summary file with the computed scores for each student. Also, you will clean up some of the formatting issues from the input file. Your will submit…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
STL Introduction – BookDB Solution
  This assignment will focus on using a few features of the C++ Standard Library. You will write a program that uses a vector to construct and manipulate a simple database of books. Each book instance will be represented as a struct, and you will be required to traverse, modify, sort, and delete from the database. Your will submit your work to Gradescope and it will be both autograded and human…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
Basics of C++ – MathLib Solved
This assignment will focus on the basic operations of C++. You will create a math library from basic principles using the basic C++ operators (+,-,/,%,type casting, etc). That means you should not use any pre-built functions or libraries except where it is explicitly allowed. You can, of course, use the functions in your library in the other functions of the library. The library will be a c-style…
Tumblr media
View On WordPress
0 notes
edulissy · 1 year
Text
HW10: Reinforcement Learning Solution
  1      Getting started   Download the starter code from canvas. It consists of two files: Q-Learning.py and tests.py. You can create and activate your virtual environment with the following commands:   python3 -m venv /path/to/new/virtual/environment   source /path/to/new/virtual/environment/bin/activate   Once you have sourced your environment, you can run the following commands to install the…
Tumblr media
View On WordPress
0 notes