Giter Site home page Giter Site logo

aycignl / artificial_neural_networks Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 1.0 164 KB

Prof. Dr. Ethem Alpaydin's Artificial Neural Networks course at Bogazici University.

Jupyter Notebook 100.00%
python artificial-neural-networks classification logistic-regression softmax confusion-matrix

artificial_neural_networks's Introduction

Artificial Neural Networks

In this repository, you can find related documents and my solutions of assignments about Prof. Dr. Ethem Alpaydin's Artificial Neural Networks course at Bogazici University.

Assignment-I: Parametric Classification

  • Estimate class priors, means and variances using the training data.
  • Plot training data, estimated likelihoods and posteriors together on the same plot. Use different symbols for different classes.
  • Use your estimated discriminants to classify the test data and report the confusion matrix on the test data.

Assignment-II: Linear Regression

  • Inputs are 16x16 binary images and there are 10 classes.
  • You will implement linear logistic regression.
  • Show how training and test misclassifications change as training proceeds and report the final confusion matrices on training and test data.

Assignment-III: Reinforcement_Learning.ipynb

  • We have a 8x8 grid world with a robot that can move in one of the four main directions (N,W,E,S). Initial state is (2,2) and the goal is at (7,6). Reward at reaching the goal is 100 and \gamma=0.9. Rewards and next states are deterministic.
  • Implement Q learning
  • Assume that the next state is nondeterministic where with probability 0.5 we move in the intended direction and with probability 0.25 each, we move in the two orthogonal directions. E.g., when we want to go N, with prob 0.5 we do go N, with prob 0.25 we move E and with prob 0.25, we move W. The reward at reaching the goal is still always 100 (as in the deterministic case). Implement sarsa, print the 8x8 matrix with the Q values for the 4 actions (show the best action in bold).

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.