Code Monkey home page Code Monkey logo

Cam Lischke's Projects

binaryclassificationmnist icon binaryclassificationmnist

This project classifies the handwritten digit images of the mnist dataset using a logistic regression single neuron neural network. Open and run the jupyter notebook to get a tutorial on how to build this logistic regression model by scratch.

cifar100_cnn icon cifar100_cnn

Implements multiple CNN architectures to classify cifar100 dataset

dogsheltergraph icon dogsheltergraph

Example of minimum spanning tree problem and minimum vertex coloring problem for a dog shelter. Assigns dogs that do not get along in the minimum number of kennels, then with given distances, creates a minimum spanning tree with kennels as vertices and paths as edges.

follower-recommendations icon follower-recommendations

By counting the number of two-paths in a graph, this program gives social media follower recommendations for each user.

huffmanencoding icon huffmanencoding

Huffman encoding is a variable-length encoding method that can be used to compress a file without losing any information in the compression. This implies that when the file is decompressed, you get back exactly the original file. A variable-length encoding method allows colors to be represented by a different number of bits -- not always one byte (which is 8 bits). Colors that are used more often should be represented with fewer bits, and vice versa. The Huffman encoding algorithm was described in class. Please refer to your class notes for details on the algorithm. The basic steps are these: ● Read through the image file and count the frequencies of the colors. ● From the frequency table, make leaf nodes representing the colors that exist in the image. Store the frequency of the color and the color value (a number between 0 and 255) in each node. ● Build a Huffman tree from the bottom up. You do this as follows, continuing until only one node doesn't have parent nodes. ○ Choosing from among the nodes with no parent nodes, find the two nodes with the smallest frequencies stored in them. Make a parent node from them, storing in parent node the sum of the frequencies of the children node. You don't need to store a color in the new node. Only leaf nodes (the original ones) have a color stored in them. ● Once you have the Huffman tree built, you use it to encode the colors represented by the leaf nodes. Traverse the tree, gathering a 0 each time you move down a left edge and a 1 each time you move down a right edge. You gather the 0s and 1s as characters in a string and print out the string as the bit encoding of the color at the leaf node. This suffices as a simulation of the bit encoding to colors. 1 ● Figure out how many bits would be required in the compressed grayscale image, and how many bits would be required for the image if each pixel was one byte. Convert this to a percentage of the original file's size. For example, 64% would mean that the compressed file would be 64% the size of the original file's uncompressed size (not counting the size of the table that would have to be included in the compressed file for decoding

infix-to-prefix icon infix-to-prefix

Translates infix mathematical expressions to prefix and evaluates them

knapsackproblem icon knapsackproblem

You are given a knapsack of capacity W and n items with weights {wi} and values {vi}. Each item may be included at most once. This program finds the optimal solution to a given knapsack problem.

marl-anomaly-detect icon marl-anomaly-detect

This project tests multiple different machine learning algorithms that can detect adversarial attacks in multi-agent reinforcement learning settings. Baselines were used to compare performance of a proposed ensemble model. Then, using FGSM, we re-attacked the ensemble detection model with perturbed observations. Read more at the pdf titled FinalPaper.

mnistclassification icon mnistclassification

This program implements a Concurrent Neural Network that takes in 28x28 pixel images of handwritten digits and classifies it as a zero, one, two, three, four, five, six, seven, eight, or nine. It uses tensorflow and keras and numpy libraries to recognize an image and predict its digit through a deep learning technique.

nwsec icon nwsec

EN.650.624 Network Security

sceneclassificationcnn icon sceneclassificationcnn

The task is to identify which kind of scene can the image be categorized into: Buildings, Forests, Mountains, Glacier, Street, Sea

seed-labs-jhu icon seed-labs-jhu

Includes lab writeups and code for Syracuse SEED Security Labs

unsupervisedlearningmnist icon unsupervisedlearningmnist

This Jupyter notebook implements Hierarchical Agglomerative Clustering and KMeans clustering to cluster the MNIST dataset into 10 clusters.

wargamelisp icon wargamelisp

This program is written in Common Lisp and is a simulation of the card game "War". Two players are each dealt hands of 26 cards, half the deck. Every round, both players flip their card. Whoever has the highest card wins and keeps the other person's card. If it is a tie, then both players flip 3 more cards face down, and then flip one last one to break the tie. The winner keeps all cards on the table. The goal is to get the other player's cards.

wargameprolog icon wargameprolog

This program is written in Common Lisp and is a simulation of the card game "War". Two players are each dealt hands of 26 cards, half the deck. Every round, both players flip their card. Whoever has the highest card wins and keeps the other person's card. If it is a tie, then both players flip 3 more cards face down, and then flip one last one to break the tie. The winner gets a point. The objective is to beat your opponent. To start, using a Prolog interpreter, you must call the function start(). in the listener window.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.