Git Product home page Git Product logo

agegenderclassification's Introduction

Reinforcement Learning Approach to Age and Gender Classification

This repo introduces application of optimal local basis - a RL approach to age and gender classification

please make sure data/ is in the same directory as all these files

  • move data.zip inside of code/
  • unzip data.zip

to run the model:

python OLBmain.py

what each file does:

OLBmain.py - main file, trains and tests the data

learner.py - takes in filename of the train data and creates an OLB learner object

inputimage.py - loads image

inputdata.py - loads labels and convert to json and store in memory

test.txt - test file for you to run, taken as an input to OLBmain.py train function

traindataclass.py - organizes the train and test dataset and samples data for each different size

OLButils.py - runs pca and kmeans and unit testing the model

OLB.py - class object of olb

OLBlearner.py - learner object where all the reinforcement learning methods are located, such as q-learning, choose_action, update_qtable,etc

utils.py - another utils file for loading image

gender.txt - ground truth labels for gender class

age.txt - ground truth labels for age class

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.